Flow Designer - My first flow, getting error running test.

SeanM1
Tera Guru

Hi all,

I'm in the process of creating my first flow in Flow Designer and I'm getting an error when I run the test, which I need some help with.

 

Scenario:

Trigger

If catalog item is Non-Standard Service Request1 &

task Short description is Awaiting Implementation &

Catalog Task Does this require architectual review is true

Action 

Create new catalog task

Trigger

find_real_file.png

Action

find_real_file.png

When I test the flow (on an sc_task that meets the trigger condition) I get the below error.

find_real_file.png

 

I don't what is wrong and how to address the issue.

 

Any help would be appreciated

 

 

1 ACCEPTED SOLUTION

Technically if you want to use Flow designer in catalog item, the associated workflow will not trigger that means no tasks created from workflow. You have to design the entire process using flow designer what should happen once user request that item (very similar to workflow process).

Here are few possibilities to achieve the requirement.

1. Modify the workflow:  Add proper conditions as you mentioned in the description after catalog task and link to a new activity to create new catalog task.

(OR)

2. Flow Designer: Replicate the above mentioned workflow as flow designer, if you want to use flow designer instead of workflow.

(OR)

3. Create a BR on sc_task table, which should trigger only when it meets your conditions and then in the script area write logic to create new sc_task.

View solution in original post

6 REPLIES 6

Raju Koyagura
Tera Guru

Have tried changing the trigger condition table name from task to sc_task?

sc_task table not listed in the table drop down list for me to select, so I was forced to use the task tabe and do walk from there.

 

Thanks for taking the time read and respond to my question.

Got you. I did some research and realized that there is a special plugin (which can be activated through HI) to run on catalog items. May be that is the reason why they purposely restricted sc_task and sc_req_item table from the trigger condition table list.

Once we activate that plugin "Service Catalog" option enabled and we no need to select any conditions because we can configure this flow in the catalog items, how we select the relevant workflow for each item.

Flow Designer:

find_real_file.png

 

Catalog Item: Add the flow from the form layout and select the flow designer which you want to trigger

find_real_file.png

 

Ref: https://docs.servicenow.com/bundle/london-servicenow-platform/page/administer/flow-designer/task/create-sc-flow.html

 

If you don't want to activate that plugin may be try to use the task_type=sc_task and test. It may not work but give a try

 

Hope this helps, please mark correct if it answer your question.

I do have that plug in on, but my issue with it, is that I can't set the trigger I want.

 

I need to add more conditions to the trigger other than 'Service Catalog'

 

I need -  if  catalog is a and category is b and item is c and sc_task is d and when question on sc_task is and answer e

then create new sc_task.

 

I can't find a way to this when the trigger is Service Catalog.