flow designer testing prevent cancel approval
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
When testing a flow, how do I prevent approvals from being canceled?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
what's your actual testing scenario?
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
hi @lcbell44 ,
When you test a Flow from Flow Designer, the actions are actually executed on the instance, so approval records can be created during the test.For testing, I would use a non-production/PDI instance and a dedicated test record/user rather than trying to prevent the approval engine from behaving normally.
If this helps, please mark it as Helpful and accept the solution.
Regards,
Tejas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
15 hours ago
I was able to get around it by adding a debug flow variable and putting the elements I wanted to be tested in an if debug branch.
