I am trying to update (PATCH) a party relationship via the DirPartyRelationShip entity.
I have tried to PATCH on this:
{{resource}}/data/PartyRelationships(RelationshipType='BeneficiaryTrust',ParentPartyId='000000603',ChildPartyId='000000403',LegalEntityDataArea='',ValidTo='2154-12-31T23:59:59Z', ValidFrom = '2023-02-09T07:06:13Z')
but I am getting a 404:
{ "Message": "No HTTP resource was found that matches the request URI 'https://xxxx.dynamics.com/data/PartyRelationships(RelationshipType='BeneficiaryTrust',ParentPartyId='000000603',ChildPartyId='000000403',LegalEntityDataArea='',ValidTo='2154-12-31T23:59:59Z', ValidFrom = '2023-02-09T07:06:13Z')'. No route data was found for this request." }
Any idea what I am doing wrong in my request
A get on this endpoint will return data like:
{ "@odata.context": "https://xxx.dynamics.com/data/$metadata#PartyRelationships", "value": [ { "@odata.etag": "W/\"JzEsNTYzNzE1MTMyNabcLDU2MabcNDQ2MDAn\"", "RelationshipType": "BeneficiaryTrust", "ParentPartyId": "000000603", "ChildPartyId": "000000403", "LegalEntityDataArea": "", "ValidTo": "2154-12-31T23:59:59Z", "ValidFrom": "2023-02-09T07:06:13Z", "CustomField1": "test" } ] }
You are a hero, well spotted!
But now I am facing another issue.. :/
Any idea why it doesnt seem to update the ValidTo datetime?
It responds back 204 - no content as expected but the 'ValidTo' field doesn't change value:
Patch request body:
{ "ValidTo": "2025-12-31T23:59:59Z" }
Hi,
I tried in my system for the same entity.
Try this :
/data/PartyRelationships(RelationshipType='ContactPerson',ParentPartyId='000004348',ChildPartyId='000005276',ValidTo=2154-12-31T23:59:59Z, ValidFrom = 2015-10-22T13:16:37Z,LegalEntityDataArea=' ')
Remove speech marks from ValidTo & ValidFrom fields
André Arnaud de Cal...
291,979
Super User 2025 Season 1
Martin Dráb
230,848
Most Valuable Professional
nmaenpaa
101,156