customer lookup using Web Api Request

field Schema Name = apy_CustomerId

if (entityName.toLowerCase() == "account") {
    entity["apy_CustomerId_account@odata.bind"] = "/accounts(" + entId + ")";
} else if (entityName.toLowerCase() == "contact") {
    entity["apy_CustomerId_contact@odata.bind"] = "/contacts(" + entId + ")";
}

Comments

Popular posts from this blog

Meta Data Using WebApiRequest

Sample CRUD Operations Using C# in MSCRM

Basic Plugin Code in D365 using C#