Hello,
I am having trouble saving pdf attachments from a shared email mailbox to sharepoint.
I want to save them under the subjects name.
It runs and creates a file under in the sharepoint folder but its not the attachment, its a 1 KB file that i am unable to open.
Is it not possible to change the attcments name or am i doing something wrong here?
Solved! Go to Solution.
Hi @BjarkiThor,
In general, if you want to save the files contained in the attachment to the SP Library, the configuration in File Name and File Content should be Attachments Name and Attachment Content, as below:
If you directly populate the Subject directly in the File Name, the file will be missing type; it is also inappropriate to fill the Current item in the File content, because the Current item does not only contain File content.
If you want to use Subject as the file name, you need to add ".pdf" as the file type.
However, if there are multiple pdf files in the attachment, the file name seems to be repeated, which may overwrite the previously created file.
It is recommended to add a variable to prevent the file name from being duplicated.
Please take a try.
Best Regards,
Hi @BjarkiThor
The last time I did this I used:
So I'd advise usinmg "Get Item" after your trigger.
If you find my posts helpful, please mark with thumbs up
If this solves your issue, please click "Accept as Solution"
Any questions, just ask.
Thanks, Alan
Proud to be a Flownaut!
Hi @BjarkiThor,
In general, if you want to save the files contained in the attachment to the SP Library, the configuration in File Name and File Content should be Attachments Name and Attachment Content, as below:
If you directly populate the Subject directly in the File Name, the file will be missing type; it is also inappropriate to fill the Current item in the File content, because the Current item does not only contain File content.
If you want to use Subject as the file name, you need to add ".pdf" as the file type.
However, if there are multiple pdf files in the attachment, the file name seems to be repeated, which may overwrite the previously created file.
It is recommended to add a variable to prevent the file name from being duplicated.
Please take a try.
Best Regards,
Thank you, the .pdf did the trick and changed the file content from current item to Attachments content.
- Bjarki
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!
User | Count |
---|---|
41 | |
40 | |
37 | |
32 | |
31 |
User | Count |
---|---|
52 | |
39 | |
35 | |
33 | |
24 |