Description:
Entity Account Alternate Key has two parameters:
- 'fullname' Type String
- 'primarycontact' type lookup column from the Contact entity
Entity Contact alternate key has three parameters:
- keyfield1 type string
- keyfield2 type string
- keyfield3 Type Boolean
when I want to update a specific record from the Contact entity:
PATCH: weburl/contacts(keyfeld1 = ‘ABCD’, keyfeld2 = ‘EFGH’, keyfeld3 = true)
This works perfectly
But when I want to update a record from accounts I have a problem I tried the following:
PATCH: weburl/accounts(fullname=’John Kennedy’, _primarycontact_value = ‘/contacts(keyfeld1 = ‘ABCD’, keyfeld2 = ‘EFGH’, keyfeld3 = true)’)
I get a syntax error. Maby havd anyone an Idea with this retrieval.
Note: I don’t want to use the GUID.
PATCH: weburl/accounts(fullname=’John Kennedy’, _primarycontact_value ='GUID')
I Know that is works.
Thanks