
Announcements
Hello,
I have a button in my app that triggers a flow to generate a PDF file.
Is it possible for the flow to return various statuses to the app to inform the user what the flow is doing?
eg.
1. PDF generation in progress...
2. Merging HTML to PDF
3. PDF conversion completed
4. Link to PDF file
Thanks!
There is a "Respond to PowerApps" action that you may be able to leverage to do this? Personally, I think the build out time of something like this wouldn't have the ROI needed to justify it. If it was me, I'd just use the above action with some in app Timers, eg
1. Start Flow from app, Timer1 starts, duration 1 millisecond. OnTimerEnd check for response from Flow
2. Timer2 also starts and runs for 1-2secs and shows a label with this text "PDF generation in progress..."
3. Timer2 ends --> hides above label
4. Timer3 starts and shows label "Merging HTML to PDF"
5. When Timer1 receives response from Flow it is stopped and so is Timer3
6. Timer3 OnTimerEnd shows this text in a label "PDF conversion completed"
- Link to PDF file can also be displayed at the same time
There are examples across the web of setting up checking Timers like Timer1 that you can utilise. This is how I'd approach this problem ... if at all.
Hope this helps?