I am creating case record through api
record1:
{
"title" : "case1",
"customerid_contact@odata.bind" : "/contacts(guid)"
}
record2:
{
"title" : "case2",
"customerid_account@odata.bind" : "/accounts(guid)"
}
above two records were successfully created through postman.
My question is, while doing programmatically, how we can ensure that we are mapping the customerid with contact or account ?