I have a gallery (Gallery1) that is connected to my Customers list. I select that and want the next Gallery (Gallery3) to display all of the documents in the Documents_1 list by the customer selected. I have on Gallery 3 this code
SortByColumns(
Filter(
Documents_1,
'Folder path' = varFolderPathCurrent
),
"{IsFolder}",
Descending,
"{Name}",
Ascending
)
Which works well if it is a direct connection to the documents library. The issue is that the contents of the documents library will change based on the customer selected.
I tried to add this code as the second condition to the filter but it is not working.
CompanyName=Text(Gallery1.Selected.'{Name}')
What do I need to do to get this working?