cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
gazzo1967
Level 8

Sharepoint list new row to pdf and saved to sharepoint library then emailled as attachement

Hi 

Is there away to convert and save new sharepoint list rows into pdf then email as atttachment?

 

I have seen video and blogs that  utilise onedrive for business but i would like to use sharepoint doc library instead.

 

I have already used the in app coding in powerapps to send a html email and it works fine but would now like to send as pdf attachements instead.

 

Thanks Gary

10 REPLIES 10
v-zhos-msft
Level 10

Re: Sharepoint list new row to pdf and saved to sharepoint library then emailled as attachement

Hi @gazzo1967 ,

It seems you want to create a word file from the Sharepoint list, then converts the word file to pdf.

 I have made a test on my side, please take a try with the following workaround:

Capture1.PNGCapture2.PNG

Best Regards,

Community Support Team _ Zhongys

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

gazzo1967
Level 8

Re: Sharepoint list new row to pdf and saved to sharepoint library then emailled as attachement

@v-zhos-msft 

Thanks for the reply Smiley Happy

Would i not then need to delete the word copy?

Thanks Gary 

v-zhos-msft
Level 10

Re: Sharepoint list new row to pdf and saved to sharepoint library then emailled as attachement

Hi @gazzo1967 ,

Yes, you don't need to delete the word file.

There is no action about create a PDF file,  so you need to create a word file, then convert the word file to PDF.

Best Regards,

Community Support Team _ Zhongys

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

gazzo1967
Level 8

Re: Sharepoint list new row to pdf and saved to sharepoint library then emailled as attachement

@v-zhos-msft 

 

Hi i have replicated what you have done on here and it fails at the first create file (onedriveforbusiness)

Says its a bad request

 

Gary

v-zhos-msft
Level 10

Re: Sharepoint list new row to pdf and saved to sharepoint library then emailled as attachement

Hi @gazzo1967 ,

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

It can work well on my side.

Capture6.PNG

Best Regards,

Community Support Team _ Zhongys

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

gazzo1967
Level 8

Re: Sharepoint list new row to pdf and saved to sharepoint library then emailled as attachement

@v-zhos-msft 

 

Here it isCapture.JPGCapture1.JPG

 

This is my Test

 

Capture.JPG

v-zhos-msft
Level 10

Re: Sharepoint list new row to pdf and saved to sharepoint library then emailled as attachement

Hi @gazzo1967 ,

Did you use the 'OneDrive for Business' connector?

Capture.PNG

Best Regards,

Community Support Team _ Zhongys

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

gazzo1967
Level 8

Re: Sharepoint list new row to pdf and saved to sharepoint library then emailled as attachement

This is the fault detail but all fields are in the sharepoint list

 

Capture.JPG

gazzo1967
Level 8

Re: Sharepoint list new row to pdf and saved to sharepoint library then emailled as attachement

@v-zhos-msft 

 

Yes..

i just rebuilt to check 

It is as your explanation Smiley Sad

gazzo1967
Level 8

Re: Sharepoint list new row to pdf and saved to sharepoint library then emailled as attachement

@v-zhos-msft 

it seems to be the output.

Input message

{"host":{"apiId":"subscriptions/427976e2-4271-4308-afb8-d28d53a6ad06/providers/Microsoft.Web/locations/westeurope/runtimes/europe-001/apis/onedriveforbusiness","connectionReferenceName":"shared_onedriveforbusiness","operationId":"CreateFile"},"parameters":{"folderPath":"/","name":"0000.doc","body":"Passed"}}

Output Message 

{"statusCode":400,"headers":{"Pragma":"no-cache","Transfer-Encoding":"chunked","x-ms-request-id":"e2e930ed-5dcb-4162-b169-c0b9d4788593","Timing-Allow-Origin":"*","x-ms-apihub-cached-response":"true","Cache-Control":"no-cache","Date":"Mon, 24 Jun 2019 07:50:38 GMT","X-AspNet-Version":"4.0.30319","X-Powered-By":"ASP.NET","Content-Type":"application/json","Expires":"-1","Content-Length":"125"},"body":{"status":400,"message":"One of the provided arguments is not acceptable.","source":"api.connectorp.svc.ms"}}

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 380 members 4,721 guests
Please welcome our newest community members: