Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 44l9qvFnufgH/XStlewWtn
Power Apps - Building Power Apps
Unanswered

Components Can't Use UpdateContext to crease a local variable

Like (0) ShareShare
ReportReport
Posted on 8 Feb 2023 19:30:03 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!

  • VJ-22072138-0 Profile Picture
    53 on 09 Feb 2023 at 13:27:45
    Re: Components Can't Use UpdateContext to crease a local variable

    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

  • v-liwei-msft Profile Picture
    on 09 Feb 2023 at 06:39:37
    Re: Components Can't Use UpdateContext to crease a local variable

    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 08 Feb 2023 at 20:44:10
    Re: Components Can't Use UpdateContext to crease a local variable

    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.

  • zmorek Profile Picture
    3,272 on 08 Feb 2023 at 20:19:55
    Re: Components Can't Use UpdateContext to crease a local variable

    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).

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,743 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,089 Most Valuable Professional

Leaderboard
Loading started