schedule job for request item

yardenKrispel
Tera Contributor

Hi! i need help ' 

need to create a schedule job for Request Item: Request for elevator digital sign -

that will run every day at 7 AM and will check if the end time for preforming is today, if yes then need to send notification to me.

I did it like this:

notification:

yardenKrispel_0-1713941829321.png

 

yardenKrispel_1-1713941854261.png

 

yardenKrispel_2-1713941919356.png

 

yardenKrispel_3-1713941942440.png

 

event:

yardenKrispel_4-1713941972106.png

 

schedual job:

yardenKrispel_5-1713942008939.png

 the sys id its user me

 

its not work' why?

1 ACCEPTED SOLUTION

Community Alums
Not applicable

Hi @yardenKrispel ,

Can you please check 2 things in Scheduled job. 

1. Please check the backend name of end_time from the list.

2. When you call the event it accepts 3 parameters like this 

gs.eventQueue('adtv.job',current,current.number,gs.getUserName());

Here  Current is GlideRecord, current.number is param1 and gs.getUserName() is param2

 

Please mark my answer correct and helpful if this works for you

 

Thanks and Regards 

Sarthak

View solution in original post

3 REPLIES 3

Community Alums
Not applicable

Hi @yardenKrispel ,

Can you please check 2 things in Scheduled job. 

1. Please check the backend name of end_time from the list.

2. When you call the event it accepts 3 parameters like this 

gs.eventQueue('adtv.job',current,current.number,gs.getUserName());

Here  Current is GlideRecord, current.number is param1 and gs.getUserName() is param2

 

Please mark my answer correct and helpful if this works for you

 

Thanks and Regards 

Sarthak

Community Alums
Not applicable

Hi @yardenKrispel ,

I tried to replicate this in my PDI and it works for me 

Please check Image for reference 

Scheduled Job

SarthakKashya2_0-1713943780303.png

 

Event

SarthakKashya2_1-1713943812922.png

Notification 

SarthakKashya2_2-1713943845619.png

SarthakKashya2_4-1713943874794.png

SarthakKashya2_5-1713943899699.png

When I click on execute now on Scheduled job it shows in Emails log

 

SarthakKashya2_6-1713943948112.png

 

Please mark my answer correct and helpful if this works for you

 

Thanks and Regards 

Sarthak

 

 

 

 

 

 

 

 

 

thanks! its work!