cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
alexis
Frequent Visitor

Components not reading Global Variable (Type Records)

Hi,

 

Does anyone also have a problem with components not able to read Global Variables (Records Type in my case) ?
The problem appears in several apps in my environment since the new release of PowerApps (3.20021.27) but it worked fine in the previous release (3.20014.23)

 

I haven't open a ticket yet

Thanks

Alexis

 

2 ACCEPTED SOLUTIONS

Accepted Solutions

There's currently some tickets open in which components with an input property set to an external global variable are experiencing issues. 

 

You can file a support ticket or in the interim you can switch the variable to a local variable (UpdateContext). Sorry for the inconvenience.

View solution in original post

Hi @alexis @CYoung @EricLott ,

A fix went out earlier today for this issue. Can you report back if the issue is resolved for you?

View solution in original post

13 REPLIES 13
EricLott
Resident Rockstar
Resident Rockstar

I believe this is by design. Components are meant to be used throughout solutions, not in a specific case. You can create an input in your component that you then feed using a variable, but a component itself cannot reference a global variable. Think of them as a completely separate solution. At least this is my understanding.

---
If this answered your question, please click "Accept Solution". If this helped, please Thumbs Up.

There's currently some tickets open in which components with an input property set to an external global variable are experiencing issues. 

 

You can file a support ticket or in the interim you can switch the variable to a local variable (UpdateContext). Sorry for the inconvenience.

View solution in original post

Thanks for the answer, that's exactly what I'm experiencing right now.
I didn't think of using a local variable temporarily and removed all the components I used to replace them with common controls.

I'll test again later.
Thanks
Thanks
CYoung
Frequent Visitor

Yes this used to work until the today. Now the components don't work with global variables.

Hi @alexis @CYoung @EricLott ,

A fix went out earlier today for this issue. Can you report back if the issue is resolved for you?

View solution in original post

Hi,

Yes it's working again for me.
Thanks 👍

Alexis
CYoung
Frequent Visitor

yes thank you it is resolved

mfcalmeida
Frequent Visitor

It seems this issue is back... I'm running version 3.20043.21

 

The app works fine while editing in PowerApp Studio but in production, the components are unable to read the variable content.

Cooper01
Continued Contributor
Continued Contributor

Hi @EricLott , came across your comment when searching for how to pass a variable to a component. Can you provide any more detail on how to do this? I am setting a global var (MyRole) on app OnStart. I'd like to display that value in a label in my component. I have a Text input custom property and I am passing MyRole in as the value. However, the component shows "MyRole", not the value of the MyRole var. Am I missing something?

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (973)