MODIFY, MODIFYALL

bool MODIFY(bool runTrigger = true, 
  bool scriptHandleException = false);

example:
Customer:MODIFY();

Use this function to modify the record.

bool MODIFYALL(string FieldName,
  object newValue, 
  bool runTrigger = true,
  bool scriptHandleException = false);

example:
Customer:MODIFYALL('Name', 'Testdata', false);

Use this function to modify all records within the recordset.

runTrigger defines whether to run the local mobile app trigger, and by default, whether to run the OnInsert-table trigger in Microsoft Dynamics on synchronization as well. The synchoronization behaviour is defined in the ACF App Events codeunit.

scriptHandleException = true: If an error occurs, the Anveo Script will display an error message and halt the execution. The return value is not available.
scriptHandleException = false: If an error occurs, the return value is set to false. The Anveo Script wil not display an error message and the error handling has to be taken care of within the script.