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

Basic Plugin Code in D365 using C#

CURD (Create, Update, Retrieve and Delete) Operation in D365 using Power Shell Script

Meta Data Using WebApiRequest