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