cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
shaneOZ
Responsive Resident
Responsive Resident

Batch Export to pdf

Hi,

 

Is this possible? i have an app ive built that exports to pdf (via flow) but id like to extend on that to export in batches based on criteria, i was thinking of using a gallery and filtering via search boxes (for names) and a dropdown for other criteria such as date range etc.

 

Anyone done this before? is it possible? 

4 REPLIES 4
EricLott
Super User
Super User

What do you mean by batches? Like you want to loop through a filtered gallery and create a PDF for each row?
shaneOZ
Responsive Resident
Responsive Resident


@EricLott wrote:
What do you mean by batches? Like you want to loop through a filtered gallery and create a PDF for each row?

I want to create a seperate pdf for each list item that is in the gallery, currently i select the sharepoint list item of interest from a gallery and view the item on a detail form and export to that one item to pdf and then print it. But the client has requested to select a few based on a range of dates and/or employee and/or one more field. (i really dont know where to begin as no videos or documentation is available)

 

Sorry on re-reading my initial post it doesn't define my issue well.

That's fine! You can use the ForAll() function to run your Flow for each item in a gallery. It would look something like this:
ForAll(Gallery1.Items,YourPdfExportFlow.Run(YourFlowArguments))
v-xida-msft
Community Support
Community Support

Hi @shaneOZ ,

Could you please share a screenshot about your flow's configuration?

Do you call a flow from your app to generate the PDF file for the selected item in your Gallery?

 

Based on the needs that you mentioned, I think the ForAll function could achieve your needs. Please consider set the OnSelect property of "Fire Flow" button to following:

ForAll(
       Gallery1.AllItems,
       'FlowName'.Run(Column1, Column2, )  // reference column value from the Gallery1 directly as arguments within the 'xxx'.Run(...) function
)

Note: Do not use Gallery1.Selected.ColumnName formula as argument within the 'xxxx'.Run(...) function, please reference the column value (Column1, Column2, ...) directly from Gallery1.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (3,282)