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

Notifications

Announcements

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

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,865 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
    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
    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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard