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.
Note:
- This task can be performed only in Zoho CRM Vertical Solutions.
- Each time the zoho.crm.invokeConnector integration task is executed, it triggers an API request in the back-end. This call is deducted from the external calls limit available for the service from which the task is executed, based on your pricing plan.
- Only actual executions that receive a response (whether success or failure) are counted, not the number of times the task appears in the script. For example, if zoho.crm.invokeConnector integration task is placed inside a for each task that iterates five times, the number of external calls consumed will be five, even though the task appears only once in the script.
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;
Response Format
Success Response
{ "status_code": "200", "response": "{\"Score\":\"50\",\"message\":\"New value updated successfully.\"}" }