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

Lock parent object

Hi sfdc experts,

I am trying to lock the Opportunity object when a related object (Commissions) is submitted for approval. The relationship between them is a lookup relationship.
Is there a way to accomplish this without having to create a "Read only" opp. record type or writing triggers?
Best Answer chosen by Tsvety
Hi all,

I was able to resolve the issue using Steve's idea here -
Since the relationship between my objects was a lookup and not a master-detail, I used the Declarative Lookup Rollup Summaries -

I hope this helps someone else who faces the same problem!