Set Organization Variable
Table of Contents
You can set the value of a custom variable (Custom Properties in Extension and Org Settings in Vertical Solution) using the zoho.crm.invokeConnector() deluge task.
Syntax
<Response> = zoho.crm.invokeConnector("crm.set", <valueMap Map>);
where:
Params | Data type | Description |
<Response> | KEY-VALUE | Indicates the task response. It will have details of the success or failure of updation. |
<valueMap Map> | NUMBER | The map containing the key value pair denoting the API name of the custom variable to be updated, and the value with which the custom variable should be updated. |
You can find the information about the API name of the custom variable in the following places: In a Vertical solution: Click Company Settings in the left pane and click Org Settings. In an Extension: Click Custom Properties in the left pane.
Example
Update the value of a custom variable Score with value 50.
valueMap = Map(); valueMap.put("apiname","Score"); valueMap.put("value",50); resp = zoho.crm.invokeConnector("crm.set",valueMap); info resp;