Execute JavaScript from rules: Difference between revisions

Jump to navigation Jump to search
Line 29: Line 29:
* The serialized MobileCRM.UI.EntityForm object is automatically passed as a parameter to the function.
* The serialized MobileCRM.UI.EntityForm object is automatically passed as a parameter to the function.
** You cannot pass a custom input parameter.
** You cannot pass a custom input parameter.
** You can read from the EntityForm but you cannot update the fields.
** You can read from the EntityForm but you cannot update the fields. If you need to update the properties of the entity record, you need to request the entity form again in the scope of Execute JS function.
* The implementation supports also ''promises'' for asynchronous result return from functions.
* The implementation supports also ''promises'' for asynchronous result return from functions.
* ExecuteJS requires offline HTML running JSBridge.js script version 13.1 or later.
* ExecuteJS requires offline HTML running JSBridge.js script version 13.1 or later.

Navigation menu