Set Organization Variable

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,
<Response> is the task response returned as a Map. It will have details of the success or failure of updation.
<valueMap Map> 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;

Response Format

{"status_code":"200","response":"{\"Score\":\"50\",\"message\":\"New value updated successfully.\"}"}