JS Client API

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 :
var value = GetValueByApiName("Transaction.UUID");
Set Single value to a current object field - returns Boolean:
var res = SetValueByApiName("TSAMessage", "hello");
Setting the value using SetValueByApiName will not trigger any calculation.