cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Re: Access rights is working as expected

I'm not sure, I thought it was, but I can't get it to work anyway - maybe 2 problems and not just 1.

 

Highlighted
Super User
Super User

Re: Access rights is working as expected

@Mhystique 

I am not sure what the problem is then.   If you can type your name into the formula and it works then your LookUp formula is built well.  But if User().Email does not return anything then it does not match your typed email.  All I can suggest at this point is putting User().Email in a label any looking to spot any differences.  Also, check the length using the LEN function.  Other than that I am all out of ideas here... Sorry, I really wanted to help.

Highlighted
Helper I
Helper I

Re: Access rights is working as expected

That's okay, I myself is shouting left and right out of desperation - this should be soooo simple, then why the he.. doesn't it work… 😠

Maybe you can tell me how the Set( ) function work, or confirm me in my believes.

Set(MyACLprofile; LookUp(UserCreationACL; UserEmail=Lower(User().Email) ))

It creates a variable called MyACLprofile.

To put anything in that variable, the lookup takes the Sharepoint list and compairs the column UserEmail with the logged in users email (in lower case).

If the Sharepoint list contains multiple columns MyACLprofile will basically be an array containing all columns and there respective data.

Is that correct?

Highlighted
Helper I
Helper I

Re: Access rights is working as expected

I think I cracked it now, if I put lower() on UserEmail also, it seems to work.

Set(MyACLprofile; LookUp(UserCreationACL; Lower(UserEmail)=Lower(User().Email) ))

A bit strange when UserEmail was in lower case from the start...🤔

Super User
Super User

Re: Access rights is working as expected

@Mhystique 

Haha.  I thought you would have tried that already.  If you take a look back at message #8 in the thread you will see I had suggested it.  I did wonder if you'd get delegation warnings but if there is no error message then its fine.

 

Lower(UserEmail)=Lower(User().Email)

 

Glad its working for you now.  Please remember to close the thread if the issue is solved.

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

Highlighted
Helper I
Helper I

Re: Access rights is working as expected

Doh, totally missed that. 🙄

But thanks for your help.

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (9,328)