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

Introduction

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

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

public void GetRolesData()
 {
         ZCRMRestClient restClient = ZCRMRestClient.GetInstance();
         BulkAPIResponse<ZCRMRole> response = restClient.GetOrganizationInstance().GetAllRoles();
         List<ZCRMRole> roles = response.BulkData;
         
    
 }

 

Get Specific Roles Data

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