Introduction
In this article, we will learn how to get metadata using Zoho CRM in ASP.NET MVC Web application.
Let’s begin
Please read this article first of all here.
C# Code Example
Open the HomeController.cs file and add the below code in it.
Module Meta Data
module API name =leads, accounts, solutions, products, vendors, pricebooks, quotes, salesorders, purchaseorders, invoices, custom, contacts, deals, campaigns, tasks, cases, events, calls, and notes
public void GetMetaDataForModule() { ZCRMRestClient restClient = ZCRMRestClient.GetInstance(); APIResponse response = restClient.GetModule("Leads"); //module api name ZCRMModule module = (ZCRMModule)response.Data; }
Fields Meta Data
public void GetMataDataForFieds() { ZohoOAuthClient client = ZohoOAuthClient.GetInstance(); ZCRMModule module = ZCRMModule.GetInstance("Leads"); BulkAPIResponse<ZCRMField> response = module.GetAllFields(); List<ZCRMField> records = response.BulkData; }
Layouts Meta Data
public void GetMetaDataForLayouts() { ZCRMModule module = ZCRMModule.GetInstance("Leads"); BulkAPIResponse<ZCRMLayout> response = module.GetAllLayouts(); List<ZCRMLayout> layouts = response.BulkData; }
if you have any questions or issues about this article, please let me know and more details here.
Is it necessary to use SDK??