How To Get Custom Views And Specific Custom View Data Using Zoho CRM In ASP.NET MVC

Introduction

In this article, we will learn how to Get Custom Views And Specific Custom View Data using Zoho CRM in ASP.NET MVC Web application.

Let’s begin

Please read this article first of all here.

C# Code Example

Get Custom Views Data

Open the HomeController.cs file and add the below code in it.

public void CustomViewsData()
{
        ZCRMModule moduleIns = ZCRMModule.GetInstance("Leads"); //module api name
        BulkAPIResponse<ZCRMCustomView> response = moduleIns.GetAllCustomViews();
        List<ZCRMCustomView> customViews = response.BulkData; //customViews - list of ZCRMCustomView instance
 }

 

Get Specific Custom View Data

public void GetSpecificCustomView()
  {
          ZCRMModule moduleIns = ZCRMModule.GetInstance("Leads"); //module api name
          APIResponse response = moduleIns.GetCustomView(your custom view id); //33721640000006 is customView id
          ZCRMCustomView customView = (ZCRMCustomView)response.Data;
   }

 

if you have any questions or issues about this article, please let me know and more details here.

 

Submit a Comment

Your email address will not be published. Required fields are marked *

Subscribe

Select Categories