cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AshishJaiswal
Super User
Super User

Login Screen only for first Login

Hi Experts,

 

is the below possible

First time accessing the app - user should see screen1 

second login to the app - user should see screen 2 directly (screen 1 should be skipped)

 

Some context which will help
Screen 1 - user will enter the details like age, email, designation etc.

 

Screen 2 - See your existing details > Click on edit button > navigate to screen 1 > edit your details here

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
rizkyaditya
Resolver III
Resolver III

Hello @AshishJaiswal ,

 

I assume you have some database or sharepoint list that contain all of the user information entered from Screen 1.

And the email that user enter in Screen 1 is the same as they used for powerapps login.

 

Then you can try this on your app OnStart :

If(IsBlank(LookUp(yourDatabase, Email = User().Email, Email)),
Navigate(Screen1),
Navigate(Screen2))

 

I hope this helps!

View solution in original post

3 REPLIES 3
rizkyaditya
Resolver III
Resolver III

Hello @AshishJaiswal ,

 

I assume you have some database or sharepoint list that contain all of the user information entered from Screen 1.

And the email that user enter in Screen 1 is the same as they used for powerapps login.

 

Then you can try this on your app OnStart :

If(IsBlank(LookUp(yourDatabase, Email = User().Email, Email)),
Navigate(Screen1),
Navigate(Screen2))

 

I hope this helps!

v-jefferni
Community Support
Community Support

Hi @AshishJaiswal ,

 

It's possible to achieve your need, with some help of a data table.

 

So, assuming you will have a table, Excel, SharePoint or else, let's say Users, with columns of name, age, email, designation etc. 

1\ Add this table as a data source.

 

2\ OnStart of the App set to:

Set(varUser, User().Email);
If(IsBlank(LookUp(Users, varUser= Email)), Navigate(Screen1),Navigate(Screen2))

 

The point is you will need a table to store the details that you need from a user, when the app starts running, it will check if the user has already left its information from the table. 

 

Hope this helps.

 

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.

AshishJaiswal
Super User
Super User

@rizkyaditya @v-jefferni .

Thank you for such a quick response, both your code/expression works

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.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

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,983)