In this article, we will learn how to create a Deal using Zoho CRM in ASP.NET MVC Web application.
Let’s begin
Please read this article first of all here.
Open the HomeController.cs file and add the below code in it.
public void CreateDeal() { ZCRMModule moduleInsAccount = ZCRMModule.GetInstance("accounts"); //module api name BulkAPIResponse<ZCRMRecord> responseAccount = moduleInsAccount.GetRecords(); List<ZCRMRecord> relatedLists = responseAccount.BulkData; List<ZCRMRecord> listRecord = new List<ZCRMRecord>(); ZCRMRecord record; record = ZCRMRecord.GetInstance("deals", null); //To get ZCRMRecord instance record.SetFieldValue(relatedLists[0].CreatedBy.FullName, relatedLists[0].CreatedBy.Id); record.SetFieldValue("Deal_Name", "test1"); record.SetFieldValue("Amount", "100"); listRecord.Add(record); ZCRMModule moduleIns = ZCRMModule.GetInstance("deals"); BulkAPIResponse<ZCRMRecord> responseIns = moduleIns.CreateRecords(listRecord); //To call the create record method Console.WriteLine("HTTP Status Code:" + responseIns.HttpStatusCode); }
public void GetAllDealsData() { ZCRMModule moduleIns = ZCRMModule.GetInstance("deals"); //module api name BulkAPIResponse<ZCRMRecord> response = moduleIns.GetRecords(); List<ZCRMRecord> relatedLists = response.BulkData; }
if you have any questions or issues about this article, please let me know and more details here.
In this article, we have to show Create and Used PIPE in angular
In this article, we have to show Create and Used PIPE in angular
In this article, we have to show Create and Used PIPE in angular