I am working on an app for a program where users are presented with a Home screen/dashboard. From here they can add a goal(Add goal page w/ a form), or edit a goal (Edit goal page w/ a form).
To improve performance I have App OnStart that runs so that goals are filtered to just the user.
Collect(MyGoalsCollection,Filter('Goal tracker',SPName.Email=User().Email))
For each form,
The button OnSelect is:
SubmitForm(AddGoalForm);Navigate(Home)
The OnSuccess code is.
Notify("Changes successfully submitted. It will take a few moments for this item to display on your Home page dashboard.",Success);
Collect(MyGoalsCollection,AddGoalForm.LastSubmit);
ResetForm(AddGoalForm)
I also have a PowerAutomate that puts the current users SharePoint name in the SPName field.
The issue I'm running into is that when the user creates, or edits their goal:
- it takes a while to display on the dashboard
- If it doesn't display right away and the user refreshed the page they have to refresh multiple times.
ASK: Is there a way to improve this performance? Perhaps rather than running a PowerAutomate to capture the users SPName, is there an automatic way to capture that in the form so the user doesn't need to?