Unlinking entries with many-to-many relations #866
Unanswered
erykschubert
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, could anyone help me with unlinking entries having many-to-many relationships? I don't know how I can achieve it using OData Client :(
I'm trying with:
client.For("contacts").Key(Guid.Parse("68dc8a5c-c765-4f3c-a177-b6e75f885f84")).NavigateTo("rd_Account_Contact_Contact").Key(Guid.Parse("5bdd5d64-a99f-49a5-95f0-03a7d2acc53d")).DeleteEntryAsync();
But it gives me an error: Method Not Allowed and generates such request:
https://{{baseURL}}/api/data/v9.2/contacts(68dc8a5c-c765-4f3c-a177-b6e75f885f84)/rd_Account_Contact_Contact(5bdd5d64-a99f-49a5-95f0-03a7d2acc53d
Which is almost correct. The correct one would be:
https://{{baseURL}}/api/data/v9.2/contacts(68dc8a5c-c765-4f3c-a177-b6e75f885f84)/rd_Account_Contact_Contact(5bdd5d64-a99f-49a5-95f0-03a7d2acc53d/$ref
But I don't know what I should do to add this /$ref at the end of the request...
Beta Was this translation helpful? Give feedback.
All reactions