1. Manual trigger
2. SharePoint – Create folder
3. Excel Online – List rows present in a table
4. Apply to each (looping over Excel rows)
- Word Online Business – Populate a Microsoft Word template
- SharePoint – Create file (.docx temp file, stored in SharePoint Documents library)
- SharePoint – Get file content
- Word Online Business – Convert Word Document to PDF ← FAILS HERE
- SharePoint – Create file (.pdf final)
The "Convert Word Document to PDF" action always fails with either:
- `BadRequest: The provided workflow action input is not valid`
- `NotFound: 404`
- Using `body/Id` from the SharePoint Create file step → 404, the `file` parameter receives a double-encoded URL path like `%252fShared%252bDocuments%252f...` instead of a proper ID
- Using `body/ItemId` → BadRequest
- Adding a Delay step before conversion → still fails
- Using OneDrive for Business – Convert file instead → incompatible IDs when mixing with SharePoint connector
- Using "Create a Microsoft Word document" (in-memory) before conversion → the Convert action doesn't accept binary content in the File field
The "Convert Word Document to PDF" action (Word Online Business, operationId: GetFilePDF) seems to expect a specific file ID format that is incompatible with the IDs returned by the SharePoint connector. The `file` parameter keeps receiving an encoded path instead of a valid Graph/Drive ID.
- SharePoint site: SharePoint Online (Microsoft 365)
- All connectors authenticated with the same user account
- The .docx temp file IS successfully created in SharePoint (Create file step returns green)
How can I correctly pass the SharePoint file ID to the "Convert Word Document to PDF" action so it finds the file? Is there a specific expression or connector combination that works reliably for this scenario?

Report
All responses (
Answers (