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 Apps / Powerapps and Sharepoi...
Power Apps
Answered

Powerapps and Sharepoint library : odd behavior - new files not appearing

(0) ShareShare
ReportReport
Posted on by 69

Hi. I created an powerapps application to search a sharepoint library

Application search keyword in specifics fields of the library and the name of the file or folder

It works fine with a caveat : new files added to the library are not found by the apps but new folders are OK

Modifying name of a folder is also automaticaly spoted by the apps

 

I tried to force refresh of the data source but with no results

I runed a few tests

- new folder and existing folders renamed : appear on research

- new file uploaded via teams or sharepoint: doesn't appear

- new file uploaded and renamed via teams or sharepoint: doesn't appear

- new file created in teams or sharepoint: doesn't apperar

- existing file downloaded, deleted from shpt and uploaded anew in the library : doesn't appear

- existing file renamed : appear on search

 

This case of "transparent" file doesn't plague Shpt wich can find the files by their filename OK

 

Problem doesn't seems to be with the code filtering the file/folder in the Gallery  since common keyword with existing and new files used in quey shows a list of existing files matching but not the new ones wich should also match the query (see code under)

 

Sort(
Filter(
Filter(
[@Documents]
;(
"Documents partages" in 'Chemin d’accès au dossier')&&
( CountIf(Split(TextSearchBox1;";");Value in KeyWord)>0
||
CountIf(Split(TextSearchBox1;";");Value in 'Nom de fichier avec l’extension' )>0 )

)
; ( IsBlank(LNature.SelectedItems.Value) || IsEmpty(LNature.SelectedItems) || true in ForAll(LNature.SelectedItems.Value;ThisRecord in Nature.Value))
)
;If(IsBlank(TextSearchBox1);0;(
CountIf(Split(TextSearchBox1;";");Value in KeyWord)+2*CountIf(Split(TextSearchBox1;";");Value in 'Nom de fichier avec l’extension'))
)
;SortOrder.Descending)

 

Size of the library doesn't seems also to be a problem (under 600 files and folders)

 

Any idea  what is causing this odd behavior and how to force PowerApps to use the full content of the Shrpt Data source ?

 

Regards 

 

Categories:
I have the same question (0)
  • Flejoyeux Profile Picture
    69 on at

    complement : tried to access the list of the library via Powerbi

    screenshot below show folder "_Test" spoted by the app but not the two following files created on 2023-07-14

    Flejoyeux_0-1689322395405.png

    The information seems to be in the data relative to the name of the file and should be accessible by the app but is oddly not processed

     

  • Verified answer
    Flejoyeux Profile Picture
    69 on at

    So Simple (Shame on me - rookie question)  : the parameter of the app was set to a max of 500 records. Extending to the max of 2000 records solved the issue

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard