I'm Using incident API in postman and doing a POST request
This is my body
{
"customerid_account@odata.bind" : "accounts(e676e359-6f59-e711-810d-5065f38bb051)",
"title" : "rxaap.com-Data Issues- PharmacyInformationUpdate",
"new_newcasetitle" : "rxaap.com- Data Issues - PharmacyInfoUpdate",
"caseorigincode" : 3,
"casetypecode" : 100000003,
"new_casetype" : "rxaap.com",
"new_casetypelookup" : "rxaap.com",
"new_casesubtypelookup" : "Data Issues",
"description" : "This is test. Please, ignore "
}
Adding documentation as per Carlo comment:
Associate entity records on create
Sample:
POST [Organization URI]/api/data/v9.0/accounts HTTP/1.1
Content-Type: application/json; charset=utf-8
OData-MaxVersion: 4.0
OData-Version: 4.0
Accept: application/json
{
"name":"Sample Account",
"primarycontactid@odata.bind":"/contacts(00000000-0000-0000-0000-000000000001)"
}
Regards.
Hi it seems that the issue is on your lookup fields.
To set a value on a lookup field you must pass the target record guid, not the name of the record.
This is an example.
"new_PrimaryIncident@odata.bind":"/incidents(10000000-0000-0000-0000-000000000000)"
André Arnaud de Cal...
291,965
Super User 2025 Season 1
Martin Dráb
230,817
Most Valuable Professional
nmaenpaa
101,156