Rule Engine Unique Functions
The 2 functions below are unique to the Rule Engine JS Client API
Get Single value from current object field- returns dynamic type based on the field's content.
For example if the Calculated Formula is on UDF defined in a Transaction Line, the below code will retrieve the Transaction's UUID :
1
var value = GetValueByApiName("Transaction.UUID");
Copied!
Set Single value to a current object field - returns Boolean:
1
var res = SetValueByApiName("TSAMessage", "hello");
Copied!
Setting the value using SetValueByApiName will not trigger any calculation.
Last modified 2yr ago
Copy link