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
Luffy Carl_opLuffy Carl_op 

How to write the script in Workflow Rule?

Hello, at now, I want send e-mails to the users in my system, who have a exceptional report. I have written the Text Email Template, but I can't write the script of Workflow Rule.Is there anyone could help me with this rule? This may means: in oneday, the user did't login(the login__c will be null of this day before 24:00), system will send e-mail to him/her in 24:00.
Ashish_Sharma_DEVSFDCAshish_Sharma_DEVSFDC
Hi Luffy,

I don't think that this can be achieved by workflow.

You can write a batch job that will execute on specific time ,and can send emails to users whose login history for the day is null.

Let us know if it helps.