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 :
Microsoft Dynamics CRM (Archived)

What will be the best approach to handle child entity and parent entity record update.

(0) ShareShare
ReportReport
Posted on by 6

Hello All Experts,

I have come across a scenario need your support.

I have two entities Entity A and Entity B.

having 1:N relationship.

Entity B is placed as subgrid on entity A.

when i go to create the Entity B record i want to update one of the field of the Entity A record with the value of optionset present on Entity B form.

How to achieve this kindly help me resolving this.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    M.Azwar Alam Profile Picture
    on at

    Hi,

    You can update parent record by using Workflow. You need to create a WF on child entity record creation and then update parent record in that WF

    Mark answer as verified, if it works for you

  • EmployeeOcta Profile Picture
    6 on at

    Hello Azwar,

    can you give any example for this.

  • Suggested answer
    M.Azwar Alam Profile Picture
    on at

    You can check  following link

    community.dynamics.com/.../231073

    stackoverflow.com/.../crm-2011-how-to-update-a-parent-entity-field-with-values-from-a-child-related-en

    www.youtube.com/watch

    Mark as verified, if it works for you

  • EmployeeOcta Profile Picture
    6 on at

    Hello Azwar,

    How can i get the field name of the parent in the workflow of child enity.

  • Suggested answer
    M.Azwar Alam Profile Picture
    on at

    You need add update step in WF and then select your parent child relation of entity A to Entity B and then click on Update. It will open the Entity A Form and then set values

  • Suggested answer
    M.Azwar Alam Profile Picture
    on at

    You can check this video as well

    www.youtube.com/watch

  • EmployeeOcta Profile Picture
    6 on at

    Hello Azwar,

    I cannot see the video as it's blocked buy our network admin,

    second thing while trying to create the workflow not able to select the relational entity from the Entity B.

    Below is screenshot.

    oportunitytype.PNG

  • M.Azwar Alam Profile Picture
    on at

    Opportunity Type is child entity or parent entity ?

  • Suggested answer
    Somesh2207 Profile Picture
    1,563 on at

    [quote user="EmployeeOcta"]when i go to create the Entity B record i want to update one of the field of the Entity A record with the value of optionset present on Entity B form.[/quote]

    Based on this, I am assuming that you want to update the value on the Parent record when the value on the child record is updated/ set.

    This can be easily done using workflow. So you need to create a workflow on Entity B (on update of the Optionset field),

    In the workflow, you can do update operation on Entity A (since Entity A is lookup on Entity B) based on the value from record of Entity B.

    let me know if this is not clear, then I can post some screenshots of example.

    Kindly mark this as Answer if this resolves your query.

    Thanks

    Somesh Siripuram

    Dynamics CRM Expert

  • EmployeeOcta Profile Picture
    6 on at

    Hello Azwar,

    Opportunitytype is Entity B in my case i.e. child entity.

    Hello Somesh,

    since Entity A is lookup on Entity B , this is not the case.

    Entity A contains subgrid for Entity B.

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans