ASP.NET MVC

How To Get Meta Data Using Zoho CRM In ASP.NET MVC

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.

 

Sagar Rana

Sagar Rana is a Web Developer in Vision Infotech. He has strong skills and knowledge of ASP.NET C#, ASP.NET MVC, .Net Core, Jquery, JavaScript, WEB API, React.js, ADO.Net, Entity Framework, SQL and different integration like Xero, Stripe, Zoho CRM, Square, PayTM, PayKUN, RazorPay, Quickbook Desktop etc.

View Comments

Recent Posts

Testing hk

Testing

2 years ago

Create and Used PIPE in angular

In this article, we have to show Create and Used PIPE in angular

2 years ago

Operation

Testing

2 years ago

Create and Used PIPE in angular

In this article, we have to show Create and Used PIPE in angular

2 years ago

Create and Used PIPE in angular

In this article, we have to show Create and Used PIPE in angular

2 years ago

TETS NEW

test

2 years ago