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
TsvetyTsvety 

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
TsvetyTsvety
Hi all,

I was able to resolve the issue using Steve's idea here - https://success.salesforce.com/answers?id=90630000000gslYAAQ.
Since the relationship between my objects was a lookup and not a master-detail, I used the Declarative Lookup Rollup Summaries - https://github.com/afawcett/declarative-lookup-rollup-summaries.

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