
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2023 09:24 AM
Hi SN experts,
I have recently started using Flows and Flow designer on catalog items and I'm observing some serious disadvantages (I hope I'm wrong!)
Here's the simple scenario I'm configuring:
When the Catalog Item is submitted, I want the manager of the 'Requested for' to approve before triggering 2 tasks. If the manager rejects, then we set RITM state to Closed Incomplete immediately.
I have an Ask for Approval Action to handle this. It works great if the Requested For does have a manager. But if there is no manager, then the flow simply freezes.
Do I have to add a 'if condition' to see if manager is present then Ask for Approval and follow the regular path else set RITM as auto-approved and then trigger tasks? (This leads to duplication of entire steps, have you observed this before?)
P.S. I like how in a Workflow none of these problems exist. If there is no approver, the activity simply auto-approves. and there is no need to duplicate entire steps - Multiple paths can intuitively converge into a single path!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2023 11:50 AM
hi @AnirudhKumar
one solution could be to implement an if condition like you suggested : something like
if requested for manager exist
then ask for approval
if approval rejected
then end flow
generate task
then after outside the if condition you generate the task, this way if the manager exist and approve, the task is generated, if the manager doesn't exist the task are still generated (never get in the if condition) and if the manager rejects the flow end before the task are generated.
if this help you can mark as solved
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2023 11:50 AM
hi @AnirudhKumar
one solution could be to implement an if condition like you suggested : something like
if requested for manager exist
then ask for approval
if approval rejected
then end flow
generate task
then after outside the if condition you generate the task, this way if the manager exist and approve, the task is generated, if the manager doesn't exist the task are still generated (never get in the if condition) and if the manager rejects the flow end before the task are generated.
if this help you can mark as solved