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

Notifications

Announcements

No record found.

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)
  • a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    Can you please provide the code you use?

  • Verified answer
    sam12 Profile Picture
    60 on at

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

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 81 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

#3
#ManoVerse Profile Picture

#ManoVerse 40

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans