How To Get Profiles And Specific Profile Data Using Zoho CRM In ASP.NET MVC

Introduction

In this article, we will learn how to Get Profiles And Specific Profile 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 Profiles Data

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

public void GetProfilesData()
  {
          ZCRMRestClient restClient = ZCRMRestClient.GetInstance();
          BulkAPIResponse<ZCRMProfile> response = restClient.GetOrganizationInstance().GetAllProfiles();
          List<ZCRMProfile> profiles= response.BulkData;
         
  }

 

Get Specific Profile Data

public void GetSpecificProfile()
   {
       
           ZCRMRestClient restClient = ZCRMRestClient.GetInstance();
           APIResponse response = restClient.GetOrganizationInstance().GetProfile(profile id); // 33721640000000 is profile id
           ZCRMRole profile= (ZCRMRole)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