Search code examples
sharepointsharepoint-onlinepowerapps

How can I get subFloder's items displayed on PowerApps?


I'd like to have content in sharepoint's sub-folder to be displayed on PowerApps Gallery, I tried "Items = ClearCollect(testDoc,Filter(Documents,'Folder path'="Documents/General/Use Cases and similar activities/A-EMA/"))" But it doesn't work. Nothing displayed but only warnings. here is the pic of what I'd like to show in my gallery. enter image description here

Thank you in advance


Solution

  • First: Connect your Sharepoint Site to PowerApps

    Second: Set up a Variable to avoid Delegation Issues and get aTable

    Set(docs;Dokuments)
    

    Third: Put the following code into items of your Gallery.

    Filter(
    docs;
    IsFolder = false && Path = "Freigegebene Dokumente/Subfolder1/Subfolder2/")
    

    Dependent on your language change 'IsFolder' to 'Istordner' and 'Path' to 'Ordnerpfad'.

    it is working fine with me, but my folder names are all without spaces, so if you still encounter problems, please try to change your folder names