Creator Help

Creating a Record in Zoho Support

Table of ContentsDown

Create a record in Zoho Support

The zoho.support.create() task is used to add a record to any of the supported modules in your Zoho Support account, directly from your Zoho Creator application. For example, you can create a new request, add a new account, create a new contact etc. in your Zoho Support account using this Create task.

Supported Modules

  • Requests
  • Accounts
  • Contacts
  • Contracts

Syntax

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

where,
<response>is the map variable returned as response.
<moduleName>is the name of the Support Module where the record will be added. 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 will be added.
<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.

Note:

  • All the parameters listed above are mandatory. 

Example

response = zoho.support.create("Requests", "zohotest", "database", {"Contact Name" : "Max","Email" : "username@zohocorp.com"});

where,
response is the map variable returned as response.
Requests is the name of the Support Module where the record will be added.
zohotest is the name of the Support Portal and database refers to the department in the portal where the record will be added.
"Contact Name" and "Email" are the label names as specified in the Support module. "Max" and "username@zohocorp.com" refer to the value specified in the "Contact_Name" and "Email" fields in the Zoho Creator form respectively.

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