このページには、終了したSkyDeskサービスに関する説明が記載されておりますので、ご注意ください。

Update Records in SkyDesk Support

 Update a record in SkyDesk Support

The zoho.support.updateRecord() task is used to update existing records in any of the supported modules in your SkyDesk Support account, directly from your SkyDesk Creator Application. For example, you can update an existing request, update account details, update contact details etc. in your SkyDesk 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 SkyDesk Support Module where the record needs to be updated. For example, "Requests" refers to the Requests module. The SkyDesk Support modules that are supported by Creator are "Requests", "Accounts", "Contacts" and "Contracts".
<portal>is the name of the SkyDesk 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 SkyDesk Support module and the map value is the field value as submitted in the SkyDesk Creator form. For example, "Contact Name" : input.Contact_Name . Here, "Contact Name" is the label name as specified in the SkyDesk Support module and "input.Contact_Name" refers to the value specified in the Contact_Name field in the SkyDesk 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", "skytest", "database", {"Phone" : "9xxxxxxxx"}, 90000000001);

where,
response is the map variable returned as response
Requests is the name of the SkyDesk Support Module where the record needs to be updated.
skytest is the name of the SkyDesk 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 SkyDesk Support module. "9xxxxxxxxx" refers to the value specified in the "Phone" field in the SkyDesk Creator form.
"90000000001" is the record ID of the record that is being edited here.

 Response Format

The response returned by SkyDesk 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"