Script not working workflow context nudge

servicenow_devo
Tera Expert

How can we nudge flow using script

Thankyou
4 REPLIES 4

Brad Bowman
Kilo Patron
Kilo Patron

When you say the script is stuck - what is it doing or not doing?  Are you getting the expected InfoMessage? If you add a log inside the if block, have you confirmed that the record is found? You are not changing the context record, so the gr.update() line is not needed or desired.

Hi Brad,

The script actually nudges a workflow context based on kb block workflow. The script in line 7 is not working as expected. No logs are giving. Is querying type document id  fields possible?

Thankyou

You can use a document ID field in an addQuery if you also specify the table, so try adding another line before line 7

gr.addQuery('table', 'kb_knowledge');

 

I tried adding same query but still the code is not working. @Brad Bowman  

Thankyou