Forum Discussion
OldWarwick
Apr 05, 2022Bronze Contributor
PnP Modern Search - Use Users Department in Query
The idea is to create a view of a list via search which will only shows results where Department column in list = current user's Department. Is something this possible?? Was thinking somethin...
- Apr 06, 2022Looks like the above tokens do work in PnP Modern Search - I just need modify it a bit, using the debug view allowed me to nail it down
https://microsoft-search.github.io/pnp-modern-search/usage/search-results/tokens/
{searchbox} Department="{User.Department}"
the above works now with the " " in place
OldWarwick
Apr 06, 2022Bronze Contributor
Looks like the above tokens do work in PnP Modern Search - I just need modify it a bit, using the debug view allowed me to nail it down
https://microsoft-search.github.io/pnp-modern-search/usage/search-results/tokens/
{searchbox} Department="{User.Department}"
the above works now with the " " in place
https://microsoft-search.github.io/pnp-modern-search/usage/search-results/tokens/
{searchbox} Department="{User.Department}"
the above works now with the " " in place