What trigger can be used to disable the dormant accounts on salesforce

HI team,

I have requirement to disable the dormant accounts of salesforce via workflow.
What trigger can be used for accomplish this task.

You can use a schedule trigger , and schedule like , everyday ?!
Or , if it should be something accurate ,you can use Identity Attribute Changed ,and if lcs is configured for dormant , compare the lcs value , and proceed to complete the functionality.

we are using only account attributes here to comparision. So we need to disable accounts who have not logged into tool since =>90days. If anyone has the use case.

@nandiniks
Trigger - Schedule Workflow Everyday
Http Operation - Get all identies whose last login date account attribute =>90
Proceed to disable

1 Like