How to trigger UI Action from Scheduled job script

sainath3
Mega Guru

Hi Team,

 

Below is the Requirement:

 

Auto trigger the UI Action button twice in a day, before business hours & after business hours.

Can anyone tell me how to trigger UI Action button from Scheduled job script?

 

 

10 REPLIES 10

Peter Bodelier
Giga Sage

Hi @sainath3,

 

UI Actions are meant to be triggered manually.
You would have to duplicate the code in the UI Action in your scheduled job.


Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.

Hello @sainath3 ,

UI Actions are typically used for user interactions on forms and lists, and may not be the best way to perform server-side operations like a scheduled job. It might be better to encapsulate the logic you need in a Script Include, which can be called both from a UI Action and a Scheduled Job.

If my response helps you resolve your issue. Kindly mark it as helpful & correct. It will be helpful to future readers! 

Thanks and Regards,
Abhijeet Pawar.

Thanks, Abhijeet for the response & Best practice.

 

but in UI Action we do have both Client script & Server Script, now am planning to manage in Script includes.

Thanks, Peter for the response.

 

but in UI Action we do have both Client script & Server Script, now am planning to manage in Script includes.