Functions
ZOHO.BIGIN.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
Request
Copiedvar func_name = "custom_function4";
var req_data ={
"arguments": JSON.stringify({
"mailid" : "siprxx.xxx@xxxx.com"
})
};
ZOHO.BIGIN.FUNCTIONS.execute(func_name, req_data)
.then(function(data){
console.log(data)
})
Response
Copied{
"code": "success",
"details": {
"type":"VOID",
"output": null,
"id": "944000000003001"
},
"message": "function executed successfully"
}