cancel
Showing results for 
Search instead for 
Did you mean: 

How to update UDF value using Business Rules?

dm080664
Explorer
0 Kudos
589

Hello,

I'm trying to update an integer UDF value using a simple business rule.

My goal is to increase the value of this field by one every time the event is triggered.

This is the Action:

My field was originally udf.Bolla = 100

Variable myBolla is initialized with udf.Bolla

After the rule is run, the value is: udf.Bolla = 100+1

It looks like the value is always managed as a string, even if the UDF field is declared Integer.

How can I fix this issue?

Thank you in advance for any useful hint.

Davide

Accepted Solutions (1)

Accepted Solutions (1)

loepers
Advisor
Advisor

Dear Davide,

in FSM Business Rules, everything that is written between ${ and } is interpreted as JavaScript code.

So I would suggest to write Value as ${myBolla+1}.

Best regards,

Stefanie

Answers (1)

Answers (1)

dm080664
Explorer
0 Kudos

Hi Stefanie,

thank you very much for your kind answer: it works!

A smart answer for a stupid question... 🙂

Thank you again and take care.

Davide