Counter in Flow Designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2023 06:49 AM
Hello!
I'm looking for a way to do that:
I am creating a new flow, on flow designer, that will check if there are greater than 2 SCTASKs in a hour. If so, will create an incident.
What is the best way to do that? Now can I put a counter on my flow?
Please, can you help me?
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2023 08:59 AM
Amit,
Can you explain the advantage of using the external-facing ServiceNow http API to query the task table, versus using GlideRecord? It seems to me GlideRecord is simpler and likely faster in this context, and doesn't require setting up credentials.
I can see the advantage of putting a schedule on the flow: it means you do not have to check if an incident has already been created. But if the incident can be identified somehow, such as through its short description, then the process can respond to the creation of a task by checking if an incident has been created recently (I described this above). Because the process runs each time a task is inserted, it will always know how many have been set up in the last hour. In this scenario the schedule is not needed, and only slows the process down.