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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Update and Delete Related entity using web api

(0) ShareShare
ReportReport
Posted on by

How to update and Delete related entity record using web api crm

*This post is locked for comments

I have the same question (0)
  • Sreevalli Profile Picture
    3,264 on at

    Hi,

    If you are looking for Javascript solutions, see the help links from Microsoft docs

    Update: docs.microsoft.com/.../updaterecord

    Delete : docs.microsoft.com/.../deleterecord

  • Community Member Profile Picture
    on at

    No I want to update the related entity record  eg:  name, salary

  • Suggested answer
    Dynamics365 Rocker Profile Picture
    7,755 on at

    You have to retrieve data first then delete it.

    Retrieve data through web API:

    docs.microsoft.com/.../retrieve-entity-using-web-api

    Delete Data from Web API:

    community.dynamics.com/.../delete-record-using-web-api

    Fetch is same for update.

  • Rawish Kumar Profile Picture
    13,758 on at

    When you say Related entity? Are you talking about the child records?

    If yes , what would be the trigger?

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    Hi,

    Download CRMRestBuilder and build your query , you dont have to write code manually -

    www.youtube.com/watch

    scaleablesolutions.com/crud-operations-using-microsoft-dynamic-crm-web-api

  • Suggested answer
    Sreevalli Profile Picture
    3,264 on at

    Hi,

    If you want to fetch the lookup reference(Parent) field details then first get the attribute details and pass the

    if (Xrm.Page.data.entity.attributes.get("fieldname").getValue() != null) {

              var recordId = Xrm.Page.data.entity.attributes.get("fieldname").getValue()[0].id;

              var Name = Xrm.Page.data.entity.attributes.get("fieldname").getValue()[0].name;

              var  entityType = Xrm.Page.data.entity.attributes.get("feildname ").getValue()[0].entityType;

          }

    then pass recordId and entityType along with data object to update the related record. docs.microsoft.com/.../updaterecord

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans