cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MWojtkiewicz
Regular Visitor

Power Apps form data card keys not are not updating when the corresponding Sharepoint list column names change.

I have a Sharepoint list, for which have created a custom form in Power Apps.

 

All the data cards have their DataCardXXKey element's text set to Parent.DisplayName, which should mean that it would show the name of the corresponding Sharepoint list column. And while some of those update themselves after I refresh the Data, many times they do not and they retain their old names even if the new one is already visible in some UI elements.

 

You can see the different values shown in the app and in the Form field selection pane.You can see the different values shown in the app and in the Form field selection pane.Proof that text should be changing along with the column name.Proof that text should be changing along with the column name.

 

I'm able to force a refresh by deleting and adding a field, or changing it from Edit to View and back to Edit, but this is in no way a sustainable thing to do.

2 REPLIES 2
Drrickryp
Super User
Super User

@MWojtkiewicz 

Changing column names in SharePoint is problematic because SharePoint retains the first name of the column and PowerApps sometimes uses the original column name.  Generally, it is not a good idea to rename SharePoint columns once the list is created, in particular renaming the Title column causes problems.  My suggestion is to unlock the card and replace Parent.DisplayName, with text enclosed in double quotes.   FYI, the only values in a form's card that matter are the Default property of the control in the card and the Update property of the card itself.  

Unfortunately this is not a suggestion I can use as I need the data card labels to change dynamically. Which they do, for the most part, until some of them don't. And PowerApps sees the new names, and shows them in the UI (my attached screenshots), but doesn't update the labels. This is clearly a bug, as the behavior is not consistent as it sometimes work, and you can force it to work manually by toggling the fields default mode from EDIT to VIEW and EDIT again. I also don't think that it will cause problems, as PowerApps remembering the first name only keeps the connection valid and SP also doesn't change the system name of the column after the first one.

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (4,440)