Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Dynamic content is empty when used inside a SWITCH CASE

(0) ShareShare
ReportReport
Posted on by

Hi,

 

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.

 

sngbcn_0-1599722296637.png

result:

sngbcn_1-1599722390016.png

Any ideas?

  • fchopo Profile Picture
    7,968 Super User 2025 Season 1 on at
    Re: Dynamic content is empty when used inside a SWITCH CASE

    Hello @Anonymous 

    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-delegated-permissions/

     

    Hope it helps!

    Ferran

  • Community Power Platform Member Profile Picture
    on at
    Re: Dynamic content is empty when used inside a SWITCH CASE

    Hi @fchopo 

    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.

    sngbcn_0-1599745083141.png

     

    Now I face a different problem:

     

    sngbcn_1-1599745232263.png

     

    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.

     

    Thanks

     

  • fchopo Profile Picture
    7,968 Super User 2025 Season 1 on at
    Re: Dynamic content is empty when used inside a SWITCH CASE

    Hello @Anonymous 

    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).

    Regards,

    Ferran

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,660 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow