I'm using the "Saving Attachments from Outlook.com" to drop files into OneDrive. The attachments all have the same filename so "Conversation ID .pdf" is being used to create the filename which works fine until I receive an email with more than 1 file attached.
When an email arrives with more than 1 attachment the first attachment in the email will be created in the folder, the remaining attachments will not be created because they end up with the same name because I'm using "Conversation ID". I've tried using different combinations for the filename however I keep receiving the "nested table in an array..." error.
Any suggestions?
Thank you!!
Do you mean like this?
The resulting filename shows as "take(Guid(),3)_"filename"" there are no random digits being created.
Hello,
Write
take(Guid(),3)_ before the symbol OutlookName
It would write 3 characters before_ and the name of your file wich would be ok
Somehow, you can change the integer, 3, as you wish.
Ps to MS:this page should be enhanced: https://docs.microsoft.com/fr-fr/azure/logic-apps/logic-apps-workflow-definition-language#guid. »
What would be an effective way to create unique names and save these files onto the drive?
We should be careful with appending datetime to the name of the file that targeting onedrive for business or sharepoint. There are limitations in characters that can be used in the file name and ':' used in datetime is one of them. So, if my name looks like this '"name": "Book.xlsx2017-02-11T20:32:12+00:00", one drive for business returns an error { "status": 400, "message": "The request is malformed or incorrect.", "source": "127.0.0.1" }
Lets look for the ways to encode time or other ways to disambiguate.
Hi @Anonymous,
Looks like you need to add current datetime to your filename to solve this? That means every filename will have a unqiue name. Hope it helps. If you need anymore help please let me know.
Thanks
WarrenBelz
146,745
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,091
Most Valuable Professional