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 / Component - input reco...
Power Apps
Unanswered

Component - input record resetting to default value

(1) ShareShare
ReportReport
Posted on by 8

I'm trying to create some components using an input property of type "record" so that I can extend it as needed without needing to add a new input property for every individual item. While this does work, it has an undesired side effect, and I'm not sure if its a bug or intended.

 

In my example, I created a component, added an input record, and defined a default value of:

{foo: "foo", bar: "bar"}

component-1.PNG

 

Then I went back to my main screen, added the component, and changed the input to:

{foo: "foo1", bar: "bar1"}

screen-1.PNG

 

As you can see, the component on the main screen reflects the custom input. Then I went back to the component to add a new sub-property:

{foo: "foo", bar: "bar", zzz: "zzz"}

component-2.PNG

 

Unfortunately, it seems as though since the input record definition has changed, it went and reset the input from the main screen using this component.

screen-2.PNG

 

Interestingly enough, if you're not adding sub-properties to the default input record on the component, but rather only changing the already defined sub-properties, it doesn't go back and reset any of the component references on the screens. However, this kind of defeats the purpose of using an input record to be able to extend the component without needing to add additional inputs. The "Raise OnReset when value changes" flag doesn't seem to make a difference here either way.

 

Has anyone else noticed this? Is there something simple I'm missing? Any thoughts on a workaround?

 

Thank you in advance!

Categories:
I have the same question (0)
  • RossB Profile Picture
    Microsoft Employee on at

    Hello,  

     

    So are you saying that when you created the component and used {foo: "foo", bar: "bar"} as your InputData it was showing correctly on Screen1.  Then, while on screens in the Tree View you clicked the component1_1 and changed the InputData from the above to {foo: "foo1", bar: "bar1"}, and when you went back to the Components under the tree view, it did not reflect the change you made on the screen?  Is that the issue you are talking about?

     

    Thanks

  • cfharp Profile Picture
    8 on at

    No. As I stated above:

    1. Created the component and defined the default input record value.
    2. Added the component to a screen (which carried over the default input value from the component).
    3. Changed the input value from the screen (i.e. specify a variable to pass in).
    4. Updated the component to add another sub-property on the input record value.
    5. All references to that component on any screen automatically reset the input record value to whatever the component was updated with. Any custom value/variable defined on references of the component are lost.

     

    This is especially annoying with my intended use case of passing through a "config record" that holds global configuration for the canvas app. Any time I add anything to the definition on the component, I have to go back through every screen and find every reference to revert back to my variable.

  • Jeff9744 Profile Picture
    4 on at

    I've the same issue, any update ?

  • PhilPfei Profile Picture
    on at

    Yep this should be changed, it is annoying as hell, especially when you have complex formulas and using that component multiple times inside your application

  • latinwiz Profile Picture
    13 on at

    I have a similar issue, but it seems the Component record fields are picking other fields to display their information.

    Any advice on tackling this issue is greatly appreciated.

  • latinwiz Profile Picture
    13 on at

    Resolved the issue, completely deleted the Component's record input property and re-added it, everything works great now.  This is clearly a bug with Power Apps.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 421 Most Valuable Professional

#2
11manish Profile Picture

11manish 153 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 116 Super User 2026 Season 2

Last 30 days Overall leaderboard