web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Saving email attachmen...
Power Automate
Unanswered

Saving email attachments with same names to OneDrive

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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.

 

creating unique filenames

 

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!!

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    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

     

  • irinag Profile Picture
    Microsoft Employee on at

    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.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    What would be an effective way to create unique names and save these files onto the drive? 

  • DYONS Profile Picture
    2 on at

    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. »

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Do you mean like this?

     

     

    The resulting filename shows as "take(Guid(),3)_"filename""  there are no random digits being created.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 474

#2
11manish Profile Picture

11manish 268

#3
David_MA Profile Picture

David_MA 243 Super User 2026 Season 1

Last 30 days Overall leaderboard