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 / Get Employee ID Flow f...
Power Apps
Unanswered

Get Employee ID Flow failing

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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

Flow2.PNG
Message1.PNG
Flow1.PNG
Categories:
I have the same question (0)
  • FabianAckeret Profile Picture
    975 on at

    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.

     

  • v-jefferni Profile Picture
    Microsoft Employee on at

    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.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 177

Last 30 days Overall leaderboard