I've build a flow in which the SWITCH evaluates the value of a Sharepoint list. When the result matches one of the SWITCH cases several actions should be performed. The issue is that these actions have dynamic content generated before the SWITCH and for some unknown reason when running a test this content, e.g. a variable, is empty.
I attach screenshots of the flow logic and of the result.
Could you display the output of the "Initialize" and "Set" variables? I imagine you set there the value of the tenant Id (probably you can avoid the "set variable" action, and initialize it with the tenant id value).
After I checked what you told me I saw the variable was left empty. So I moved the "initialize variable" action before other action blocks, and now it works.
Now I face a different problem:
The error text says:
"shouldSetSpoSiteReadOnlyForMembers is not supported in app-only context."
Can you throw some light on this? I've checked the app has all requiered permissions.
Which authentication method are you using when calling the http post action? Please, have a look at this excellent post by Laura Kokkarinen on how to call graph with delegated permissions: https://laurakokkarinen.com/calling-microsoft-graph-from-microsoft-flow-and-other-daemon-apps-with-d...
Hope it helps!
So many events happening this month - don't miss out!
Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.