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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Setting Object Value i...
Power Apps
Answered

Setting Object Value in Gallery

(0) ShareShare
ReportReport
Posted on by 33

I have a collection of objects tied to a Gallery that stores information for the video component. An example is the following:

 

 

ClearCollect(
 vidList,
 Table(
 {
 VideoTitle: "Autumn Forest Walk",
 VideoURL: 'coverr-autumn-forest-9642-1080p',
 PauseVideoOnEnd: false,
 IsComplete:false
 }
 )
)

 

 

The issue is that on the OnEnd of the player for that particular object, I want to have IsComplete set to true so that in the Gallery, I can reference ThisItem.IsComplete and have it reflect 'true' instead of remaining false as it does.

Any Ideas? This is the last major hurdle (I think) in accomplishing what I would like to do, which is show a image on the video lists for the ones that have completed.

Categories:
I have the same question (0)
  • Verified answer
    Shaheer Ahmad Profile Picture
    2,194 Moderator on at
    1. First, make sure that your Gallery is bound to the vidList collection.

    2. In the OnEnd property of your video player, add the following code to update the IsComplete property:

     

    Patch(
     vidList,
     First(Filter(vidList, VideoURL = 'coverr-autumn-forest-9642-1080p')),
     {IsComplete: true}
    )

     

    Explanation:

    • Filter(vidList, VideoURL = 'coverr-autumn-forest-9642-1080p'): This filters the vidList collection to find the item with the matching VideoURL.

    • First(...): Since the filter can return multiple items (even though, in your case, it should be one), we use First to get the first (and only) item in the filtered result.

    • Patch(vidList, ..., {IsComplete: true}): This updates the IsComplete property of the found item in the vidList collection.

  • Jenkies Profile Picture
    33 on at

    Thanks! Now I feel like an idiot and should have known. I forgot I was using a collection, LOL. Guess that why I should stop coding/developing after 12 hrs. without a break. 

  • Shaheer Ahmad Profile Picture
    2,194 Moderator on at

    LOL. Happens to the best of us. Have a good day

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 401 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard