Forum Discussion
Rich Koneval
Mar 28, 2019Brass Contributor
Flow Action - Convert Word Document to PDF
I'm trying to use the Convert Word Document to PDF action in a Flow. There are three parameters that have to be entered: Location - the SharePoint Site Document Library - Library where the documen...
bhumikasaini
Nov 26, 2020Copper Contributor
I tried the suggestions by sips1 (Option 1) and evancoulson (Option 2), and both worked for me.
Adding screenshots to help anyone who stumbles upon this issue in the future.
Option 1 [using 'Name' dynamic content]:
"Location": The SharePoint site
"File": Provide the path from the "Documents" folder (or your Document Library location), until the file.
For example, if the full path is "/Shared Documents/Documents/<FolderA>/<filename.docx>", then put it as:
/FolderA/<"Name" dynamic content>
Option 2 [using 'Path' dynamic content]:
"Location": The SharePoint site
"File": replace(outputs('Save_the_file_in_SharePoint')?['body/Path'], '/Shared Documents', '')
Option 2 is less error-prone so I'd prefer that!
Hope this helps 🙂