Workflow for a Record producer based on Demand Table

Magali Legaspi
Tera Contributor

Hi all!

 

I'm having some trouble here. I need to create a workflow for a record producer that works with the Demand table. 

 

MagaliLegaspi_0-1668190976482.png

 

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:

 

MagaliLegaspi_1-1668192355474.png

 

and this for the conditions:

 

MagaliLegaspi_2-1668192390186.png

 

I don't know what to do next.

 

I've never done this before so any help will be very much appreciated.

1 ACCEPTED SOLUTION

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"

View solution in original post

5 REPLIES 5

Mike_R
Kilo Patron
Kilo Patron

I would highly suggest learning and using flow designer instead.

 

You can create a simple flow such as 

Mike_R_0-1668198661566.png

 


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

https://nowlearning.servicenow.com/lxp?id=learning_path_prev&path_id=193b8e6c87acf450ed3b74c9cebb355...

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.

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?

Yes, on the Demand script there's this:

 

current.assignment_group="9fcaab501bf6bc184f11c9d1604bcb84"; and I also have the name of the assignment group.

 

MagaliLegaspi_0-1668449395040.png

 

So far I created this Flow, do you think it'll be ok and it'll run like this?