Value Lists with REST API

Value Lists with REST API

SaveToDB 10 lets you configure REST API services in a database, as detailed in Getting Data Using REST API and Saving Data Using REST API.

Here's a quick overview of the configuration:

IDTABLE_SCHEMATABLE_NAMETABLE_TYPETABLE_CODEINSERT_OBJECTUPDATE_OBJECTDELETE_OBJECT
 ZohoCRMContactsHTTPhttps://www.zohoapis.com/crm/v2/ContactsPOST {$url}

{"data":[{@json_row_values}]}
PUT {$url}/{id}

{"data":[{@json_row_values}]}
DELETE {$url}/{id}

The configured ZohoCRM.Contacts object shares the same configuration features as other native database objects.

Developers can set up value lists using the xls.handlers table.

You can combine fixed values, values from a database, and values from the underlying data service.

Here’s an example:

IDTABLE_SCHEMATABLE_NAMECOLUMN_NAMEEVENT_NAMEHANDLER_SCHEMAHANDLER_NAMEHANDLER_TYPEHANDLER_CODE
 ZohoCRMContactsSalutationValidationListVALUES-None-,Mr.,Mrs.,Dr.,Prof.
 ZohoCRMContactsLead_SourceValidationListZohoCRMxl_list_lead_sourcesVIEW
 ZohoCRMContactsAccount_NameValidationListZohoCRMxl_list_account_namesHTTP<HTTP request>

The HTTP request for the Account_Name looks like this:

https://www.zohoapis.com/crm/v2/Accounts?fields=Account_Name

Creating these configurations can be time-consuming.

To streamline the process, we recommend loading service metadata using the SELECT queries described in the HTTP Commands topic.

This approach allows you to select only the required columns in the correct order, making data copying easier.

This website is using cookies. By continuing to browse, you give us your consent to our use of cookies as explained in our Cookie Policy.