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
Super User
Super User

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
Responsive Resident
Responsive Resident

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

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (56,891)