Hi Team,

We have an OOTB feature introduced to set the field values using Business Rule.

There are function options provided while setting the field values if the Source(Target field) is numeric.

 

a)The OOTB feature shows formula and it has an in-built date function along with operators to write a formula and set values to a field.

b)But when a String field is selected there were no options for formula. It would be nice to have string functionalities such as,

strcat - concatenate two strings
strcmp - compare two strings
strcpy - copy a string
strlen - get the string length
String.Remove - Remove specified part of string





Best regards,

Bhoobalan Palanivelu.

1 comments

Hello Bhoobalan,



Thank you so much for your idea. We've registered it in our R&D team backlog for consideration and implementation in future application releases. Thank you for helping us to improve our product. 

 

Best regards,

Bogdan

Show all comments

hi all, 

 

I registered a CRM full bundle, created a new app, and created a new section in it 

 

I can't find these features:-

                             1- business rules 

                             2- enable approvals checkbox

                             3- view button in section which opens the section wizard 

 

please help me ASAP with some screenshots for how I can find and enable them

 

thanks

Like 0

Like

3 comments

Hello Ibrahim,



Could you please specify the current version of the website?



Best regards,

Bogdan

Bogdan,

 

8.0.0.5434

Ibrahim Nour El-Din,

 

Unfortunately, this functionality is not available in 8.0 version. But we've been informed that they will be available again with the next coming releases (8.0.1 or 8.0.2).

 

Best regards,

Bogdan

Show all comments

Hello,

There are fields that ONLY Admin users have the rights to modify.

 

Using a Business Rule, we can Identify WHO can Edit the field.

 

When I'm hardcoding the Email of the Admin...it works.

But If I try to use the Role (System Administrators)...it doesn't work.

 

Is this a limitation or something that is not properly configured in our roles ?

 

Like 0

Like

2 comments

Hello Francois,

 

As of now, the business rules don't work with roles. You can only use users instead of roles, but in this case, you'll have to create each business rule for each user. 

 

We already have a query registered for our responsible R&D team to implement the described functionality in the upcoming versions of the application. 

I will add this case to the query in order to increase its priority.

 

Best regards,

Anastasiia

 

Hello Francois,

 

The better way to achieve Your requirement is Object Permission settings (Use column permission). Have a look following printscreen as a example how to grand access to "All employees " to only read Account Name and for "System administrators" to read and edit.

https://ibb.co/n0TCVBP

 

Best regards,

Marcin

Show all comments

HI,

Q: Why there is no option to select "Amount" when creating business rule on Order page?

Also.. no option to select "Price" when creating business rule on Order-products page

Like 0

Like

0 comments
Show all comments

Hi everyone,

 

Does anyone know if is is possible to set up a field value in business rules by combining 2 strings? For example change the title to something like "Account name - Customer need"? Hope this is achievable without programming as this is really a basic "no code" functionality...

 

 

Thanks!

Like 0

Like

1 comments

A business rule isn't able to do this. 

You could do it with a no code approach by creating a process that starts on the record added or modified that reads the record, then sets the field value by combining the two values. The down side to this approach is that the user won't see this value until they refresh the page.

I realize you're after a no code approach, however, if you want to do this with code, you can add something like this to the methods of the page - this will set the name when the record is saved (assuming the field names are correct):

save: function() {
    var account = this.get("Account");
    var need = this.get("LeadType");
 
    if (account && need) {
        this.set("Name", account.displayValue + " - " + need.displayValue);
    }
 
    this.callParent(arguments);
}

(btw, I don't know why formatted code doesn't format code correctly on these forums, but the && is supposed to be &&)

Ryan

Show all comments

Hi Community,

 

I've this situation where I need to hide a detail based on condition, however i didn't find any example of this, only with filelds on the page, like i show on the image below with the custom business rule that I applied.

 

 

Any suggestions how to apply this condition in a detail?

 

 

Thanks in Advance,

Daniel Longo

Like 0

Like

3 comments

Hi Daniel, 

 

Actually, it is not possible to do with the detail, like the example with the fields you sent.

 

In order to achieve such implementation, you need to extend the controller and add the additional logic manually. 

 

Unfortunately, we don't have such examples. 

 

But here you can check my colleague answer, where to find the controller which you can modify: 

 

https://community.creatio.com/questions/there-way-make-detail-read-only…

 

Hopefully, it will be useful for you!

 

Best Regards, 

 

Bogdan L.

 

 

Bogdan Lesyk,

Are there any updates regarding hiding a detail in mobiel based on a condition please ?

developer,

 

Let's discuss it in terms of a thread created by you here https://community.creatio.com/questions/how-hide-detail-mobile-based-co…. I will check internal notes and will let you know about the possible ways of achieving this.

Show all comments

Hi,

I created some business rules on the 'product in opportunity' detail that based on the 'Opportunity product' object, but non of them is working!

Have anyone saw that too/have a solution for that?

Thanks in advance,

Chani

Like 0

Like

3 comments

Hello Chani, 

 

Could you please elaborate a bit on the issue and clarify which business rules exactly do not work as expected?

Alternatively, I would like to suggest you to contact us at support@creatio.com, so we could investigate the issue more deeply. 

 

Thank you in advance!

Best regards, 

Anastasiia

Anastasiia Zhuravel,

I have a field called 'Default school year' on the opportunity object and a field called 'schoolYear' on the opportunity product object, both same lookup.

I want the add the following rule:

IF Opportunity.DefaultSchoolYear is filled in THEN set field value - schoolyear = Opportunity.DefaultSchoolYear.

I also tried -

IF schoolyear is filled in THEN make schoolyear required.

Thank you!

Chani Karel,

 

Hello, 

 

Thank you for your prompt reply. We have received the corresponding request (sent to  support@creatio.com) and will proceed with investigation!

 

Best regards, 

Anastasiia

Show all comments

Hi,

Auto-populating some fields doesn't work for NON-Supervisor users. We investigated the features (Screenshot 1) and if they are enabled for All employees (Screenshot 2) and even after that, the feature "PopulateBusinessRuleAction" still is not enabled (Screenshot 3).

 

What can be the root cause?

Like 1

Like

1 comments

Hi Kavian, 



Regarding the feature state: 

It is needed to re-log in after changing the feature state for changes to take place. Have you re-loged in before checking the value the second time? 



As for the issue with the business rules, The support request you've opened (#SR-01019131) is still open and we're waiting for your input to proceed with the investigation. 



Best regards,

Yurii. 

Show all comments

Hello Team!

 

I need to hide one filed based of the selection of one category lookup. I follow the academy  with the steps for the rule type. But my question is whats happend when you have more values in a OR condition. I tried to placed all the conditions in the same rule and didn't work and as well like in the example separate, but only the last one is working. How is the correct process in this case?

 

Thanks,

 

Like 0

Like

1 comments

Hello Federico, 

 

We performed some tests in order to achieve your requirement, but it seems like such implementation is not possible for now. The only one business rule will be active in this case. We already informed our Core R&D team and we will work to add such functionality in our next releases. Thank you for understanding!



Best Regards, 

 

Bogdan L.

Show all comments

Hello!

 

I am trying to make a boolean field editable based on  another boolean.

Can anyone provide me a code format of business rules for mobile and correct file where to put them.

 

Thanks.

Like 0

Like

6 comments

Hello,

 

You need to create a separate module and then add it to the mobile application manifest (PagesExtensions property of the object model) as described here or here. In this community post, I've provided an example of a business rule that activates a field based on conditions.

 

Best regards,

Oscar

Thanks Oscar,

 

I have got it working.

Hello,

 

I also applied same business rule for a string which needs to be permanently read-only in Order section. So, I have put in the condition column Total amount as negative which will never be true. But, this is not working in mobile.

I have attached that business rule below. I have added this module in the page extensions of Order section also.

 

Terrasoft.sdk.Model.addBusinessRule("Order", {

    ruleType: Terrasoft.RuleTypes.Activation,

    events: [Terrasoft.BusinessRuleEvents.Load, Terrasoft.BusinessRuleEvents.ValueChanged],

    triggeredByColumns: ["JFLOrderOneOffTotal" ],

    conditionalColumns: [

       

      {name: "JFLOrderOneOffTotal", value: "-1.00"} 

    ],

    dependentColumnNames: ["JFLPaymentMandateLink"]

});

 

I want to make "JFLPaymentMandateLink" field read only.

 

Hoping for an early reply.

 

malay garg,

 

Hello,

 

You need to install the emulator to debug the logic (can be found here). You need to check which value if passed for the JFLOrderOneOffTotal column and if the rule is triggered. Also you will need to recycle the application pool after creating a new rule and adding it to the page extensions in the manifest.

 

Best regards,

Oscar

Oscar Dylan,

 

Thanks for the information.

I am looking for a logic to make a Date, String, Integer field read only in mobile.

The column JFLOrderOneOffTotal was chosen because it can never be negative in my implementation, so the affected field would be always read only. 

But, as this is not working , can you please suggest me proper logic to make these fields read only always.

Hoping for an early reply.

 

Regards,

 

Malay.

 

Malay,

 

You are welcome!

 

Yes, you can do it! See the example of my business rule below:

Terrasoft.sdk.Model.addBusinessRule("Account", {
    ruleType: Terrasoft.RuleTypes.Activation,
    events: [Terrasoft.BusinessRuleEvents.Load, Terrasoft.BusinessRuleEvents.ValueChanged],
    triggeredByColumns: ["UsrInteger"],
    conditionalColumns: [
        {name: "UsrInteger", value: 1}
    ],
    dependentColumnNames: ["UsrWaranty","UsrDate","UsrDelivery"]
});

Please note that the business rule name should be the same as the object for which the rule is created (not the module name, but the rule name ("Account" in my case, one of the arguments for the Terrasoft.sdk.Model.addBusinessRule method)). The module itself can have any name you want (in my case it is "UsrAccountReadOnly" that was then added to the manifest:

).

 

As a result all three columns became read-only: UsrWaranty - integer column, "UsrDate" - date column and "UsrDelivery" - string column:

The condition is that columns become unlocked when the UsrInteger column value is 1. Once this rule was created and the application pool restarted and relogin to the mobile app executed the rule started to work as expected. So you need to double-check your rule.

 

Best regards,

Oscar

Show all comments