JS Client API
Search…
Getting Started
Rule Engine Unique Functions
Custom Form Window Functions
Known Issues
Use Cases & Code Samples
Retrieving Data
Retrieving Standard Resources
Retrieving User Defined Tables
Retrieving Attachments
Retrieving Items in Transaction Scope
Retrieving Transaction Lines
ADAL
Updating Data
Adding Objects to Standard Resources
Updating Standard resources
Updating User Defined Table
Updating Items in Transaction Scope
Adding Transaction Lines
Removing Transaction Lines
Powered By
GitBook
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.
Previous
Getting Started
Next
Custom Form Window Functions
Last modified
3yr ago
Copy link