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

Sample CRUD Operations Using C# in MSCRM

Calling Action using javascript with web api request in mscrm

how to get the XRM/FromContext on html page in D365.