cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Md_Fazlul_Karim
Frequent Visitor

Allow one user to post one item in the application

Hello,

 

I am trying to build and app where one user can only make one entry. 

On the application start I am trying to validate the data source(SPList) if the user made an entry then the user will be redirected to a page if not then the user will see the page where the user can make an entry. I am trying to use the formula below. Can you please advice why this is not working. 

 

If(
IsEmpty(
Filter(
Staff_List,
'Staff Name'.Email = User().Email
)
),
Navigate(NotCompleted);
Navigate(Completed)
)

1 ACCEPTED SOLUTION

Accepted Solutions
rubin_boer
Super User
Super User

hi  @Md_Fazlul_Karim 

 

you are doing both navigation for the true condition because of (;) Navigate(NotCompleted);

change that to Navigate(NotCompleted),

 

If(
IsEmpty(Filter(Staff_List,'Staff Name'.Email = User().Email)),
Navigate(NotCompleted);
Navigate(Completed)
)

 

hope it helps

View solution in original post

2 REPLIES 2
rubin_boer
Super User
Super User

hi  @Md_Fazlul_Karim 

 

you are doing both navigation for the true condition because of (;) Navigate(NotCompleted);

change that to Navigate(NotCompleted),

 

If(
IsEmpty(Filter(Staff_List,'Staff Name'.Email = User().Email)),
Navigate(NotCompleted);
Navigate(Completed)
)

 

hope it helps

View solution in original post

Md_Fazlul_Karim
Frequent Visitor

Thanks mate!

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

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

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.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (903)