ASP.NET MVC

How To Create Bulk Read Job Using Zoho CRM In ASP.NET MVC

Introduction

In this article, we will learn how to create a bulk read job (bulk export) 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.

public void CreateBulkReadJob()
 {
         ZCRMBulkRead bulkReadrecordIns = ZCRMRestClient.GetInstance().GetBulkReadInstance("Leads");
         ZCRMCriteria criteria = ZCRMCriteria.GetInstance();
         criteria.FieldAPIName = "Email";
         criteria.Comparator = "equal";
         criteria.Value = "Email@zoho.com";

         ZCRMBulkQuery query = ZCRMBulkQuery.GetInstance();
         query.CvId = your custom view id; // custom view id
         List<string> fields = new List<string>();
         fields.Add("First_Name");
         fields.Add("Last_Name");
         fields.Add("Email");
         query.Fields = fields;
         query.Page = 1;
         query.Criteria = criteria;
         bulkReadrecordIns.Query = query;
         ZCRMBulkCallBack callBack = ZCRMBulkCallBack.GetInstance();
         callBack.Url = "https://www.zoho.com";
         callBack.Method = "post";
         bulkReadrecordIns.CallBack = callBack;
         APIResponse response = bulkReadrecordIns.CreateBulkReadJob();
  }

 

Get Bulk Read Job Details

public void GetBulkReadJobDetail()
{
        ZCRMBulkRead readIns = ZCRMRestClient.GetInstance().GetBulkReadInstance(your bulk read job id); // To get the ZCRMBulkRead instance using job_id
        APIResponse response = readIns.GetBulkReadJobDetails();
        ZCRMBulkRead bulkReadIns = (ZCRMBulkRead)response.Data;// To get ZCRMBulkRead instance
}

 

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.

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

3 years ago