I have a flow that adds a new item to a SharePoint list. That works fine.
But i also want to take attachments and save them to the item - just as if the user uploaded attachments manually.
The location for manual uploaded attachments are list/thelist/Attachments/<id/....
the error is (Response, have exchanged names with < >):
it can save the attachement files to existing folders.
It seems the problem is that if the folder doesn't exist, the it can't create it.
eg. my structure is:
/List/myList/Attachments/2 - save files ok
but trying to save to /List/myList/Attachments/5 - fails
I was able to dynamically create folders based upon the subject of the email: New Folder/[Subject]
There does appear to be a problem with files over a certain size. There is another thread about that issue. The original poster had issues when the file size was greater than 90kb.
Here is my config
Here is the thread about file size issues: https://powerusers.microsoft.com/t5/Flow-Forum/Problem-with-attachment-file-size-in-new-mail-that-cr...
I ran into a similar issue. I initially created a SharePoint 2013 workflow that fired on item creation to create an attachment generating the proper "attachments/[ID]" folder and then deleted the attachment. This hacked worked for a little bit but it can easily run into timing issues and can be confusing for end users.
[Method: Post] Webservice call: _api/web/lists/GetByTitle('LISTNAME')/items([%Current Item:ID%])/AttachmentFiles/add(FileName='file.txt')
[Method: Delete] Webservice call: _api/web/lists/GetByTitle('LISTNAME')/items([%Current Item:ID%])/AttachmentFiles/getByFileName('file.txt')
After attempting to add a delay between List Item Creation and Create File attachment, I can no longer get attachments to work.
I've just created my first flow using this template and I have a problem with attachments with the same name : if I already have a file named X.pdf and I received a new email with an attachment named X.pdf, the flow is overwrtiting the first file (I can see it in the versionning of Sharepoint)...
So I would like to add a date/time stamp in the filename but it failed every time when I am adding another field in "file name" than "Name"... Did someone know how to do that ?
In fact, I would like to use this flow in order to receive PDF orders and I don't want to miss one order if it has the same name !