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 / *NEW POWER APPS USER* ...
Power Apps
Unanswered

*NEW POWER APPS USER* - Data not saving for end user

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello Fellow Power users,

 

I created an app to for users to tracker the progression of policies. The data writes to a SharePoint list. However, when the users enter information and save, sometimes the data disappears right after saving or if they go back to the record at a later time. 

In order to save, I am currently using a patch function.  (See below) 

I am concerned because I cannot figure out why their data disappears or is not saving.
The below code is if they are creating a new record.

If(varNewRecord,ClearCollect(colNSPDMTracker,Patch(FedSupremacyTracker,Defaults(FedSupremacyTracker),
{Phase:'Group DropDown_1'.Selected.Value,
Health_x0020_Care_x0020_Specialt:'Occupation Dropdown_1'.Selected.Occupation,
Title:'RPO DropDown_1'.Selected.Title,
OData__x0031_0BRAPPOC:
{'@data.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims:"i:0#.f|membership|"&varCurrentUser.Email,
Department: "",
DisplayName:Office365Users.UserProfileV2(varCurrentUser.Email).displayName,
Email:varCurrentUser.Email,
JobTitle: "",
Picture: ""},
RPO_x0020_POC:{
'@data.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims:'NSP Lead ComboBox_1'.Selected.Claims,
Department: "",
DisplayName:'NSP Lead ComboBox_1'.Selected.DisplayName,
Email:'NSP Lead ComboBox_1'.Selected.Email,
JobTitle: "",
Picture: ""},
AUSH:Concat('AUSH ComboBox_1'.SelectedItems,Title,", "),
State_x0020_Variance:'State Variance Toggle_1'.Value,
PreemptingStateRequirements:InvokingSupToggle_1.Value,
Certifications_x0020__x002f__x00: Concat('cert / registration combo box'.SelectedItems,Value,", "),
Federal_x0020_Exemption_x0020_Cl:Concat('Federal Exemption combo box'.SelectedItems,'States and Territories',", "),
Initial_x0020_10BRAP_x002d_RPO_x:'Workgroup Date_1'.SelectedDate,
Workgroup_x0020_Distribution_x00:'Workgroup Email address text'.Text,
NSP_x0020_Workgroup_x0020_Milest:'Current milestone radio_1'.Selected.Value,
CurrentStatus1:{Value:
'current status of milestone - main page - radio_1'.Selected.Value},
NSP_x0020_Workgroup_x0020_Milest0:'Workgroup Milestone completion date'.SelectedDate,
Employment_x0020_Type:'Emp Type Dropdown_1'.Selected.Value,
Occupation_x0020_Code:'Occ Code Text_1'.Text,
Occupation_x0020_Sub_x002d_Code:'Occ Sub-Code Text_1'.Text,
OData__x0023__x0020_of_x0020_Employees:'# of EEs Text_1'.Text,
Nation_x0020_Unions:Concat('National Union Comb bo_1'.SelectedItems,Value,", "),
Non_x002d_National_x0020__x002f_:Concat('Non national combo box_1'.SelectedItems,Value,", "),
Initial_x0020_10BRAP_x002d_RPO_x0:'weekly running notes rich text'.HtmlText})));

 

The below code is if they are editing an existing record

If(varNewRecord,Concurrent(Set(varNewRecord,false),Set(varcurrentrecordID,First(colNSPDMTracker).ID)));

If(!varNewRecord,Patch(FedSupremacyTracker,LookUp(FedSupremacyTracker,ID=varcurrentrecordID),
{Phase:'Group DropDown_1'.Selected.Value,
Health_x0020_Care_x0020_Specialt:'Occupation Dropdown_1'.Selected.Occupation,
Title:'RPO DropDown_1'.Selected.Title,
OData__x0031_0BRAPPOC:
{'@data.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims:"i:0#.f|membership|"&varCurrentUser.Email,
Department: "",
DisplayName:Office365Users.UserProfileV2(varCurrentUser.Email).displayName,
Email:varCurrentUser.Email,
JobTitle: "",
Picture: ""},
RPO_x0020_POC:{
'@data.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims:'NSP Lead ComboBox_1'.Selected.Claims,
Department: "",
DisplayName:'NSP Lead ComboBox_1'.Selected.DisplayName,
Email:'NSP Lead ComboBox_1'.Selected.Email,
JobTitle: "",
Picture: ""},
AUSH:Concat('AUSH ComboBox_1'.SelectedItems,Title,", "),
State_x0020_Variance:'State Variance Toggle_1'.Value,
PreemptingStateRequirements:InvokingSupToggle_1.Value,
Certifications_x0020__x002f__x00: Concat('cert / registration combo box'.SelectedItems,Value,", "),
Federal_x0020_Exemption_x0020_Cl:Concat('Federal Exemption combo box'.SelectedItems,'States and Territories',", "),
Initial_x0020_10BRAP_x002d_RPO_x:'Workgroup Date_1'.SelectedDate,
Workgroup_x0020_Distribution_x00:'Workgroup Email address text'.Text,
NSP_x0020_Workgroup_x0020_Milest:'Current milestone radio_1'.Selected.Value,
CurrentStatus1:{Value:
'current status of milestone - main page - radio_1'.Selected.Value},
NSP_x0020_Workgroup_x0020_Milest0:'Workgroup Milestone completion date'.SelectedDate,
Employment_x0020_Type:'Emp Type Dropdown_1'.Selected.Value,
Occupation_x0020_Code:'Occ Code Text_1'.Text,
Occupation_x0020_Sub_x002d_Code:'Occ Sub-Code Text_1'.Text,
OData__x0023__x0020_of_x0020_Employees:'# of EEs Text_1'.Text,
Nation_x0020_Unions:Concat('National Union Comb bo_1'.SelectedItems,Value,", "),
Non_x002d_National_x0020__x002f_:Concat('Non national combo box_1'.SelectedItems,Value,", "),
Initial_x0020_10BRAP_x002d_RPO_x0:'weekly running notes rich text'.HtmlText}));

 

 

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Anonymous 

    Seems complicated, why not use a form?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @Drrickryp Because my app has multiple tabs with different fields. I am attaching a screen shot. 

     

    jjarmon7980_0-1656587864786.png

     

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Anonymous 

    You can probably use a single form to do it. Check Shane Young's video on how.   https://www.bing.com/videos/search?q=tabbed+forms+in+powerapps&&view=detail&mid=8B1234768A4AECE9D4158B1234768A4AECE9D415&&FORM=VRDGAR&PC=EMMX01 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 534

#2
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard