You need to sign in to do that
Don't have an account?
Sunny S
Automate Email Notification To Not Logged In Users
Hi friends, need very very urgent help please !
Requirement:
Is there a way to automate email notification alert to get triggered for user who have not logged in for past 20 days?
Basically, an email should automatically get fired to notify users about being not logging in for XYZ days.
I tried working with WFR and PB but failed to get over, as there won't be any action on these user accounts to trigger the automation.
I am sure that this could be acheived using Apex, but my lack of experince with coding is the biggest hurdle.
Can anyone please please help me in getting this sorted step by step please, as this has come up as a very urgent piece of work, and failing to do this could get me fired.
Thanks in advance !
Requirement:
Is there a way to automate email notification alert to get triggered for user who have not logged in for past 20 days?
Basically, an email should automatically get fired to notify users about being not logging in for XYZ days.
I tried working with WFR and PB but failed to get over, as there won't be any action on these user accounts to trigger the automation.
I am sure that this could be acheived using Apex, but my lack of experince with coding is the biggest hurdle.
Can anyone please please help me in getting this sorted step by step please, as this has come up as a very urgent piece of work, and failing to do this could get me fired.
Thanks in advance !
Not a proble, we are here to help :)
Create an Apex class like below, this will be called a Batch class:
For sending mails to users, refer https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_email_outbound_mass.htm
All Answers
You can achieve this by creating a batch and use query below in your start() method, the result (list of users) returned would be used to send MassEmailMessage in the execute() method:
Please pardon me in advance for my kiddish query... but what would be the steps to follow your instructions here, in order to acheive the result?
Step 1: Should i create an Apex class ?
Step2: And use this query where ?
trust me i have never worked on Developer Console and have zero coding knowledge.
1: Instance Variable here?
2: Constructor ?
3: Start () method --- can write your advised query
4: Excute () method
Please save me from getting fired !
Thanks a lot
Not a proble, we are here to help :)
Create an Apex class like below, this will be called a Batch class:
For sending mails to users, refer https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_email_outbound_mass.htm
Realy apprecaite your time and support in getting me through. kind regards!