Send mail for each Child records when Parent is updated

Hello, I have a scenario for project tracking where in I maintain parent child relationship in the same table as below.

3X_6_e_6e37644d11fdccc6359a581c9c131066d9773263.png

When the owner Email 1 changes status of Activity 1 to “Completed”, I want to send an email notification to Email 2, Email 3, Email 4 and Email 5 to start their respective activities.

Help me achieve this.

Thanks.

0 8 378
8 REPLIES 8

Don’t know how have you devised the relationship here (looks pretty mixed up to me), but generally the solution would be to have a workflow email, with emails sending out to the email addresses defined by the bulk dereference expression: [Related Children][Email Addresses].

I have not created two different tables, but have maintained relationship in the same table. I, however, have tried multiple different things, but when I update status of Activity1 to “Complete”, it does not fire 4 different mail for child activities.

Can you please tell what actions / workflow would be required?

You may wish to mention

  1. Are you filling up the parent ID , Children ID columns manually? Or does the app have some logic to fill in these “relationship” columns.

  2. Are there such more relationship rows in the table or these are the only 5 rows in the table?

  3. Is it a dynamic ( meaning continuously changing table in terms of additional rows and column values) or a static table?

  1. Are you filling up the parent ID , Children ID columns manually? Or does the app have some logic to fill in these “relationship” columns. -
    **Ans:**There is a provision in the App to maintain parent ID and / or Predecessor ID in an activity record. Alternatively, I can maintain it in Excel file and copy paste for the first time. This is a project plan for a short duration project, so hardly there could be change later on.

  2. Are there such more relationship rows in the table or these are the only 5 rows in the table?
    **Ans:**Since this is a project plan, there could be different number of child and successor records for each activity.

  3. Is it a dynamic ( meaning continuously changing table in terms of additional rows and column values) or a static table?
    **Ans:**There is not a static table. There could be more than one plan every time when there is a project.

Thank you. Please create a VC called say [Related Emails] in your table with an expression something like

SELECT(Table Name[Owner], [Parent ID]=[_THISROW].[Activity])

Please use this VC in “To” in Send The Email Process in Workflow constructed through automation.

Hope the app is deployed so email will go to all recipients. If the app is not deployed, the testing will anyway send the emails to app creator mentioning that since app is not deployed, the Emails of Owner 2, 3, 4 etc. are being sent to the app creator.

Thanks Suvrutt,

But, I think this will send only one single mail to all addresses for all activity owners. My requirement is that it should send mail to individual activity owners with details of respective activity.

Thanks.

3X_9_0_9012a1cb3be7a2cd64e4dc2991dcc00144f142f6.png

Got it. In that case I believe you will need a distinct indicator ( such as an additional column that changes for each “child” row whenever the “parent” status changes) I believe otherwise there is no way for the conditional logic to know that a separate email needs to be sent for each row unless a value in each of the “child” row changes.

Hi Suvrutt, hope you’re well and thank you for the instructions above. I was unable to get the child emails to generate and wondered if I was missing a step. Here is my post from earlier on this topic: Thanks so much!

Top Labels in this Space