Run a schedule job to trigger an UI action button on form

Avee90
Tera Contributor

Hello 

          I've a UI action button on form having User credentials and a Token field(custom table) whenever I click the button, the user credentials validate on the client's sever and get a token in Token field on the form. This is working fine but the token expires every 60 mins so I have to manually click the UI Button to get the token. 
So, is there any way to trigger or schedule the UI Action button. I've created a schedule job using script which I've used in UI action and made changes but not working. So, can anyone help me to trigger UI Action functionality for every 60 mins. I'm attaching the script the I've used in UI Action. 
Highly appreciate if anyone helps me.

Thanks
Naveen Nimmala

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Avee90 

run the same script; ensure you query the correct record in the table and replace the current object with your GlideRecord object

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

5 REPLIES 5

@Avee90 

that you need to debug further.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader