I have a custom object which is having a relationship with the same object. I need to update the first child record of the custom object record.
As shown above, the Broker object's record is having self-relationship and having 2 records.
I have to update the first created child record's IsFisrt__c field. I am not sure how to update the same record using a trigger.
Can anyone please help with trigger how to update self-relation object.