Adding custom properties to PowerApps components is straightforward enough. However, there doesn't seem to be a straightforward way to remove a custom property from a component if that property is subsequently no longer needed. I appreciate that if there are instances of the component in use throughout the app, deleting a component's custom property would necessarily impact component instances that make use of the deleted custom property. If however, none of the instances of a component are using a component's custom property that is up for deletion, then surely it should be possible to just remove that custom property from the component definition ? Right now, the only option appears to be deleting the entire component and recreating it minus the unwanted custom property. Have I missed something ?
Hi @flarebear ,
Do you want to remove the custom property within the Component?
Do you want to remove the custom property from the Master Component without affecting other instance which use the custom property?
If you want to remove the custom property from the Master Component without affecting other instance which use the custom property, I afraid that there is no way to achieve your needs in PowerApps currently.
If you would like this feature to be added in PowerApps, please consider submit an idea to PowerApps Ideas Forum:
I agree with your thought almost. If there are instances of the component in use throughout the app, deleting a component's custom property from Master Component would impact component instances.
>Do you want to remove the custom property within the Component?
Yes, within the Component definition, rather than a specific component instance. In the PowerApps studio there is a '+' to add a custom property, but no corresponding '-' to remove it; or better still an option within the custom property options '...' ellipsis menu of a custom property to remove it.
>Do you want to remove the custom property from the Master Component without affecting other instance which use the custom property?
It is understood that removing a custom property from the Master Component / Component definition would necessarily remove it from component instances, but there appears to be no way to even do that. So to achieve that, the developer has to delete the entire component and laboriously recreate it without the unwanted custom property.
Addding a required property and deleting a existing one is not possible currently. As you pointed there needs to be a upgrade step to manage the currently configured control which would be complex to cover all possible cases. Currently these changes are classified as breaking changes and control needs to be renamed and bought in as new control. MyPCFControlV2 for example , the control needs to be reconfigured from scratch again.
Please use ideas forum which would help us prioritize investment in the area.
Hi @EricRegnier . The component was just a button that was intended for use on multiple screens, the idea being that it would have similar characteristics throughout the application and wouldn't have to be re-developed for each new screen.
It is not as straightforward, but you can delete a custom property if you click on the data type as opposed to the ellipses or the name of the property.
As this is completely hidden, I'll elaborate. You open the Custom Property edit pane (which is where the Delete link is) by clicking on the *type* of the Custom Property in the Custom Property list.
Check out the News & Announcements to learn more.
Did you know that you can visit the Power Query Forum in Power BI and now Power Apps
Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.
Check out our new Discover Your Career Path blog post series and get all the details.