Creator Help

Update Records in Zoho Support

Update a record in Zoho Support

The zoho.support.updateRecord() task is used to update existing records in any of the supported modules in your Zoho Support account, directly from your Zoho Creator application. For example, you can update an existing request, update account details, update contact details etc. in your Zoho Support account using this Update task.

Supported Modules

  • Requests
  • Accounts
  • Contacts
  • Contracts

Syntax

<response> = zoho.support.updateRecord(<moduleName>, <portal>, <department>, <fieldsList>, <recordID>);

where,
<response>is the map variable returned as response.
<moduleName>is the name of the Support Module where the record needs to be updated. For example, "Requests" refers to the Requests module. The Support modules that are supported by Creator are "Requests", "Accounts", "Contacts" and "Contracts".
<portal>is the name of the Support Portal and <department> refers to the department in the portal where the record needs to be updated.
<fieldslist> is the map variable that holds the key,value pairs. The map key is the label name as specified in the Support module and the map value is the field value as submitted in the ZC form. For example, "Contact Name" : input.Contact_Name . Here, "Contact Name" is the label name as specified in the Support module and "input.Contact_Name" refers to the value specified in the Contact_Name field in the Zoho Creator form.
<recordID> pertains to the ID of the record that needs to be updated

Note:

  • All the parameters listed above are mandatory.  

Example

response = zoho.support.updateRecord("Requests", "zohotest", "database", {"Phone" : "9xxxxxxxx"}, 90000000001);

where,
response is the map variable returned as response
Requests is the name of the Support Module where the record needs to be updated.
zohotest is the name of the Support Portal and database refers to the department in the portal where the record needs to be updated. 
"Phone"is the label name as specified in the Support module. "9xxxxxxxxx" refers to the value specified in the "Phone" field in the Zoho Creator form.
"90000000001" is the record ID of the record that is being edited here.

Response Format

The response returned by Zoho Support will be in the format given below:

{"id":"60922000000055001","Status":"Record(s) added successfully","Time":"2014-11-27 10:05:43"

If the execution fails due to incorrect parameter value,the response will be in the following format:

{"message":"Invalid User","code":"4861"

Top