- 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-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-10-2023 10:08 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-11-2023 12:49 AM
@Pavani131 you need to activate the flow first then only the create code snippet option would get enabled.
Also, did you activate this flow earlier or it has never been activated in the first place. If it has never been activated before than activate it first, check if it triggers on the record creation or not and if it doesn't then only apply the business rule solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-11-2023 01:00 AM - edited ā04-24-2023 08:12 AM
Thanks @Sandeep Rajput , the flow was activated before also.Now I just changed the when to run the flow to Run on current and extended tables. And the issue is resolved now.
I have tried the above solution also-it worked as expected.
Thank you!!