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 :
Power Platform Community / Forums / Power Automate / Problem with Power Aut...
Power Automate
Unanswered

Problem with Power Automate and Sharepoint/Power Apps

(0) ShareShare
ReportReport
Posted on by

Hello everyone,

 

im completly new to the Power Platform Tools and facing a problem in my first project.

 

I want to create a Power App which copy and paste a file from one sharepoint document library to another. The file(s) should be choosen inside the Power App through a catalog which displays the documents from a sharepoint library using a filter function.

 

 

Filter(Dokumente;'Folder path' = "Freigegebene Dokumente/PPT Dokumente/")

 

 

Inside this catalog there are checkboxes for selecting the files to be copied. 

 

dominik_stefan_0-1634417406952.png

 

For copying the selected files i created a flow in Power Automate: 

 

Screenshot.png

For selecting the file to copy and the target folder i used: "Ask in Power Apps"

 

Then i inserted the flow in my Power App an linked it to a button. To run the flow it now asks for the two parameters (Which file i want to copy/The target Folder). Now i dont know how to set this two parameters in Power Apps.

 

dominik_stefan_1-1634418506567.png

 

The first one should be set through the checkboxes in the catalog and the last one through a dropdown which shows the folders in the sharepoint library.

 

It would be very nice if someone knows how to do that or can give me some advice for getting this done!

 

Thank you in advance!

 

Dominik

Categories:
I have the same question (0)
  • Verified answer
    v-jefferni Profile Picture
    on at
    Re: Problem with Power Automate and Sharepoint/Power Apps

    Hi @dominik_stefan ,

     

    Please follow below steps:

    1\ In Power Apps, Checkbox OnCheck and OnUncheck need to move current row's file identifier in/out of a collection to use in the Flow:

    vjefferni_0-1634623709984.png

    Items of designated folder selecting combo box:

    Filter(Documents, IsFolder).'Full Path'

    OnCheck of the check box:

    Collect(files, ThisItem.Identifier)

    OnUncheck of the check box:

    RemoveIf(files, Value = ThisItem.Identifier)

    OnSelect of flow trigger button:

    Flow.Run(JSON(files.Value,JSONFormat.IgnoreBinaryData),ComboBox1.Selected.'Full Path')

     

    2\ in Power Automate:

    vjefferni_1-1634615543440.png

    JSON schema:

    {
     "Type": "array",
     "items": {
     "type": "object",
     "properties": {
     "Value": {
     "type": "string"
     }
     }
     }
    }

    Value expression of File to Copy:

    items('Apply_to_each')?['Value']

     

    Hope this helps.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

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
Tomac Profile Picture

Tomac 497 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 477 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 242

Last 30 days Overall leaderboard