Skip to main content
13-Aquamarine
March 24, 2023
Solved

i have services code but how to implement schedulers

  • March 24, 2023
  • 1 reply
  • 2821 views

i have services code but how to implement schedulers 

me.SendMessage({

              cc: "xxx@gmail.com" /* STRING */,

              bcc: "yyy@gmail.com" /* STRING */,

              subject: "this well"/* STRING */,

              from: "zzz@gmail.com" /* STRING */,

              to: "hariharasuthan@yahoo.co.in" /* STRING */,

              body: "this is verywell" /* HTML */

});

this services was running  e-mail but  i need  (hour,day,week,month,year) this based  how to implement schedulers concept 

 

 

Best answer by Velkumar

Hi @Hariharasuthan 

 

You can use 'Scheduler' Thing to trigger an event based on CRON String.

 

Based on the CRON String event will be triggered hourly, weekly, or Monthly 

 

Step 1: Create a Scheduler Thing

CS1.PNG

 

Step 2: Configure CRON String

CS2.PNG

 

Step 3: Create a Subscription to trigger email 

CS3.PNG

 

/ VR

1 reply

Velkumar19-TanzaniteAnswer
19-Tanzanite
March 24, 2023

Hi @Hariharasuthan 

 

You can use 'Scheduler' Thing to trigger an event based on CRON String.

 

Based on the CRON String event will be triggered hourly, weekly, or Monthly 

 

Step 1: Create a Scheduler Thing

CS1.PNG

 

Step 2: Configure CRON String

CS2.PNG

 

Step 3: Create a Subscription to trigger email 

CS3.PNG

 

/ VR

13-Aquamarine
March 27, 2023

hi @Velkumar  

 i have completed step by step process as you suggested but i am unable to receive emails every five Minutes ,please let know any additional steps  to do, i need  one full example . Thank you .

Hariharasuthan_0-1679924476246.png

 

          

 

19-Tanzanite
March 28, 2023

HI @Hariharasuthan 

 

Could you please show your CRON String? 

 

Below CRON string should trigger the scheduler event every 5 min 

 

0 */5 * ? * *

 

 

You can also use this link to generate CRON String

 

And could you please elaborate on your use case?