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

Community site session details

Session Id : EwXolm9W/ugFMIp4PS+R+4
Power Automate - Building Flows
Unanswered

File unique to each folder created

Like (0) ShareShare
ReportReport
Posted on 13 Dec 2022 06:18:39 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

 

I have the same question (0)
  • Amit_Sharma Profile Picture
    1,569 Super User 2024 Season 1 on 13 Dec 2022 at 07:08:19
    Re: File unique to each folder created

    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 13 Dec 2022 at 08:48:17
    Re: File unique to each folder created

    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 13 Dec 2022 at 09:01:24
    Re: File unique to each folder created

    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 13 Dec 2022 at 09:57:19
    Re: File unique to each folder created

    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 13 Dec 2022 at 10:21:41
    Re: File unique to each folder created

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 655 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 371 Moderator

#3
chiaraalina Profile Picture

chiaraalina 276

Last 30 days Overall leaderboard
Loading complete