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 / Using Formulas in Comp...
Power Apps
Answered

Using Formulas in Components

(1) ShareShare
ReportReport
Posted on by 4
 
Hi Folks,
 
I am new to power apps and was just trying to use formulas I defined within the components I was creating.
 
But it is not able to identify the name I am defining in the formula section. 
FYI, On the screens it is working fine.
 
Is that a limitation in using Formulas in power apps? Any workaround for this would be truly appreciated.
 
Formula I wrote:
CurrentUser= Office365Users.UserProfileV2(User().Email);
 
Error I am getting in the Text column of a Component's text label.
 
Categories:
I have the same question (0)
  • Verified answer
    mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at
    hey
     
     
    you can not use a formula in a component. Does not work this way. You would need to set Input and Output in Components.
     
     
     
    if this answer was helpful please mark as verified
     
     
    cheers
  • Suggested answer
    Craig.Engbrecht Profile Picture
    18 on at
    Hello, 

    Formulas require allowing access by the component to the app context. 
    You can use formulas after that, for example:
    The highlighted function allows me to add fading to the color and brighten or darken it as needed. 
    It also works as a Dark/Light mode feature where the color is swapped out in another formula.



    What you're looking for is this toggle: Access app scope



    While I did have to use an input for it. 
    Disabling the Access app scope toggle would give me errors basically immediately.

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 834

#2
Valantis Profile Picture

Valantis 533

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard