- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2022 12:11 PM
Hi all!
I'm having some trouble here. I need to create a workflow for a record producer that works with the Demand table.
This workflow needs to trigger an approval and notification when the demand is moved to the 'Approve' state, and then have an specific assignment group. I'm making this:
and this for the conditions:
I don't know what to do next.
I've never done this before so any help will be very much appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2022 10:13 AM
That should be good for a trigger. The only thing I would change is rather than Assignment Group.sys_id, just use Assignment Group and select the group that corresponds with that sys_id. One you have the trigger condition sorted, you can add the action to "Ask for Approval"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2022 12:32 PM
I would highly suggest learning and using flow designer instead.
You can create a simple flow such as
There's so many flow designer videos on YouTube to teach you
https://www.youtube.com/results?search_query=servicenow+flow+designer
And the flow designer essentials training on Now Learning is great too
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2022 12:41 PM
Hello!
Thanks for the information. Yes, Flow designer is an option too. But where I'm getting lost is which exact condition should I put besides the "State changes to approval" so I don't mess the whole Demand table up, since this Workflow should only be used when this particular Record Producer "Create a New Demand" gets to the Approval state.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2022 12:49 PM
Is the record producer setting any unique attributes/fields that we can use to distinguish it from the other demands? E.g. is it setting a field to a particular value that we can later use in our query?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2022 10:10 AM
Yes, on the Demand script there's this:
current.assignment_group="9fcaab501bf6bc184f11c9d1604bcb84"; and I also have the name of the assignment group.
So far I created this Flow, do you think it'll be ok and it'll run like this?