- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2018 02:15 PM
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
Action
When I test the flow (on an sc_task that meets the trigger condition) I get the below error.
I don't what is wrong and how to address the issue.
Any help would be appreciated
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2018 12:41 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2018 07:23 PM
Have tried changing the trigger condition table name from task to sc_task?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2018 04:18 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2018 07:53 PM
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:
Catalog Item: Add the flow from the form layout and select the flow designer which you want to trigger
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2018 02:18 PM
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.