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
farah sheriffarah sherif 

i need help with this trigger URGENTLY

We need a trigger on the asset object on update to check all assets.

 If all Assets belonging to product family = "360 Suite" had their  Status = "Canceled" , then on Account, update the 360 Account stage (API Name = Account_Status__c )  to "Cancel".

The trigger should first check the status of the asset (Trigger.new ) , if it is cancelled then we will do the code. The trigger should also check the (trigger.old) status, if it is anything other than cancelled then also continue with the code

please if anyone can help with this one I would be so grateful