How to trigger script action from scheduled job using gs.eventQueueScheduled() [delay is 10 min]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 06:13 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 06:43 AM - edited 02-06-2024 06:43 AM
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