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 Apps / Help with setting a va...
Power Apps
Unanswered

Help with setting a variable to Power Automate output and using variable within a Textbox or a Label.

(0) ShareShare
ReportReport
Posted on by 104

Hi All,

I am having an issue with using a Power Automate flow with a Power App. I have placed the following code with the onSelect of Gallery1


Set(varText,GetEmployeeInfo.Run(Office365Users.UserProfileV2(Gallery1.Selected.Id).mail));


When I run the Power App the Power Automate flow runs OK and the output is correct within the Power Automate flow. In this example, the correct output is 999

 

PowerStar321_0-1709202361890.png

The issue is with using the variable varText within the Textbox or Label. I think it is because it sees it as a Record instead of text, but I am not sure.

PowerStar321_1-1709202361899.png

 

Do you know what I am doing wrong? I am new to Power Apps so it might be something very simple. Also, is there a way I can see the variable details like using a Breakpoint?

Thanks
Colin

Categories:
I have the same question (0)
  • renatopc84_ch Profile Picture
    228 on at

    Hi @PowerStar321 

    What did you configured in the “Respond to a Power App or Flow” action? Is the variable configured?

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard