How to trigger script action from scheduled job using gs.eventQueueScheduled() [delay is 10 min]

Obito
Tera Expert

Hi all,

How to trigger script action from scheduled job using gs.eventQueueScheduled() where delay is 10 min. We have scheduled job which runs daily so 10 min after triggering the schedule job we  want to create one record which we are doing through script action. What object I should passed in gs.eventQueueScheduled(); as we can not pass current.

 

Thanks

5 REPLIES 5

SunilKumar_P
Giga Sage

Hi @Obito, You can try passing any string (lets say table name) or leave it null.

 

gs.eventQueueScheduled(eventName, "tableName" , "parameter1", "parameter2", scheduledTime);

 

Regards,

Sunil