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 / File unique to each fo...
Power Automate
Unanswered

File unique to each folder created

(0) ShareShare
ReportReport
Posted on by 9

Dear all,

 

The problem that I am facing is after doing multi-step approvals, I want to shift specific files into each unique folder, after grabbing unique IDs from the file. For example, the file is named "001_approvalpaper", and that paper suppose to auto create a folder and populate it in there. 

 

debuggingallday_0-1670912232646.png

It is currently in this folder called "DocForAppr" and now i want to shift the specific approval papers into another folder.

 

Could anybody help me on this? Thank you

 

Categories:
I have the same question (0)
  • Amit_Sharma Profile Picture
    1,569 Super User 2024 Season 1 on at

    Hi @debuggingallday,

    I Have Created Sample for you.

    1. You Can use Trigger When an item or a file is modified. this trigger when modified the value of Approval Status column.

     

    Amit_Sharma_0-1670914772181.png

    2. Compare Approval Status Approve or Not.

    Amit_Sharma_1-1670914929405.png

    3. If Condition is true, then create a new folder which has unique name and move the file there.

     

     

    concat(triggerOutputs()?['body/{Name}'],' - ',guid())

     

     

    Amit_Sharma_2-1670915112337.png

    Amit_Sharma_3-1670915208389.pngAmit_Sharma_4-1670915276975.png

     

    Amit_Sharma_5-1670915418627.png

    Complete Flow

    Amit_Sharma_6-1670915491319.png

     

    -------------------------------------------------------------------------
    If I have answered your question, please mark post as Solved.
    If you like my response, please give it a Thumbs Up.

  • debuggingallday Profile Picture
    9 on at

    Hi @Amit_Sharma ,

     

    I uploaded the files from PowerApps into a Sharepoint document library with folders.

    The trigger does not allow me to search for the folder path

    Do you have another workaround for it?

     

    debuggingallday_0-1670921225457.png

     

  • Amit_Sharma Profile Picture
    1,569 Super User 2024 Season 1 on at

    Hi @debuggingallday,

    You Can create Two Automate flow.

    1. To Upload File in SharePoint Library from PowerApps.

    2. Second Flow That trigger and Move Approved File in specific Folder when File status set Approved after doing multi-step approvals in your First Automate Flow as Your requirements.

  • debuggingallday Profile Picture
    9 on at

    Hi @Amit_Sharma ,

     

    I started the second power automate flow with "When an item is created" when the first power automate flow is done (Uploads file in Sharepoint Library Document Folder).

    debuggingallday_0-1670925339554.png

     

    My identifier for Moving file flow under "File to move" is using identifier from "Creating new folder.

    debuggingallday_1-1670925418804.png

    Will this be correct? Thank you

  • Amit_Sharma Profile Picture
    1,569 Super User 2024 Season 1 on at

    Hi @debuggingallday

    1. Please Use When a file is created (properties only) Trigger Action Instead of When an item is created Action.

    Amit_Sharma_0-1670926474659.png

    2. In Move File Action pass Identifiers in File to Move Field that return by When a file is created (properties only).

    Amit_Sharma_1-1670926703407.png

     

    3. in destination Field of When a file is created (properties only) Action Pass Manually Dynamic Path.

    /GITApprDoc/name (dynamic value that return by create new folder action)

    Amit_Sharma_2-1670926892882.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