web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

DELETE Association not working for connection entity

(0) ShareShare
ReportReport
Posted on by 60

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

I have the same question (0)
  • Verified answer
    sam12 Profile Picture
    60 on at
    RE: DELETE Association not working for connection entity

    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);

  • a33ik Profile Picture
    84,331 Most Valuable Professional on at
    RE: DELETE Association not working for connection entity

    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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Hamza H Profile Picture

Hamza H 141

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 132

#3
DAnny3211 Profile Picture

DAnny3211 130

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans