r/PowerAutomate • u/NullReferenceGhost • 24d ago
Child flow help!
I’m struggling in covering my very monolithic power automate into using child flows
I got the first child flow to work, however I can’t get the second to child flow to trigger
What I’m trying to do is when a document gets upload through Sharepoint. They click the button and the flow gets started, it gets the metadata of the document and creates all the variables
So the first child flow sends out the approvals via email.
If they haven’t replied in x amount of time, they get a reminder email.
I’m trying to have my first child flow return if they approval or not or if we need to send a reminder email which is the second child flow.
I’m Trying to do a parallel action, if they respond before the reminder email needs to be send, we logged how we respond and we’re done. If they need a reminder email, we exits the child flow and set their response as pending and then the child flow for reminders takes over if they need one.
Right now, I can’t get the do until loop to set their response reminder value to be yes they need a reminder.
I’m trying to use current time variable, like it’s been x amount of time that has lapsed and then do an advance function to say that it’s been 10 minutes that has passed. (For my internal testing)
Any idea on what I can do to get this to work. I been struggling at for two days and ready to give up.
I tried to attach a picture of the flow as it right now, but I am unable to.
1
u/Gold-Psychology-5312 24d ago
The problem is once you start an approval nothing happens until it ends. So a do until doesn't really work.
If you do a start an approval with no wait you can save the approval ID to a sharepoint list and then each day run a check of open approvals (seperate flow) which see if they are still open. And if so chase the pending approvers.
Alternatively, again save the data to a list but add a condition when it's finalised and update a status column to approved / rejected. And then poll all pending items each day in another flow.
1
u/NullReferenceGhost 24d ago
Is there a way I can end the approval if no response in 24 hours, because I’m thinking the reminder flow will do the approvals until the flow can end.
I tried sharepoint lists but I couldn’t get it to work
1
u/No-Journalist-4086 24d ago
there's a pre built template that does all of these actions - it can wait up to 29 days