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 / Creating a one click s...
Power Apps
Unanswered

Creating a one click signout button

(0) ShareShare
ReportReport
Posted on by 33

I am trying to build a basic PowerApp to act as the signin app for our office. On sign out, I want to display a gallery of people still signed in with a sign out button next to their name. 

 

To do this I am using this in the items property ( although it is giving me a warning, but it works )

Filter('Visitor Registration Log',CheckedIn = 1)

 

Then on the sign out button within each row I am wanting to set the CheckedIn status = 0 and the CheckOut DateTime = Now using the below in the OnSelect property of the button ( tried to grab this from another example ). It doesn't seem to work however.

 

UpdateContext({EditRecord:Patch('Visitor Registration Log',LookUp('Visitor Registration Log',ID=Gallery2.Selected.ID),{CheckedIn : 0},{ 'CheckOut DateTime' : Now()})}); Navigate('Welcome Screen',None)

 

Is someone able to help me connect the dots on where I am going wrong, tutorials on the web are not overly helpful.

 

Thanks

Categories:
I have the same question (0)
  • James_Anderson Profile Picture
    33 on at

    Got it sorted. It actually all works fine. The Gallery wasn't set to edit mode not allowing the button to be activated.

  • v-yutliu-msft Profile Picture
    on at

    Hi @James_Anderson ,

    Do you have any other problem?

    If your issue is solved, please change your issue's status to "Answered".

    Thanks!

     

     

     

    Best regards,

  • James_Anderson Profile Picture
    33 on at

    I only have one last small issue. When I use the People lookup on the form, the AD photo appears when viewing on the desktop but it doesn't display on the ipad or mobile. Is this a permissions issue or something else?

  • gazzo1967 Profile Picture
    1,151 on at

    @James_Anderson 

    If you want this to work acroos all platforms there is a way to do this.

    You will need to add the Office365 connector

    you them need to use an IF statement on the image property you will need to enter the following:

     

    If(
    !IsBlank(ThisItem.'name of the field which hasperson/grouplookup'.Email),
    Office365Users.UserPhotoV2(ThisItem.'name of the field which hasperson/grouplookup'.Email)

    remove single quotes

     

    This is not my formula its one i found a while back but cant remember where!

     

    Regards Gary
    )

  • James_Anderson Profile Picture
    33 on at

    I can add that connector, but the part that pulls through the image is part of the sharepoint list field type. So how do I add that IF statement to that datacardvalue box? It doesn't seem to have an image parameter to set anything to.

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard