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

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Update Parent Record when Child Record updates

(0) ShareShare
ReportReport
Posted on by 1,077

Hi,

I have a custom entity (Additional Addresses) related to Account entity on Many to One relationship. I mean, one Account can have many Additional Addresses. One among many Additional Addresses is a Primary Address on Account main form. So, I managed to create a child Additional Address (of type Primary Address) when Account is created using distribution workflow (from CodePlex). Now, my requirement is whenever any changes made to Primary Address on Additional Addresses entity should update back the Primary Address on Account main form. Actually, I created a simple workflow on child record field update to update parent record. But I am getting the below error msg.

"""Sync workflow 'Update Primary Address in Account' terminated with error 'This workflow job was canceled because the workflow that started it included an infinite loop. Correct the workflow logic and try again. For information about workflow logic, see Help."""

I don't know why it is throwing such an error. Plz some one can help me to figure it out and address my requirement. 

Thanks in advance.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    PS Profile Picture
    23,577 on at
    RE: Update Parent Record when Child Record updates

    Share the workflow screenshot. it seems you have an infinite loop in your workflow.

  • Suggested answer
    Zohaib Uddin Khan Profile Picture
    2,822 on at
    RE: Update Parent Record when Child Record updates

    Kindly check the below snapshot, it will be very similar to it.

    8233.Untitled.png

  • Vijayakumar Kenchugundu Profile Picture
    1,077 on at
    RE: Update Parent Record when Child Record updates

    More information: Additional Addresses and Account relationship is mapped using AccountId GUID and Type of Behavior is Parental.

    Parent-record-update.jpg

  • Suggested answer
    Nithya Gopinath Profile Picture
    17,078 on at
    RE: Update Parent Record when Child Record updates

    Hi,

    A similar workflow to update parent records when updating child records is shown in the link below.

    www.powerobjects.com/.../how-to-roll-up-values-from-child-records-to-parent-records-via-workflow-in-microsoft-dynamics-crm

    Hope this helps.

  • Verified answer
    Zohaib Uddin Khan Profile Picture
    2,822 on at
    RE: Update Parent Record when Child Record updates

    Seems like you have either any plugin or workflow on the Update of Account, which is updating the values in the Additional Addresses. Then, this workflow again trigger and become infinite.

    Disable all the plugins/workflows in your system and try again. Thanks.

  • Vijayakumar Kenchugundu Profile Picture
    1,077 on at
    RE: Update Parent Record when Child Record updates

    Hi Zohaib,

    Great catch. I appreciated it. When this workflow updates Account page, it calls account's workflow to update back additional addresses. It is going in a endless loop. How do we address such situations not doing any plugin?

    Thanks a lot man!!!

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#2
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans