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

  • 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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 225 Super User 2025 Season 1

#2
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 78 Super User 2025 Season 1

#3
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 47

Overall leaderboard

Product updates

Dynamics 365 release plans