How to set Values of Request state and stage on workflow based on catalog task

Atik
Tera Contributor

Hi All,

I am working on a workflow, as per the configuration of workflow if first catalog task state becomes closed complete then another task will be created.

So there are mainly 2 catalog tasks are going to be created, there is a requirement for me is when both the catalog task is closed completed then State of Request should be Closed complete and If one task state is closed complete and another one is closed incomplete then state Request state should be closed incomplete and Stage should be Closed cancelled.

 

Can anyone help me with this?

Thanks in Advance,

Atik.

1 ACCEPTED SOLUTION

Hi @Atik 

 

Okh...Thanks...!!

 

So you can modify your workflow like below : 

 

VishalBirajdar_1-1698407237476.png

 

 

Make sure  "wait for completion" is true

VishalBirajdar_2-1698407322588.png

 

To add condition in Catalog task activity - 

In related link of Catalog task activity - 

Click on "condition"

VishalBirajdar_3-1698407394144.png

 

& add two new condition's

Closed complete:  activity.result == '3';

Closed incomplete : activity.result == '4';     & save it.

VishalBirajdar_4-1698407477578.png

 

Same for other task also.

 

Hope this helps...!!!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Vishal Birajdar
ServiceNow Developer

I know one thing, and that is that I know nothing.
- Socrates

View solution in original post

3 REPLIES 3

Vishal Birajdar
Giga Sage

Hi @Atik 

 

Can you share a screenshot of workflow if possible..??

 

 

Vishal Birajdar
ServiceNow Developer

I know one thing, and that is that I know nothing.
- Socrates

Atik_0-1698406277251.png

 

Hi @Atik 

 

Okh...Thanks...!!

 

So you can modify your workflow like below : 

 

VishalBirajdar_1-1698407237476.png

 

 

Make sure  "wait for completion" is true

VishalBirajdar_2-1698407322588.png

 

To add condition in Catalog task activity - 

In related link of Catalog task activity - 

Click on "condition"

VishalBirajdar_3-1698407394144.png

 

& add two new condition's

Closed complete:  activity.result == '3';

Closed incomplete : activity.result == '4';     & save it.

VishalBirajdar_4-1698407477578.png

 

Same for other task also.

 

Hope this helps...!!!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Vishal Birajdar
ServiceNow Developer

I know one thing, and that is that I know nothing.
- Socrates