- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-10-2023 07:29 AM - edited ā04-24-2023 08:14 AM
Hi,
I have created a flow which works as--whenever a case is created for a service the tasks should trigger and should be added on that Case automatically when the trigger conditions are met.
The tasks are not getting added to the Case unless a 'test' is run on the flow.
Any suggestions on how to solve this issue.
Thanks in advance.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-10-2023 09:23 AM
Ah, I faced the similar scenario in the past when the flow was not triggering on creation of a record. This look like an issue from ServiceNow when the flow doesn't trigger on the record creation on its own.
In order to fix this, I simply created a business rule which triggered the flow for me.
To trigger the flow via business rule follow the following steps.
1. First open the flow in the flow designer which you would like to trigger via the code. Open the more tab and click on Create code snippet
2. This will take you to a page where the code to call the flow is shown.
This is how you should configure your business rule.
Here is how you should configure the script field.
Once done, try creating a new case of the Direct Deposit Inquiry Service and this time the flow will get triggered for sure.
Hope this helps.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-11-2023 02:15 AM
Glad it helped š