web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Setting Variable based...
Power Apps
Answered

Setting Variable based on boolean field Sharepoint List

(0) ShareShare
ReportReport
Posted on by 191

Hello,

I have a sharepoint list with a yes/no field called "SpBooleanField", i'm trying to check the user exists as an employee on the list and that the field SpBooleanField is set to true (Yes in sharepoint). I cannot understand why the below is not working, any help would be really appreciated. 

Set(
 varIsRequired,
 !IsBlank(
 LookUp(
 myList,
 And(employee.Email = LoginUser.Email && SpBooleanField=true )
 )
 )
);

 

Categories:
I have the same question (0)
  • MVP-Phipps Profile Picture
    3,508 Super User 2024 Season 1 on at

     

    Set(
     varIsRequired,
     !IsBlank(
     LookUp(
     myList,
     And(employee.Email = User().Email && SpBooleanField)
     )
     )
    );

     

     

    Please Accept as Solution if it solves your question. Or just give it a Thumbs Up if it is helpful as can help others.

    LinkedIn: https://www.linkedin.com/in/charlie-phipps-%F0%9F%91%A8%E2%80%8D%F0%9F%92%BB-91338715b/
    YouTube: https://www.youtube.com/channel/UChmFBGU1YKIU91sNMQ7buGg
    Twitter: https://twitter.com/phipps0218

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @CiaranCampbell 

    Try this and see if it works.

    Set(
     varIsRequired,
     !IsBlank(
     LookUp(
     myList,
     And(employee.Email = LoginUser.Email && SpBooleanField)
     )
     )
    )

     

  • senna Profile Picture
    191 on at

    unfortunately the loginuser isn't the issue, i just store the user details on start but have tried it with User() and same issue

  • MVP-Phipps Profile Picture
    3,508 Super User 2024 Season 1 on at

    For a test, please add SpBooleanField to a label and show me the output?

  • senna Profile Picture
    191 on at

    unfortunately that doesn't work.  I also tried !IsBlank(SpBlleanField) and same issue

     

  • MVP-Phipps Profile Picture
    3,508 Super User 2024 Season 1 on at

    For a test, please add SpBooleanField to a label and show me the output?

  • MVP-Phipps Profile Picture
    3,508 Super User 2024 Season 1 on at

    @CiaranCampbell try this:

    Set(
     varIsRequired,
     !IsBlank(
     LookUp(
     myList,
     And(employee.Email = LoginUser.Email && SpBooleanField=1 )
     )
     )
    );
  • senna Profile Picture
    191 on at

    @phipps0218 

    Thanks, those aren't the actual names, its is set onSelect of a button, here is the real code;

    CiaranCampbell_1-1657895797226.png

    The label code

    CiaranCampbell_2-1657895825311.png

     

    the actual label result when run

    CiaranCampbell_0-1657895756014.png

     

  • Verified answer
    MVP-Phipps Profile Picture
    3,508 Super User 2024 Season 1 on at

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard