cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kinzlyb
Regular Visitor

Accessing File from Parent Flow

I am trying to create an approval flow with built-in reminder emails. The flow is triggered (initially) by a file being added to a SharePoint folder. The issue I'm running into is the fact that I need multiple people to approve in a particular order. To combat this, I've been creating parent/child flows to trigger the next approval flow to run, essentially approval flow 1 happens, then two, and finally three. All these are built with essentially the same information as seen here with the triggers of course being different as you go down the flow.

kinzlyb_0-1643041062977.png

 

I need help accessing the original file triggering the first approval flow in the subsequent 2nd and 3rd flows. I've added the input for the child flows to include the file information, this definitely isn't correct:

kinzlyb_1-1643041202406.png

kinzlyb_2-1643041215164.png

 

Any help you can give would be greatly appreciated!

1 ACCEPTED SOLUTION

Accepted Solutions
Pstork1
Dual Super User
Dual Super User

Here's an example of the parent flow.  You would add appropriate logic between each sub flow to check whether it should be done or not.

image.png

And this is the what the sub flow would look like.  You can use the ID or Identifier to retrieve almost anything you need about the file.

image.png



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

4 REPLIES 4
Pstork1
Dual Super User
Dual Super User

Why don't you just pass the file identifier to the child flows and let them use that to retrieve anything they need from the file.  You normally don't need the content of the actual file to do an approval.  You usually just include a link to the file and perhaps some other metadata.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Can you show an example of how to do that?

Pstork1
Dual Super User
Dual Super User

Here's an example of the parent flow.  You would add appropriate logic between each sub flow to check whether it should be done or not.

image.png

And this is the what the sub flow would look like.  You can use the ID or Identifier to retrieve almost anything you need about the file.

image.png



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Thank you so much!

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (1,384)