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

print PDF Collection with attachments for each item

Hello, I made an application to make commercial and technical offers with filters on a gallery and collect the results on a collection: my question how can I print the final offer in pdf with the sheets technique of each product on the collection and send to the customer at the same time. thank you in advance.

1 ACCEPTED SOLUTION

Accepted Solutions
v-bofeng-msft
Community Support
Community Support

Hi @bounouas ,

 

I've made a test for your reference:

1\I assume there is a collection

learCollect(ACollection,{Column1:"A",Column2:"B",Column3:"C"},{Column1:"A",Column2:"B",Column3:"C"},{Column1:"A",Column2:"B",Column3:"C"},{Column1:"A",Column2:"B",Column3:"C"})

2\Add a flow into the app

vbofengmsft_0-1656308277923.png

vbofengmsft_1-1656308285088.png

vbofengmsft_2-1656308293878.pngvbofengmsft_3-1656308303294.png

vbofengmsft_4-1656308313640.png

3\Modify the flow

vbofengmsft_5-1656308329633.png

 

vbofengmsft_6-1656308336375.png

4\Add a button and set it's OnSelect Property to:

'PowerAppV2->Createfile,CreateHTMLtable,Convertfile,Delay,Send...'.Run(JSON(ACollection))

5\Click the button and get the result:

vbofengmsft_7-1656308428497.png

vbofengmsft_8-1656308433000.png

 

Best Regards,

Bof

 

 

 

View solution in original post

2 REPLIES 2
v-bofeng-msft
Community Support
Community Support

Hi @bounouas ,

 

I've made a test for your reference:

1\I assume there is a collection

learCollect(ACollection,{Column1:"A",Column2:"B",Column3:"C"},{Column1:"A",Column2:"B",Column3:"C"},{Column1:"A",Column2:"B",Column3:"C"},{Column1:"A",Column2:"B",Column3:"C"})

2\Add a flow into the app

vbofengmsft_0-1656308277923.png

vbofengmsft_1-1656308285088.png

vbofengmsft_2-1656308293878.pngvbofengmsft_3-1656308303294.png

vbofengmsft_4-1656308313640.png

3\Modify the flow

vbofengmsft_5-1656308329633.png

 

vbofengmsft_6-1656308336375.png

4\Add a button and set it's OnSelect Property to:

'PowerAppV2->Createfile,CreateHTMLtable,Convertfile,Delay,Send...'.Run(JSON(ACollection))

5\Click the button and get the result:

vbofengmsft_7-1656308428497.png

vbofengmsft_8-1656308433000.png

 

Best Regards,

Bof

 

 

 

bounouas
Regular Visitor

thank you for your answer, but this solution to convert the collection to PDF but without the attached file of each item, apparently on a collection we do not collect the attached file. thanks to you.

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

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.

Users online (3,610)