function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sharan Aginasharan Agina 

can we update an object from another object as we use look up field

Hi all,

I have an object name hotel rooms with list of rooms and another object called reservations,  in the reservation object i have a field called  rooms as lookup field to hotel rooms,when we access the  rooms i want to update the status as not active and make it not accessable using look up field.
 
ankit bansalankit bansal
Hi Sharan,
I am guessing you dont want a room with status as "not active" to be able to be selected by the lookup field "room" on the reservation record. I would suggest you use look up filter on the "room" look up to achieve this.Please refer to this trailhead- https://trailhead.salesforce.com/en/content/learn/projects/customize-a-salesforce-object/create-lookup-filters