Hello,
we using PowerApps to customize Sharepoint list form, app is using Office365 connector to get current user manager from AD. On first load, app ask user for permissions for Office365 connection, after user confirm authorization app hangs in "loading data" screen.
It doesn't look good because we expect just one entry for every user and its first powerapp solution in organization and we want good user expirence from the start.
How can we solve this issue?
Solved! Go to Solution.
Update: It seems that problem has nothing to do with Office365 autorization, first load hangs anyway, i dont see whats wrong so i will try to rebuild app from start, and test behavior alonge way.
regarding your question, OnStarts is empty:
FormScreen1 -> OnVisible - Empty
SharePointForm1 -> OnSuccess - ResetForm(SharePointForm1);;RequestHide()
More update:
But i think the problem is here somewhere, i changed item on SharePointForm1 from default
SharePointForm1 -> Item ->
If(IsBlank(SharePointIntegration.Selected) || IsEmpty(SharePointIntegration.Selected);First(MyList);SharePointIntegration.Selected)
to:
SharePointForm1 -> Item -> SharePointIntegration.Selected
because i dont want to show data from first record in the list in any time, and on the first load for new user form acts like SharePointIntegration.Selected is empty. Again, issue is still here, first time user click on new item, autorization screen pop aps, user confirms and form gets in SharePointIntegration.Selected empty and "hangs", after reload everything is working fine.
Last update:
I managed to solve issue buy changing DefaultMode on SharePointForm1 to FormMode.New.
Looking up a User's manger should only take a second or two but it shouldn't cause the app to hang. What is the formula in the OnStart?
Hi @ibogovic ,
As long as the user has the AD user profile in your Office 365, he should be able to access the Office 365 Users connection with his own credential.
Did you make sure that the user also has the proper permission on this SharePoint list?
Have you tested with other web browsers?
Is this happening to multiple users?
Regards,
Mona
Update: It seems that problem has nothing to do with Office365 autorization, first load hangs anyway, i dont see whats wrong so i will try to rebuild app from start, and test behavior alonge way.
regarding your question, OnStarts is empty:
FormScreen1 -> OnVisible - Empty
SharePointForm1 -> OnSuccess - ResetForm(SharePointForm1);;RequestHide()
More update:
But i think the problem is here somewhere, i changed item on SharePointForm1 from default
SharePointForm1 -> Item ->
If(IsBlank(SharePointIntegration.Selected) || IsEmpty(SharePointIntegration.Selected);First(MyList);SharePointIntegration.Selected)
to:
SharePointForm1 -> Item -> SharePointIntegration.Selected
because i dont want to show data from first record in the list in any time, and on the first load for new user form acts like SharePointIntegration.Selected is empty. Again, issue is still here, first time user click on new item, autorization screen pop aps, user confirms and form gets in SharePointIntegration.Selected empty and "hangs", after reload everything is working fine.
Last update:
I managed to solve issue buy changing DefaultMode on SharePointForm1 to FormMode.New.
you saved my day 🙂
Stay up tp date on the latest blogs and activities in the community News & Announcements.
Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
User | Count |
---|---|
207 | |
187 | |
83 | |
52 | |
37 |
User | Count |
---|---|
288 | |
245 | |
119 | |
77 | |
55 |