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 + ")";
}
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
Post a Comment