Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - General Discussion
Unanswered

Saving email attachments with same names to OneDrive

Like (0) ShareShare
ReportReport
Posted on 10 Feb 2017 14:08:02 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:
  • Community Power Platform Member Profile Picture
    on 12 Jan 2018 at 14:34:59
    Re: Saving email attachments with same names to OneDrive

    Do you mean like this?

     

     

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

  • DYONS Profile Picture
    2 on 01 Nov 2017 at 16:01:39
    Re: Saving email attachments with same names to OneDrive

    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 15 Feb 2017 at 12:28:35
    Re: Saving email attachments with same names to OneDrive

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

  • irinag Profile Picture
    on 11 Feb 2017 at 20:42:29
    Re: Saving email attachments with same names to OneDrive

    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.

  • abm abm Profile Picture
    32,464 Most Valuable Professional on 10 Feb 2017 at 17:09:51
    Re: Saving email attachments with same names to OneDrive

    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

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,745 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,091 Most Valuable Professional

Leaderboard