Script not working workflow context nudge
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2024 09:21 AM - edited 07-24-2024 12:02 PM
How can we nudge flow using script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2024 10:40 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2024 10:54 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2024 11:02 AM
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');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2024 01:37 AM
I tried adding same query but still the code is not working. @Brad Bowman