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
Lokesh PatilLokesh Patil 

Create a custom number field on Account and name it ‘Total Campaign Cost’ Create a lookup relationship on Campaign as Account. Use Campaign ‘Actual Cost’ field for operations. Each time a campaign status is marked as ‘Completed’ add the amount into the

Trigger to
Create a custom number field on Account and name it ‘Total Campaign Cost’
Create a lookup relationship on Campaign as Account.
Use Campaign ‘Actual Cost’ field for operations.
Each time a campaign status is marked as ‘Completed’ add the amount into the ‘Total Campaign Cost’ field of account.
Update Account Status:
If Total Campaign Cost on Account is greater than $10,000 : Platinum
If Total Campaign Cost on Account is > $8,000 & <$10,000 : Gold
If Total Campaign Cost on Account is <$8,000: Silver
- Code should be able to handle bulk data; meaning multiple campaigns can be added/updated with status as ‘Completed’ using Import Wizard or Data loader
- Code should adhere to programming best practices like
- Standardized Naming conventions
- Apt utilization of collection elements
- Follow of Trigger pattern
- Avoiding Trigger recurrence on same object
- Proper Code comments
- On keeping Salesforce Governor limits into consideration
- Also, create an apex test class to ensure developed code can be deployed; adhere to best practices of the testing framework.
AbhishekAbhishek (Salesforce Developers) 
Please feel to reach out to the accelerator team who can give you the idea of how you can implement according to your business requirement if you have the premier success plan.

Please find the details on how to request for an accelerator:https://help.salesforce.com/articleView?id=000337601&type=1&mode=1

Otherwise, I would request you to reach out to your Account Executive If you wish to upgrade to Premier Support please contact your Account Executive.