Hi Experts,
I was trying to use CRMWEBApi to create Account in D365 V9. but it is not creating account as per code given below:
Task.Run(async () => {
var cred = new NetworkCredential
{
UserName = "username",
Password = "pwd"
};
var api = new CRMWebAPI("https://<orgname>.crm8.dynamics.com", cred);
JObject contact1 = new JObject();
contact1.Add("name", name);
contact1.Add("address1_telephone1", phone);
response = await api.Create("account", contact1);
}
).Wait();
Please suggest.
*This post is locked for comments