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 / Use variables on eleme...
Power Automate
Unanswered

Use variables on element from UI

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

I have a issue when I'm using variables on UI element. There is a capture for my code. I try to get the element with number. When i put the number in hard code with a number like 7. It's work. but when I try with a variable, it's don't work.

Regards,

Valentin Waeber

IssueUiWork.PNG
IssueUI.PNG
VariableTest.PNG
  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @Anonymous 

     

    Try to convert the Test  Variable to number using Convert text to Number action and use its output in the selector. I think selector is expecting 7 as integer while variable you are supplying is of text format , 

     

    Hope that would work !

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    What @Nived_Nambiar is actually not necessary, because variables that you set with a numeric value will always be of type number. 

     

    The reason you are experiencing this issue is because of a known bug in PAD. In order for variables to work in selectors, you need to enable the "Text editor":

    IssueUI.PNG

    -------------------------------------------------------------------------

    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

     

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 317 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 247

#3
Henil Profile Picture

Henil 117

Last 30 days Overall leaderboard