Hi,
I'd like to build a flow that automatically converts (new) word documents from an SharePoint library to PDF and copies them to another SharePoint environment.
Started with the 'When a file is created in folder', but when i want to pick the next step to convert the file i get a lot of options, including some 3rd party solutions. Also i see 'Converting Word Document to PDF', but this is a trial version?
You notice i'm rather new and unexperienced flow user, and not sure if this the right way to start, but perhaps someone can help my by giving some suggestions.
Thanks in advance, henk.
Solved! Go to Solution.
Hi @henkprins ,
I guess you may not use When a file is created(properties only) as a trigger, so Identifier is not found.
I have tested it on my side. If it is a Flow configured according to the screenshot I provided, the file can be successfully converted to PDF.
In addition, the ErrorCode shows that the Word file does not seem to have content. Please make sure that the converted file is not a blank file.
It seems that the id configuration is incorrect, so there is no way to get the correct File content.
Please refer to the screenshot I provided and try again and feel free let me know if issue still exist.
Best Regards,
Hi @henkprins ,
The common method is to convert the file through Convert file action contained in OneDrive/OneDrive for Business, and then use Create file action to copy the file.
I have tested on my side, you could refer to the screenshot below to configure Flow, it is recommended to use When a file is created (properties only) as trigger, as below:
Finally, you could configure Delete file action to delete the files previously generated for the converted file.
Please take a try.
Best Regards,
Hi Barry,
thnx for your reply!
I tested this. Not sure: but i cannot find 'Identifier' mentioned in the second step, i used 'Id' instead.
I now get a 406 error when converting the file:
Error from Office Service. Url=https://euc.wordca.officeapps.live.com:973/wordca/wordconversionservice.svc/rest/ConvertFileUrl HttpCode=OK cert=subject:E=onedrivese@microsoft.com, CN=WordThumbnail-OneDrive, OU=Office Service Infrastructure, O=Microsoft Corporation, L=Redmond, S=Washington, C=US;thumbprint:7BEEDD2DA8FE0F90A72FEBB9C4BDF497E8D8FBDF ResponseHeaders=ResponseCode: Failure
ErrorCode: WordInputFileNullorEmpty
IsExpectedFailure: True
ErrorCategory: BadRequest
ServiceID: 9d1d0f54-bd14-458d-a51b-73edca59681e
OutputFormat:
ServiceRegion: NorthEurope
Date: Wed, 27 Feb 2019 09:45:59 GMT
Server: Microsoft-IIS/8.5
X-Powered-By: ASP.NET
Hi @henkprins ,
I guess you may not use When a file is created(properties only) as a trigger, so Identifier is not found.
I have tested it on my side. If it is a Flow configured according to the screenshot I provided, the file can be successfully converted to PDF.
In addition, the ErrorCode shows that the Word file does not seem to have content. Please make sure that the converted file is not a blank file.
It seems that the id configuration is incorrect, so there is no way to get the correct File content.
Please refer to the screenshot I provided and try again and feel free let me know if issue still exist.
Best Regards,
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!
User | Count |
---|---|
45 | |
44 | |
37 | |
33 | |
27 |
User | Count |
---|---|
47 | |
37 | |
32 | |
31 | |
30 |