Access Rights
rights
dynamic folder
Sales_Creatio_enterprise_edition
7.18

Hi,

I want to set up access right to a folder on the project section but it is not showing me this option. When I click the setting Icon I only have Set up filter, Rename, Move Copy, Delete.

When I try in other sections like order and account I do have the Set up access right.

Like 0

Like

4 comments

You have to turn on Access rights by records in ProjectFolder object



Permissions on entries in the ProjectFolder object are enabled, but permissions settings are not. I guess I didn’t formulate the question very correctly, the permission settings for dynamic groups (folders) are not displayed

Gevorgyan Tigran,

Hi Gevorgyan,

the same thing happens with Event section

If you re-login to creation everything works finr

Show all comments
Sales_Creatio_enterprise_edition
8.0

Hi all, 



I'm just starting to get to grips with making API calls to Creatio and stuck trying to POST a new record, where a column is a lookup. 



I understand that I can post using the Guid to the lookup using column name "UsrLookupNameId". However, if I don't have the Id but only a value in one of the Lookups column, is that possible? 

 

For example, I have the lookup UsrNationality, but I only have the value "Germany" and not the ID. Or, must I first make a GET request to get the ID? 

 

Here is current code: 

 

{

"UsrName": "Test Name",

"UsrNationality": "Germany"

}

 

Any help much appreciated :)

Like 0

Like

2 comments

Hi Harry,

You would have to first do a GET to the lookup object to get the record where the Name = "The name", then do the POST separately using the Id value for the lookup column. So two separate calls, one to GET the lookup and a second to POST the new record.

Typically when I have code working with Creatio's API's I retrieve the needed lookups into a local cache to avoid repeatedly doing GETs to the lookups.

Ryan

Thanks Ryan, that's what I thought. I used the "GET

$filter parameter (eq operator)" option in the end. 



I'm integrating using Make.com, so little harder to leave everything in local cache. Have got it working well now though. 

 

Thanks again for the reply.

Show all comments
callback
multiplecallback
Sales_Creatio_enterprise_edition
7.18

Hello,

 

I need to make a button visible based on a few conditions

1. If current user contact record has a lookup value of "Approver"

and

2. If account record of the current user contact has lookup value "Enterprise"

 

Since there are 2 tables to be queried, I understand I need to use callbacks and chaining. This does not seem to work well for me. I have also tried passing a callback function within a callback function, but still its not working well. Can someone please give an example of multiple callbacks?

 

Thanks

Like 1

Like

2 comments

There's no need for the multiple callbacks since this can be done in a single ESQ query. For example, the ESQ below retrieves both the current user's Type value as well as the current user's account Type value in the same call.

var esq = Ext.create("Terrasoft.EntitySchemaQuery", {
    rootSchemaName: "Contact"
});

esq.addColumn("Type");
esq.addColumn("Account.Type", "AccountType");

esq.getEntity(Terrasoft.SysValue.CURRENT_USER_CONTACT.value, function (result) {
    if (result.success) {
        var conType = result.entity.values.Type,
            accType = result.entity.values.AccountType;

        if ((conType && conType.displayValue == "Approver")
            && (accType && accType.displayValue == "Enterprise")) {
            // do something
        }
    }
}, this);

However, to nest a ESQ in a callback of another ESQ it would look like this: 

var esq = Ext.create("Terrasoft.EntitySchemaQuery", {
	rootSchemaName: "Contact"
});

esq.addColumn("Type");
esq.addColumn("Account");

esq.getEntity(Terrasoft.SysValue.CURRENT_USER_CONTACT.value, function (result) {
    if (result.success) {
        var conType = result.entity.values.Type,
            account = result.entity.values.Account;
        if (conType && conType.displayValue == "Approver") {
            var esq = Ext.create("Terrasoft.EntitySchemaQuery", {
                rootSchemaName: "Account"
            });

            esq.addColumn("Type");

            esq.getEntity(account.value, function (result) {
                if (result.success) {
                    var accType = result.entity.values.Type;
                    if (accType && accType.displayValue == "Enterprise") {
                        // do something
                    }
                }
            }, this);
        }
    }
}, this);

Ryan

Show all comments
Javascript
Sales_Creatio_enterprise_edition
7.18

Hi Community!

 

I have the following requirement:

We need to link a custom entity called reclamations to the activity. This has to be done m:n. So I have created a new link entity called ReclamationInActivity and added it as a detail to the ActivityPageV2.js.

 

When adding such a ReclamationInActivity record from the activity a new page opens and the user can open the reclamation lookup window there to select or create a reclamation.

When they choose to create a new reclamation, the account and contact have to be prefilled on the "new reclamation" page.

 

I cannot use business rules, because there is no link from the reclamation to ReclamationInActivity.

Also, using a business process is not an option, because the user would have to save the record first and we need to prefill the values.

Is there a way to achieve this by javascript somehow?

 

Thanks,

Robert

Like 0

Like

1 comments

Hi,

If I understand you correctly you want to add a value to columns "Contact" and "Account" from your activity. If so, you can use a simple esq request to get these values and set them in the init or onEntityInitialized methods.

Show all comments
image
containers
CSS
Sales_Creatio_enterprise_edition
7.18

Hello,

 

We have a boolean column in accounts section. If the value is checked, we would like to add an image on the header space as highlighted in yellow in image below. Is there a sample code/ recommendation for this?

 

Like 0

Like

1 comments

Hello,

You can write a simple button and display it in the center. 

{
				"operation": "insert",
				"name": "TestContainer",
				"parentName": "ActionButtonsContainer",
				"propertyName": "items",
				"values": {
					"itemType": Terrasoft.ViewItemType.CONTAINER,
					"wrapClass": ["test-container-wrapClass"],
					"items": []
				}
			},
            {
                "operation": "insert",
                "parentName": "TestContainer",
                "propertyName": "items",
                "name": "PrimaryContactButton",
                "values": {

                    "itemType": Terrasoft.ViewItemType.BUTTON,
                    "click": {bindTo: "testclick"},
					"visible": {bindTo: "checkVisible"},
                    "enabled": true,
                    "style": Terrasoft.controls.ButtonEnums.style.TRANSPARENT,
					"imageConfig": {"bindTo": "Resources.Images.EnrichedDefaultIcon"}
                }
            }

In the method checkVisible you can return true or false based on the condition.

To make it at the center just add a new CSS style:

define("AccountPageV2", ["css!UsrDStyle"], function() {

 

.test-container-wrapClass {

        margin-left: auto;

    margin-right: auto;

    width: 6em

    }

 

Show all comments
Sales_Creatio_enterprise_edition
8.0

Hi Creatio Team,



The requirement is to show only the needed columns/attributes to be displayed in the OOTB filter in the section as you can see in the below image.





As you can see in the above image, all the columns are getting displayed in the contact section. The requirement is too show the needed columns/attributes and not the whole. Need to implement this functionality across sections. Kindly, guide us in implementing the functionality.



Regards & Thanks,

Adharsh S

Like 0

Like

3 comments

Hi,

Take a look at this post, you can hide unnecessary columns by setting its Usage mode to "None".

Also, you can look here:

https://community.creatio.com/questions/hide-fields-lookup-filter

Dmytro Vovchenko,



We can't use the Usage Mode - None. because these fields which are to be hidden, need to be reused in Business Rules, process and other places. So, this approach we can't go forward.



The second approach, I have looked into the link - 

https://community.creatio.com/questions/hide-fields-lookup-filter.



The below code mentioned in the above link,

define("GlbLookupPage", ["ConfigurationEnums", "LookupPage"], function(ConfigurationEnums) {

    Ext.define("Terrasoft.configuration.GlbLookupPage", {
        override: "Terrasoft.LookupPage",
        alternateClassName: "Terrasoft.GlbLookupPage",


generateViewModel: function() {
            var model = this.callParent(arguments);
            model.getSchemaColumns = this._getSchemaColumns;
            return model;
        }

Can you give me some example code - For eg, I need to filter only the columns such as ("Account", "Full Name", "Age", "Address type") under contact Section.

 

Regards,

Adharsh S

 

Hi Creatio Team,



Can you help me out with the mentioned scenario ?



Test case - "Can you give me some example code - For eg, I need to filter only the columns such as ("Account", "Full Name", "Age", "Address type") under contact Section."



Regards,

Adharsh S

Show all comments
MultiSelectLookup
multiselectValidation
Uncheck
Sales_Creatio_enterprise_edition
7.18

Hello team,

 

I have a multiselect detail and I have added code to mark already selected records when the lookup window is opened again. For example if A, B are already added to the multiselect, when user wants to add C,D, E, the records A & B will already be checked.

 

There are multiple validations done before we add a record. Unchecking of already added records will cause complication. 

 

We see preventing uncheck of values as a solution. Is there a way to prevent uncheck of records? 

Like 0

Like

4 comments

Hello Shivani, 

 

Can you please provide the code you are referring to? 

 

Best Regards, 

Igor

 

Ihor Skohariev,

Following is the code I have used, to mark the records already selected as marked. I need to prevent these marked records as unmarked. Basically, we cannot uncheck an already checked record

esq.getEntityCollection(function(result) {
                 	var existsDocumentsCollection = [];
                 	if (result.success) {
                         		result.collection.each(function(item) {
                         		existsDocumentsCollection.push(item.get(”AccountId”));
                          });
                        }
		config.selectedValues = existsDocumentsCollection;

 

Hello, is it correct that currently every time you open and close a lookup window there are no selected records and your code doesn't work? Or it's working but only after validation and you need to make it that the needed values are already selected before that moment?

Dmytro Vovchenko,

 

We have managed to figure this out using custom logic. The rows already selected are marked when we add more records. 

Show all comments
Sales_Creatio_enterprise_edition
8.0

Hello,

I have a question regarding folder filter in Section.

When entering Section page by default there is no filter applied (All is displayed).

 

I would like to apply one from customers predefined filters as standard filter, to open/apply by default (Test folder in this example).

How can I achieve this?

Thanks.

Like 0

Like

2 comments

Hello,

 

The first option is to setup custom filtering by default when opening the section (something as was described here https://community.creatio.com/questions/default-filter-section). If you still need to display some folder by default than you need to dynamically modify values in the SysProfileData table (it stores currently selected folder in the section and as a result once user selects the folder, go to another section and returns back to the original section with the folder, there will be the same folder selected in the section).

Thank you Oleg, your idea with SysProfileData table is something what I need, but as I see it is not easy task to achieve, because value in SysProfileData table changes each time we change something in section. I need this to set initially only once and after that to let user change it as he wants. Thank you very much.

Show all comments
.net_core
dotnetcore
Sales_Creatio_enterprise_edition
7.18

How can we create new package with Clio for .Net Core 3.1?

Like 0

Like

3 comments

Hello Ensar, 



To create new package project, use the next command:

 

 clio new-pkg <PACKAGE_NAME>



Best regards,

Bogdan

This command creates .NET Framework solution, not .NET Standard or Core. Is there any way to select this?

Ensar,

 

This article applies to NET Core 3.1 SDK and later versions. 



Please feel free to check the required information. 



Best regards,

Bogdan

Show all comments
printables
Filters
Sales_Creatio_enterprise_edition
7.18

Hello community,

 

I have an opportunity section with a lookup field called OpportunityType. I also have a lookup field called Printable in the same section, which the user will use to tag the opportunity record to a particular printable. 

 

The use case here is that since we have many printables, we would like to filter the printable based on OpportunityType. I am assuming we need to replace the Printable object, add a new lookup column referencing the OpportunityType Lookup. We want this field OpportunityType to be visible on the UI where Printables are configured (Please see below image).

 

Please advise.

Like 0

Like

2 comments

Hello Shivani,

I have an article here that shows how to show or hide printables based on a value on the page. Hopefully this helps you get started: 

https://customerfx.com/article/showing-or-hiding-printables-based-on-a-…

Ryan

Hi Ryan,

 

I am looking for something different. I want to override the printable page schema (The page where we add new printable records) to show a new field as seen in the image I posted earlier.

Do you have any approach pls?

 

Thanks

Show all comments