I'm getting an input for a list of countries (say) from Forms and I wish to use that list and dynamically grant access to folder with those country names. Is there an automated way of doing it? I'm currently creating a long list of if-else statements and manually entering folder IDs there.
You could either use a list to store the countries and paths and perform a filter or simply create an array in your powerautomate with countries and paths, i.e.
{
"france":"/shared docs/france",
"germany":"/shared docs/germany",
"uk":"/shared docs/great britain",
"USA":"/shared docs/US"
}
You could then retrieve the path by country key.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Cheers,
Damien
P.S. take a look at my new blog here and like & subscribe to my YouTube Channel thanks 😉
Michael E. Gernaey
497
Super User 2025 Season 1
David_MA
436
Super User 2025 Season 1
Riyaz_riz11
244
Super User 2025 Season 1