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 / Mark Gallery Selected ...
Power Apps
Answered

Mark Gallery Selected Item and Update Sharepoint list

(0) ShareShare
ReportReport
Posted on by 643

I have a Gallery shwoing data from SP, with a field that says awaiting delivery. I would like to select the item in the gallery and update the SP list to show Delivered. I know i need to patch the SP list, but unsure on how to do this with Gallery Selected.

 

jamescosten_0-1671190484288.png

So when i Press the button at the top, any gellery item selected will have the Delivered filed altered from Awaiting Delivery to Delivered. This is a YES / NO Choice selection, with Delivered as TRUE.

 

 

 

Categories:
I have the same question (0)
  • SebS Profile Picture
    4,589 Moderator on at

    @jamescosten 

     

    Is the YES / NO Choice  a Yes/No column or Choice column with Choice of Yes/No ?

  • jamescosten Profile Picture
    643 on at

    It is a Yes/No Column.

  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi @jamescosten ,

    On Select property of the icon you can use something like below - 

    If(!IsBlank(GalleryName.Selected), Patch(SPListName, LookUp(SPListName, ID=GalleryName.Selected.ID, {YesNoTypeColumn: true}), Notify("No item in the gallery is selected", NotificationType.Error))

    Considering Status is a choice column

    In your form you can use - 
    If(ThisItem.YesNoTypeColumn, "Delivered", "Awaiting Delivery")

  • Verified answer
    SebS Profile Picture
    4,589 Moderator on at

    @jamescosten @NandiniBhagya20 

     

     

     

    Patch(SharepointList,
    Gallery1.Selected,
    {
    
    Delivery:true
    
    }
    )

     

     

     

    You do not need to do any lookup Galler1.selected working with Patch and Patch recognise ID by it self

     

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard