Prompt Share - Batch Asset Retirement #45
craigathon
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The Prompt Asked in Einstein Sidebar
Create an Apex batch class named AssetRetirementBatch.
If the Asset Status is 'Installed', the status should be set to 'Retired' for all Assets where the 'End of Life Date' field is set to a date that is more than a year in the past. Also include fields AccountId and Account.OwnerId in the query.
If the Asset ProductFamily is set to 'Mainframes', also create a Case for the Asset's Account Owner to follow up with the customer.
The Result
Thoughts
Beta Was this translation helpful? Give feedback.
All reactions