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
nusrat khowajanusrat khowaja 

Any one please help solving Task(Check box)

Please help me to solve this task as it is very important for me ,but unfortunitly i do not know what to do and how to do . Help plese
When a new opportunity is created (by converting a lead or manually)
then check the box for the field called "active opportunity" in the Accounts object.
at the same time, uncheck the field called "active lead" if its checked.
Andy BoettcherAndy Boettcher
This is a pretty straightforward use case for Process Builder or Workflow (cross-object field update).

With either approach, you will create the process/workflow off of the Opportunity object on create, then use the cross-object field update to set your checkboxes on the Account object.
Shalagha GumberShalagha Gumber
Hi Nusrat,

You can address this scenario by creating a Workflow Rule with:

Evaluation criteria: 'Evaluate the rule when a record is created'
Rule criteria: '(Account: Active OpportunityEQUALSFalse) OR (Account: Active leadEQUALSTrue)'
and two field updates: 1 for updating Active Opportunity to True and the other for updating Active Lead to False.