I have a workflow that converts a .docx document to a pdf in the same library. Now I want to attach the PDF to an email. I am using the send notification. The problem is that the attachment is the word file not the PDF file.
How can I attach the just created pdf as an email attachment
Solved! Go to Solution.
You will need to reference the url of the pdf file. What I do in this scenario is the following.
I create a variable with my base url which contains site, library and document name but leaves the file extension
The word action saves its output to
The pdf action takes that output myvariable+".docx" and it's output is myvariable+".pdf"
In send notification you attach myvariable+".pdf" which will make your notification contain the pdf attachment.
Hope this helps.
Thank you for the information. I, too, was looking to attach a document library's document to a notification and just did not see the "+ Add Attachment" next to the Attachments on the notification configuration.
Once I used that and in my case, the context item URL along with the checkmark for 'Attach file from workflow', all worked out just fine and we met the business need, so this was very helpful.