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 / condition related issu...
Power Automate
Unanswered

condition related issue for country/region specific

(1) ShareShare
ReportReport
Posted on by 2,249

My flow performs below things but im unable to check if the attachments that we receive in email should be stored based on country ,region

document library structure: 

year/month/country/customer/type

Veblitz_0-1720025672664.png

FLow steps:below flow is working but then its not getting copied into the appropriate path as mentioned above year/month/country/customer/type (dynamically)

 

Veblitz_1-1720025937210.png

Veblitz_2-1720025979004.png

 

above flow output works in the below way and it is only copying outside the predefined structure and im not aware how to place the files in respective path (i.e. predefined document library path) in the same flow which i pasted above.

 

Veblitz_3-1720026182530.png

 

Appreciate kind help. Thanks in advance

 

 

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

    There is no fail, below flow works as per below configuration and i have shared the detailed steps by steps and further i need to include conditions that would copy files and attachments and metadata properties into specific sub folders level example : year/month/country/customer/type (dynamically) 

     

    Veblitz_0-1720065344739.png

    condition : length(outputs('Get_items')?['body/value'])

    Veblitz_1-1720065381640.png

     

    Veblitz_3-1720065523962.png

     

    Yes branch steps

    Veblitz_4-1720065610208.png

     

    Veblitz_5-1720065693352.png

    Veblitz_6-1720065779386.png

    Veblitz_7-1720065829129.png

    No branch

     

    Veblitz_8-1720065913068.png

     

     

     

     

     

     

     

  • Veblitz Profile Picture
    2,249 on at

    we need to perform the below steps in the above flow but not sure if this is works logically in my existing above flow. Appreciate help

     

    Note:This is another flow where we have steps that picks attachments when new email arrives and drop into specific sub folder  but not sure how  to add to my existing first flow1

     

    Flow2

     

    1.To add List folder action 

    2.To add Filter array1

       i)Isfolder isequal true

    3.Apply each filter array condition

    i)substring(item()?['name'], 0, nthIndexOf(item()?['name'], '_', 1)) is equal to Name(choose from filter array1)
    ii)condition branching 
    length(body('Filter_array_2')) is greater than 0

    Veblitz_1-1720074931426.png

    Veblitz_2-1720075079252.png

     

    Yes branch

     

    Veblitz_0-1720074880248.png
    substring(item()?['name'], add(nthIndexOf(item()?['name'], '_', 1), 1), sub(nthIndexOf(item()?['name'], '_', 2), add(nthIndexOf(item()?['name'], '_', 1), 1)))
    Veblitz_3-1720075125941.png
     
    Veblitz_4-1720075227945.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

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard