Server Code - Update Multiple Object based on Array with their IDs


I need to update a field for multiple rows in a collection. I have an array with their IDs. All I need is for all the listed rows to be updated so that field "X" equals "true".

Could you tell me how to accomplish this? I'm sure there is a simple way of doing this but I haven't been able to figure it out.

1 person has
this question