Hi,
I am executing the Flow to get the Employee Id in App-OnStart(). I am getting the Employee Id from the AD login Credentials.
After getting the Employee Id , I have to load splash screen for 3 seconds and at last I am landing into Dash Board screen.
If user don't have an Employee Id, I should notify the user like "No employee Id found", then I have to exit() App. I should not allow user to open the app without Employee Id.
I am checking the IsBlank(EmployeeId) || IsEmpty(EmployeeId) condition on the Splash Screen Timer – OnTimerEnd() Action.
Now the problem is, Due to network delay or internet issue, Employee Id returns blank value from the Flow. So Employee Id assigned user also not able to open the App.
How to overcome this problem. Kindly advise me.
I have attached the Flow Screen shot and Notification message for your reference.
Thanks in Advance.
Regards,
Fakeer Mohamed B
Hi @Anonymous
I understand that you're using a flow to get the employee ID, because the standard Office365 Connector within Power Apps doesn't provide you with the employee ID directly. This as such is already causing a delay and if it fails due to a weak connection, I'd say you could make use of the local device storage.
Meaning, once the user is opening the app for the first time, he should have a connection. Once this connection is established and the flow returned the employee ID, you can then save the Id to a collection and save that collection then to to the device's local storage with SaveData.
E.g.:
ClearCollect(colEmployeeId, {Id: EmployeeId});
SaveData(colEmployeeId, "lclEmployeeId")
Returning users will then use LoadData:
LoadData(colEmployeeId,"lclEmployeeId")
This will also speed up the loading time of your app for returning users - they wouldn't need to run the flow as the required data already exists on their device.
I hope this helps.
Hi @Anonymous ,
Could you please share more details about your scenario? What would you like to use the employeeId to verify? Is current user a guest?
Do you mean the employeeId from below screenshot?
If you do mean that employeeId, you will have to set them for every user including guests in Azure Active Directory since they are not auto-generated.
So could you please tell us what is your purpose of retrieving employeeId?
Best regards,
Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.
Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution to help the other members find it.
User | Count |
---|---|
122 | |
87 | |
86 | |
75 | |
67 |
User | Count |
---|---|
214 | |
181 | |
137 | |
96 | |
83 |