Choose where you’d like to start

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.

Syntax

<Response> = zoho.crm.invokeConnector("crm.set", <valueMap Map>);

where:

ParamsData typeDescription

<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.\"}" }

Get Started Now

Execute