cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Get Employee ID Flow failing

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

2 REPLIES 2
FabianAckeret
Solution Sage
Solution Sage

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.

 


Please click Accept as Solution if my post answered your question. Like my answer? Consider giving it a Thumbs Up. Others seeking the same answers will be happy you did.
v-jefferni
Community Support
Community Support

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?

82.png

 

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.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,330)