Sample Codes
All of Zoho CRM's APIs can be used through the C# SDK, to enable your custom application to perform data sync to the best degree. Here are the sample codes for all the API methods available in our SDK.
Attachment Operations
Constructor | Description |
---|
AttachmentsOperations(string moduleAPIName, string recordId) | Creates an AttachmentsOperations class instance with the moduleAPIName and recordId. |
Blueprint Operations
Constructor | Description |
---|
BluePrintOperations(string recordId, string moduleAPIName) | Creates a BluePrintOperations class instance with the recordId and moduleAPIName. |
Method | Description |
---|
GetBlueprint | To get the next available transitions for that record, fields available for each transition, current value of each field, and validation(if any). |
UpdateBlueprint | To update a single transition at a time. |
Bulk Read Operations
Method | Description |
---|
CreateBulkReadJob | To schedule a bulk read job to export records that match the criteria. |
GetBulkReadJobDetails | To know the status of the bulk read job scheduled previously. |
DownloadResult | To download the result of the bulk read job. The response contains a zip file. Extract it to get the CSV or ICS file depending on the "file_type" you specified while creating the bulk read job |
Bulk Write Operations
Method | Description |
---|
UploadFile | To upload a CSV file in ZIP format. The response contains the "file_id". Use this ID while making the bulk write request. |
CreateBulkWriteJob | To create a bulk write job to insert, update, or upsert records. The response contains the "job_id". Use this ID while getting the status of the scheduled bulk write job. |
GetBulkWriteJobDetails | To know the status of the bulk write job scheduled previously. |
DownloadResult | To download the result of the bulk write job. The response contains a zip file. Extract it to get the CSV or ICS file depending on the "file_type" you specified while creating the write job |
Custom View Operations
Constructor | Description |
---|
CustomViewsOperations(string module) | Creates a CustomViewsOperations class instance with the moduleAPIName. |
Method | Description |
---|
GetCustomViews | To get the list of all custom views in a module. |
GetCustomView | To get the details of specific custom view in a module. |
Fields Metadata Operations
Constructor | Description |
---|
FieldsOperations(string module) | Creates a FieldsOperations class instance with the module. |
Method | Description |
---|
GetFields | To get the meta details of all fields in a module. |
GetField | To get the meta details of specific field in a module. |
Files Operations
Method | Description |
---|
UploadFiles | To upload files and get their encrypted IDs. |
GetFile | To get the uploaded file through its encrypted ID. |
Layouts Operations
Constructor | Description |
---|
LayoutsOperations(string module) | Creates a LayoutsOperations class instance with the moduleAPIName. |
Method | Description |
---|
GetLayouts | To get the details of all the layouts in a module. |
GetLayout | To get the details (metadata) of a specific layout in a module. |
Notification Operations
Method | Description |
---|
EnableNotifications | To enable instant notifications of actions performed on a module. |
GetNotificationDetails | To get the details of the notifications enabled by the user. |
UpdateNotifications | To update the details of the notifications enabled by a user. All the provided details would be persisted and rest of the details would be removed. |
UpdateNotification | To update only specific details of a specific notification enabled by the user. All the provided details would be persisted and rest of the details will not be removed. |
DisableNotifications | To stop all the instant notifications enabled by the user for a channel. |
DisableNotification | To disable notifications for the specified events in a channel. |
Profile Operations
Constructor | Description |
---|
ProfilesOperations(OffsetDateTime ifModifiedSince) | Creates a ProfilesOperations class instance with the value of the If-Modified-Since header. |
Method | Description |
---|
GetProfiles | To get the list of profiles available for your organization. |
GetProfile | To get the details of a specific profile. |
Query (COQL) Operation
Method | Description |
---|
getRecords | To get the records from a module through a COQL query. |
Related List Operations
Constructor | Description |
---|
RelatedListsOperations(string module) | Creates a RelatedListsOperations class instance with the moduleAPIName. |
Method | Description |
---|
GetRelatedLists | To get the details of all the related lists of a module. |
GetRelatedList | To get the details of a specific related list of a module. |
Related Records Operations
Constructor | Description |
---|
RelatedRecordsOperations(string relatedListAPIName, long recordId, string moduleAPIName) | Creates a RelatedRecordsOperations class instance with the relatedListAPIName, recordId, and moduleAPIName. |
Role Operations
Method | Description |
---|
GetRoles | To get the list of all roles available in your organization. |
GetRole | To get the details of a specific role. |
Shared Records Operations
Constructor | Description |
---|
ShareRecordsOperations(long recordId, string moduleAPIName) | Creates a ShareRecordsOperations class instance with the recordId and moduleAPIName. |
Method | Description |
---|
GetSharedRecordDetails | To get the details of a record shared with other users. |
ShareRecord | To share a record with other users in the organization. |
UpdateSharePermissions | ToUpdate the sharing permissions of a record granted to users as Read-Write, Read-only, or grant full access. Revoke access given to users to a shared record. Update the access permission to the related lists of the record that was shared with the user.
|
RevokeSharedRecord | To revoke access to a shared record. |
Taxes Operations
Method | Description |
---|
GetTaxes | To get the taxes of your organization. |
CreateTaxes | To add taxes to your organization. |
UpdateTaxes | To update the existing taxes of your organization. |
DeleteTaxes | To delete multiple taxes from your organization. |
GetTax | To get the details of a specific tax. |
DeleteTax | To delete a specific tax from your organization. |
Territory Operations
Method | Return Type | Description |
---|
GetTerritories | APIResponse<ResponseHandler> | To get the list of all territories. |
GetTerritory | APIResponse<ResponseHandler> | To get the details of a specific territory. |
Users Operations
Method | Description |
---|
GetUsers | To get the list of users in your organization. |
CreateUser | To add a user to your organization. |
UpdateUsers | To update the existing users of your organization. |
GetUser | To get the details of a specific user. |
UpdateUser | To update the details of a specific user. |
DeleteUser | To delete a specific user from your organization. |
Variable Groups Operations