I am trying to convert HTML files to PDF using Power Automate. I want an automated flow to trigger when a HTML file is created in a folder on Sharepoint and then convert that file to PDF and save in another folder in Sharepoint. My flow is as below:
When I test the flow it always fails at the convert file step with the below error, any ideas what is causing the issue?
Hey @Hurricane35
The OneDrive for Business connector is going to look for that document id in the OneDrive for the account selected under "My Connections" when you select the ellipsis on the action. Since the file is in sharepoint, the connector can't see it. However, you can use the SharePoint copy file action to copy the file to a location in the OneDrive for the account you're using since OneDrive is just SharePoint Under the hood.
When you configure the Copy File action, in the destination field, enter the url for the onedrive you want to use. Then use the "Convert file using path" action instead of "Convert File" and use the Name parameter from the copy file action.
The rest of your flow should work as configured.