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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Not able to set a vari...
Power Automate
Answered

Not able to set a varible name to 'Set variable'

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

As you can see in the screen shot text box to type a variable name is greyed out. So I cant type anything? Is this is an issue with everyone? I have tried all the browsers.

 

Screen Shot 2020-02-28 at 9.39.38 AM.png

Categories:
I have the same question (0)
  • RobElliott Profile Picture
    10,426 Super User 2026 Season 1 on at

    @Anonymous you need to initialize a string or array variable first, then you can select it in the Set variable and set the value. So at the top of your flow, perhaps as the first action after the trigger, add an Initialize variable.

    Rob
    Los Gallardos
    If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.

  • Verified answer
    v-bacao-msft Profile Picture
    Microsoft Employee on at

     

    Hi @Anonymous ,

     

    Follow @RobElliott 's suggestion, please add Initialize variable action first, then you could configure Set variable action to set the value of the corresponding variable.

    Image reference:

    53.PNG

    Please take a try and feel free to let us know if you have any other questions.

     

    Best Regards,

  • Shlomit Profile Picture
    11 on at

    Hi @RobElliott, I added the Initialize variable action and then Set variable action, but still the name field is greyed-out.  Please help. Thank you.Set Variable - Unable to type in name field.jpg

     

  • RobElliott Profile Picture
    10,426 Super User 2026 Season 1 on at

    @Shlomit it looks like you are tring to initialize the variable inside an apply to each control. You can't do that, you have to have the initialize variable outside an apply to each. I always add them immediately after the trigger.

     

    Rob
    Los Gallardos
    If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard