Announcements
No record found.
How to update and Delete related entity record using web api crm
*This post is locked for comments
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
No I want to update the related entity record eg: name, salary
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.
When you say Related entity? Are you talking about the child records?
If yes , what would be the trigger?
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
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.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
ScottDurow 2
GJones 1