cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
gazzo1967
Impactful Individual
Impactful Individual

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
Solution Sage
Solution Sage

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
Impactful Individual
Impactful Individual

@v-zhos-msft 

Thanks for the reply 🙂

Would i not then need to delete the word copy?

Thanks Gary 

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
Impactful Individual
Impactful Individual

@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

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
Impactful Individual
Impactful Individual

@v-zhos-msft 

 

Here it isCapture.JPGCapture1.JPG

 

This is my Test

 

Capture.JPG

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
Impactful Individual
Impactful Individual

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

 

Capture.JPG

gazzo1967
Impactful Individual
Impactful Individual

@v-zhos-msft 

 

Yes..

i just rebuilt to check 

It is as your explanation 😞

gazzo1967
Impactful Individual
Impactful Individual

@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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

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.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Users online (2,566)