Is it possible to start a workflow from a portal widget?

g_eggidio
Kilo Contributor
Hi guys, there's a way to start a workflow from a portal widget? 
In particular, I'm using a custom button and a workflow should start when the button is pressed.
Thanks, Giovanni
1 ACCEPTED SOLUTION

Gurpreet07
Mega Sage

Yes it should be possible.

1. Create script include and trigger workflow using startFlow method.

https://docs.servicenow.com/bundle/kingston-application-development/page/app-store/dev_portal/API_reference/Workflow/concept/c_Workflow_api.html

 

2. Call script include using GlideAjax from client controller or directly call the script include from server code.

View solution in original post

1 REPLY 1

Gurpreet07
Mega Sage

Yes it should be possible.

1. Create script include and trigger workflow using startFlow method.

https://docs.servicenow.com/bundle/kingston-application-development/page/app-store/dev_portal/API_reference/Workflow/concept/c_Workflow_api.html

 

2. Call script include using GlideAjax from client controller or directly call the script include from server code.