- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2023 01:06 PM
Is there a way to Skip approval if opened by or requested for title contains director or president in flow designer?
In the workflows, we have a IF conditions and we added a script but I cannot figure it out in flow designer.
How can this be achieved in flow designers?
Solved! Go to Solution.
- Labels:
-
Architect
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2024 05:23 PM
I was able to achieve it via the subflow.
https://www.youtube.com/watch?v=nqKAQg9hZUI Helped to figure out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2023 04:16 AM
Hi @GB14 ,
You can use the IF in Flow Logic to check this.
You can dot walk to the title field use contains operator like below.
Trigger->Requested Item->Requested For -> Title ::: CONTAINS ::: Director
OR
Trigger->Requested Item->Requested For -> Title ::: CONTAINS ::: president
Refer the following doc for quick reference.
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2023 04:00 PM
Thanks @AnveshKumar M
I had the dotwalk info but since there are too many titles so I believe Script will be easier to manage or create.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2023 06:01 AM
Hi @GB14 ,
Hope you are doing great.
Create a new Flow or open an existing one where you want to incorporate the skipping of approval based on the title. Locate point where you want to add condition to skip the approval.
Add a new Decision element to the Flow Designer canvas.
Configure the Decision element and try using below reference code:
gs.getUser().getTitle() == 'Director' || gs.getUser().getTitle() == 'President'
Connect the Decision element to the appropriate path, depending on the outcome of the condition.
- If the condition is true, connect to activity skipping the approval .
- If the condition is false, connect it to the path that leads to the approval task.
Regards,
Riya Verma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2023 07:17 AM
@Riya Verma Are you able to share a screenshot on how to perform the above steps?
I wasn't able to complete it, unfortunately.