I was trying to create Assemble Package and created one c# file which has dependencies on NewtonsoftJSON dll. When I tried to publish it says it required dll (attached reference). If we import the DLL into the current package it is working as expected but as per my understanding, we need to add the Assembly package dependencies on [Package name].csproj file.
I could see below code already presents there,
False
False
which means should we need to create any folder with Assemblies or we manually need to import all the package dependencies through import?
If it’s a regular package you can use the Newtonsoft.Json core library, but for the assembly package, the required DLL must be added to the package explicitly.
The Assembly package is like an external cs project.
If you want to use an external library like Newtonsoft.Json.dll in your project - you have to specify it as a reference for your project (using) by adding that dll to the package.
The same can be achieved by using the Terrasoft core class without adding any explicit dll reference into the package as below,
Example of the code:
using CommonJson = Terrasoft.Common.Json;
string orderItemsInput = CommonJson.Json.Serialize("YourObject");
As for the section wizard, this whole detail was created with code, so it would be not possible to enable it. But the first option by clicking the cross sign would be the more simple one.
As for the section wizard, this whole detail was created with code, so it would be not possible to enable it. But the first option by clicking the cross sign would be the more simple one.
While working in a package, it happens that when I modify object permissions, the modifications are saved to package "Custom" even though I set current package value as my package.
Can you please walk me through to remedy to this issue?
According to the application logic, the changes in the access rights always generate the replacing object in the Custom package, regardless the one you have in the Current package.
We are aware of that and working hard to fix that in our future releases.
I am developing an application only for the "Sales" module which includes the Sales enterprise, the sales team and the sales commerce edition. Actually, I am developing the application in a "Sales Enterprise" environment and I only have the "SalesEntepriseSoftKey_ENU" package.
Which should be the right package to set to work with all the Sales product versions ?
It's recommended to have the package that has access/connected to all the base packages of the Creatio bundle. Also, the package dependency diagram in the configuration section will give insight into the structure of the package of products (Sales, Service, Marketing, Studio).
In your case (i.e., sales bundle), the package SalesEntepriseSoftKey_ENU shall be added in dependency. Please be informed that SalesEntepriseSoftKey_Obselete package shouldn't be added in dependency as this might be removed in the product updates.
The problem here is that if I put the dependency on "SalesEnterpriseSoftkey_ENU" package, it will only work with the "SalesEnterprise" products of Creatio, not SalesTeam nor SalesCommerce.
Parameter IsLocked mainly affects if you can edit the schema or the package. Only the author of the lock can edit these elements. In the database, this author isn't mentioned and you can see only IsLocked.
The system will check the author on the other level.
I believe the error is indicating that you have bound data in your package for SysModuleInWorkplace and the bound data references a record in SysWorkplace that doesn't exist in your package.
Basically, you've added something to a workplace and bound that in the package. However, The workplace itself hasn't been added as bound data to the package.
To solve this, add bound data for the SysWorkplace record that is referenced by the SysModuleInWorkplace record currently bound in the package.
Please follow the described steps on how to bind data: (Use your ID from error message) 1. Create a "Data" element in your package. Example in screenshot below. 2. Select the SysWorkplace object. Example in screenshot below. 3. On the "Bound Data" tab, add the id specified in the error. Example in screenshot below. 4. Select the id specified in the error from the list. Example in screenshot below.
I am developing an application using a Creatio trial (before implementing on the development server). I have saved the application as a package, and have imported back into another Creatio trial. Everything works fine.
The problem I have is I am not able to edit the JavaScript I have developed in the package's replacing client modules. When I view the client module from the Configuration page, I can see the JavaScript that I have developed, but when I try to edit the JavaScript from the section wizard, there is only a 'define' function with empty sections, not the JavaScript that I developed.
Is it possible to continue developing client module JavaScript from one trial of Creatio to another?
The logic behind this behavior is that when any changes comes in the package they should not be directly changed since packages can be distributed by third-party publishers.
Only way to change functionality installed is to re-define the code or add new methods within the new replacing module in your custom packages.
For some technical issues, I had to reinstall database. so I exported the package "Custom" to be able to import it via application install. while trying to import it, it fails to restore configuration from backup.
How can I retrieve configuration done on this custom package? is there any best practice to export packages?
Thank you for the reply. in fact this is what I have done and then I tried to import the package from the installed application section. bellow is the screen of import failure.
Bellow is a snippet of the errors in log file.
Error occured while performing operation on "Custom" item, UId = a00051f4-cde3-4f3f-b08e-c5ad1a5c735a.
2022-04-15 10:15:43,737 System.AggregateException: One or more errors occurred. (Error occured while saving resources for schema 'UsrServiceCatalogc9afd9b9Section' in 'Custom' package for 'pt-PT' culture) (Error occured while saving resources for schema 'UsrServiceCatalogc9afd9b9Section' in 'Custom' package for 'ro-RO' culture) (Error occured while saving resources for schema 'CaseInFolder' in 'Custom' package for 'pt-BR' culture) (Error occured while saving resources for schema 'UsrSchema6cea64dfPage' in 'Custom' package for 'it-IT' culture) (Error occured while saving resources for schema 'UsrSchema6cea64dfPage' in 'Custom' package for 'vi-VN' culture) (Error occured while saving resources for schema 'CaseInFolder' in 'Custom' package for 'he-IL' culture) (Error occured while saving resources for schema 'UsrSchema6cea64dfPage' in 'Custom' package for 'ar-SA' culture) (Error occured while saving resources for schema 'UsrSchema6cea64dfPage' in 'Custom' package for 'fr-FR' culture) (Error occured while saving resources for schema 'UsrCaseVisa' in 'Custom' package for 'en-US' culture) (Error occured while saving resources for schema 'UsrSchema6cea64dfPage' in 'Custom' package for 'cs-CZ' culture) (Error occured while saving resources for schema 'UsrRentalVehicle' in 'Custom' package for 'nl-NL' culture)
The package "Custom" cannot be exported between environments. A solution would be to add a new package and add the same dependencies as in the package "Custom" and move files from Custom to the new created package. then you can export that package between environments.