Posts

Showing posts with the label create record with C# and mscrm Web api

Create records using Web api C# in Dynamics 365

Here is the code to create records using C# + Web Api in Dynamics 365 private static async Task CreateRecord()         {             JObject contact1 = new JObject{                         { "firstname", "Bangar" },                         { "lastname", "Raju" },                         { "annualincome", 80000 }                         };             contact1["jobtitle"] = "Junior Developer";             //for Custom data type for Account entity. if you want contat then "parentcustomerid_contact@odata.bind"             contact1.Add("parentcustomerid_account@odata.bind", "/accounts(475B158C-541C-E511-8...