cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
momureithi
Helper II
Helper II

Power Automate · Generate Outcome PDF

Hello,

 

Is it possible to generate a PDF with the approval outcome(s), for it to be attached to an email notification?

 

If yes, please guide me on how to go about it.

 

Thanks.

7 REPLIES 7
manuelstgomes
Community Champion
Community Champion

Hi @momureithi 

 

Yes, and another member of the community provided the answer to us:

https://powerusers.microsoft.com/t5/Building-Flows/Generating-pdf-with-all-fields-capture/m-p/594999

 

Can you please check if and let me know if you have any questions?

 

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

Cheers
Manuel

Thanks a lot, @manuelstgomes.

However, could you please guide me on how we're coming up with the File Name. It's a bit unclear to me. Thanks!

momureithi_0-1597663122977.png

HI @momureithi 

 

That's just a temporary file that is used to generate the PDF.

You save it, create the PDF based on that HTML and then delete it, so you can call it anything. 

 

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

Cheers
Manuel

Thanks, @manuelstgomes. Made a bit of progress.

1) The attachment bears the name "test". If I'd like to have the attachment bear the actual file name, how do I go about that?

momureithi_2-1597730567056.png

2) What exactly should be captured at this step?:

momureithi_3-1597732239598.png

Hi @momureithi 

 

To answer your questions:

1. The name is defined in the "create file." You can call it anything and add an extra step after sending the email that is to delete that temporary file. 

2. That's where you define the "columns" that you're sending. You're already doing it bellow where you map the columns the entities.

 

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

Cheers
Manuel

Hi @manuelstgomes

I was able to sort out the file name challenge. Many thanks!

However, based on this, the output fetches and displays all the information on my SharePoint list, whereas I just need it to capture information pertaining to a specific request. Is this caused by using the Get items action?

I have tried using the Get item action, but I am unable to move past the Create HTML table section since I have no "value" from the previous steps to input in the From field.

Please help.

momureithi_0-1597758053516.png

Hi @momureithi 

 

Indeed the "Get Items" is used to generate a table of multiple items. The "Get Item" you'll get a single value and, therefore, doesn't make much sense to create a table with one value..

 

For one value you can create an email with all values in it and send it since it's just one value.

 

Makes sense? If not I'm sorry if I'm not understanding correctly.

 

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

Cheers
Manuel

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

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.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,029)