cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AshishJaiswal
Helper V
Helper V

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!

View solution in original post

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.

AshishJaiswal
Helper V
Helper V

@rizkyaditya @v-jefferni .

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

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

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