web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Defining a variable in...
Power Automate
Unanswered

Defining a variable in a switch, accessing it later?

(0) ShareShare
ReportReport
Posted on by 48

Hi all,

I'm stuck at what I suspect is a rookie problem. Depending on the response from a Forms survey, I want to define groups of users who will receive a chat message. I can do both things individually, but I don't get them to work together.

Basically, I want to set the values of an array in a switch, then use that array later on. But once I'm out of the switch, I can't seem to access the array variable anymore. What to do...?

 

(In case anyone is wondering: Yes, Microsoft mistranslated "Switch case" as "Capital letters/small letters." That alone took me a while to figure out.)

 

Clipboard05.jpg

Categories:
I have the same question (0)
  • Verified answer
    DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    Hi @PeterO_82 

     

    Try using a compose action after your switch with your array and then with the result from your compose, populate your email.

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
    Cheers,
    Damien

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard