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 / to store attachments w...
Power Automate
Unanswered

to store attachments when email arrives based on the specific folder

(1) ShareShare
ReportReport
Posted on by 2,249

Kindly help how to specify in the flow to store attachment when email arrives to the specific document library

 

example

in my email attachment name is 2024_US_1234.xls then it should store in the already available folder in document library 2024/US sub folder 

Categories:
I have the same question (0)
  • Veblitz Profile Picture
    2,249 on at

    THanks 

     

    I am able to create attachment in the document library but its not picking up the sub folder 

     

    Veblitz_0-1719806935604.png

    Veblitz_1-1719806959508.png

    testatts.txt is stored in the document library but not stored in specific folder structure as per below

    2022/1/USA subfolders

    Veblitz_2-1719807040372.png

     

     

  • Veblitz Profile Picture
    2,249 on at

    Yes good idea.

     

    But issue is we have several subfolders and for example

     

    Veblitz_0-1719807935839.png

    This for 2022 folder and refer the subfolder levels

    Veblitz_1-1719807967182.png

    This is for 2023 folder and refer the subfolder levels:

    Veblitz_2-1719808061940.png

    Note: Folders and subfolders in the document library were dynamic in nature so im not sure how to pick the subfolders based on email attachments criteria inside the flow

     

    Kindly let me know if you have any queries so that we can check with the requirement 

     

  • Veblitz Profile Picture
    2,249 on at

    Thanks  a lot for your great help.

    Just please consider the below things and clarify

    1)In filter array 2 ,attachments name or attachment name you have given since for me its creating another apply to each as below

     

    Veblitz_0-1719812245751.png

     

  • Veblitz Profile Picture
    2,249 on at

    Thanks 

     

    Im unable to find the content in filter array under Apply_to_each3 step

    Veblitz_0-1719816347672.png

     

    Veblitz_3-1719816526432.png

    Veblitz_2-1719816487168.png

     

     

     

     

     

     

  • Veblitz Profile Picture
    2,249 on at

    Many Thanks. Great inputs.

    Unfotunately,My file is getting copied outside folder

    Veblitz_0-1719818694488.png

    Veblitz_2-1719818909894.png

     

    so actually if we look deep dive in document library for the folder inside 2024 folder level is as per below structure

    Veblitz_1-1719818785879.png

    Kindly suggest

     

     

     

  • Veblitz Profile Picture
    2,249 on at

    Yes i corrected changes as per you kind help.

     

    No luck though

     

    Please see the flow

     

    Veblitz_0-1719819750620.png

     

    Veblitz_1-1719819817729.png

    Veblitz_2-1719819849629.png

    Veblitz_3-1719819892021.png

    Veblitz_6-1719820249844.png

     

     

    Veblitz_4-1719819963092.png

    Veblitz_5-1719820034672.png

     

     

     

     

     

  • Veblitz Profile Picture
    2,249 on at

    Thanks .no luck

     

    Veblitz_0-1719821035782.png

    im not sure if the subfolder is more levels

    Veblitz_1-1719821164078.png

     

     

  • Veblitz Profile Picture
    2,249 on at

    yup i corrected

     

     

  • Veblitz Profile Picture
    2,249 on at

    Many Many Many Many Thanks for correcting my errors and i learnt several things with your continuous kind help .I greatly appreciate your finest teachings and its awesome.

     

     

  • Veblitz Profile Picture
    2,249 on at

    Last but not least file is copying only 2 levels

     

    Veblitz_0-1719823160166.png

    Do we need to alter our query if its should be stored into below folders thats 2024/1/USA/FL/Microsoft/New subfolder levels

     

    Veblitz_1-1719823209692.png

     

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

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 284 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 188 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 144 Super User 2026 Season 2

Last 30 days Overall leaderboard