I am trying to delete connection role on connection record using DELETE association reuqest.
Checked the Odata metadata and Navigation Property has Type=mscrm.conenctionrole. So it is Single-Valued navigation property. Followed the same steps as described in
https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/webapi/associate-disassociate-entities-using-web-api#remove-a-reference-to-an-entity
Here is my XHT DELETE url: XXXX/.../$ref
It says /ref unrecognized literal
So i removed but still getting an 400 status with message "Request message has unresolved parameters."
Please help. I am using Dynamics v9.0.1
Hi. Thank you for reaching out. Actually it got fixed. I am going the other way child->parent. instead of Parent->child.
this solved me:
req.open("DELETE", Xrm.Page.context.getClientUrl() + "/api/data/v9.0/connectionroles(" + roleEntityId+ ")/" + relationshipName+"("+conenctionId+")/$ref", false);
Hello,
Can you please provide the code you use?
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Mansi Soni as our August 2025 Community…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Hamza H 141
Daniyal Khaleel 132
DAnny3211 130