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 Apps / Components Can't Use U...
Power Apps
Unanswered

Components Can't Use UpdateContext to crease a local variable

(0) ShareShare
ReportReport
Posted on by 53

When building a component and try to use UpdateContext({MyLocalVarible}), get an error: UpdateContext is an unknown or unsupported function. It works ok on Screens, just not in a component.

 

Any help would be appreciated!

Categories:
I have the same question (0)
  • zmorek Profile Picture
    3,272 on at

    To pass information out of a component, you need to create an Output property to the component, then assign that property whatever it is you want out of the component (which seems to be a record, in this case).

  • VJ-22072138-0 Profile Picture
    53 on at

    Thanks for the reply, passing variables is not the issue. The issue is I can't use the UpdateContext function to manage my variables within the component.

  • v-liwei-msft Profile Picture
    on at

    Hi @Syvenn 

     

    This link describes how to use the OnSelect property in components and create local variables.

    Power Apps Component With An OnSelect Property - Matthew Devaney

     

    Best Regards,

    Levi

  • VJ-22072138-0 Profile Picture
    53 on at

    Thanks for your reply! Following the suggestion provided I get the same error for the OnSelectCancel" Unknown or unsupported function in namespace.

     

    I will open a ticket...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

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard