How to call custom "Query AD" workflow action only from the server script

ramesh_r
Mega Sage

Hi All,

 

I want to check is possible to trigger the custom workflow action "Query AD"  from the server script by passing the input (Ex : Script include).

ramesh_r_0-1702267747839.png

 

 

Thanks

 

1 ACCEPTED SOLUTION

yes after your AD qurey runs, you can use the script activity to do your validation and you can always use the g_scratchpad variables all across the workflow to pass and store the values.

also the AD Qurey must already have output transaction which returns the output which you can store it in g_scratchpad variable. 


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect

View solution in original post

6 REPLIES 6

palanikumar
Mega Sage

Hi,

Please refer this URL. You can configure it by using "Go to Pre-Processing (Advanced)"

https://docs.servicenow.com/bundle/vancouver-servicenow-platform/page/administer/orchestration-activ...

Thank you,
Palani

Sohail Khilji
Kilo Patron
Kilo Patron

Hi @ramesh_r,

 

I belive the below approch must work.

 

you can place this custom action in a new workflow between the start and end activities and call the workflow from server side script. if its dynamic varaible input then you can use  g_scratchpad to pass input to workflow.

 

i hope it helps...

 


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect

@Sohail Khilji 

 

Thank you, but after i triggered the workflow from the script then I wanted to get the output of the action how to get that .?

May i know what kind of output your expecting ? is it a success code or any other ? and whats your action after you get the output ?

 

please elobrate...

 


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect