JS Client API
  • 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
On this page

Was this helpful?

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.

PreviousGetting StartedNextCustom Form Window Functions

Last updated 6 years ago

Was this helpful?