Namespace: FUNCTIONS

FUNCTIONS

Methods

staticZOHO.CRM.FUNCTIONS.execute(func_name, req_data){Promise}

Invoke a Function
Name Type Description
func_name String Function Name
req_data Object Request Data
Returns:
Type Description
Promise resolved with response of the function executed
Example
var func_name = "custom_function4";
var req_data ={
  "arguments": JSON.stringify({
      "mailid" : "siprxx.xxx@xxxx.com" 
  })
};
ZOHO.CRM.FUNCTIONS.execute(func_name, req_data)
.then(function(data){
    console.log(data)
})

//Prints
{
  "code": "success",
  "details": {
    "type":"VOID",
      "output": null,
      "id": "944000000003001"
  },
  "message": "function executed successfully"
}