
I have a flow which is triggered when a new email is received.
If an email has a PDF as an attachment, I want to put the attachment in a Docusign envelope and send it on for signing.
I'm having issues with adding the PDF to an envelope. At first I was getting base64 conversion errors, then I found a post which said to use base64() and enter the file content, like this: base64(body('Get_Attachment_(V2)')?['contentBytes']).
This appeared to work, or at least it moved me on to a different error.
What I've now realised though is that there is still an issue with adding a PDF but it isn't throwing an error at that point. It's only when I get to the 'Send Envelope' step in my flow that I see an error because my envelope is incomplete. Much searching back through the steps led me to the fact that the 'Add documents to an envelope' step is throwing a "PDF validation failed" error but not notifying me.
What is the "best" way to add a PDF to an envelope?
I'm adding PDF which come in to the company from suppliers, they therefore differ in format and content. I've tried adding tabs using offsets as I don't have a consistent text or similar anchor to align them to. I can't get to the point of checking the tabs work as I don't seem to be able to import a file to add them to.
Any help or advice would be very much appreciated.