Retrigger Rest Message Api after 1 hour with flow designer if failure occures
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2024 10:01 PM
Hi Team,
I need a help with my flow deisgner, below is my requirement , can you please provide your suggestions.
Requirement : Through flowdeisgner I need to trigger the rest api if non 200 https status comes it should re-trigger the flow designer every 1 hour until it successfully connects and processes the job, we are passing custom date.
as an input we are passing IDs and custom date from customer_account table and it takes 5 IDs at time and processed into Rest api "get call" if any of the Id falls due to server error or authentication error 500 it should send those IDs with the custom date and retrigger after 1 hour(need to perform the error handling through flow desdigner and send the notification to the customer).
is that possible through flow designer?
How it is running currently : we are running schedule job which calls script include where we are passing custom date and IDs from customer_account table and in other function calling rest api but here we were facing the issue since we were not aware when the script failed/stopped due to non http status and we need to run the job manually to retrigger those IDs, we want the solution to retrigger those IDs with input date where it failed it should not take those IDs which are already processed into rest message and returned 200.
could anyone please help me to achieve this via flow designer.
Thanks and Regards,
Nisha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2024 10:13 PM
you can create a table to store if it got success or failure.
If it fails then have a schedule job which runs every 10/15/30mins based on your retry time and trigger the flow again
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2024 10:18 PM
Hi Ankur,
Thanks for your reply, can we achieve it through flow designer ?
the error handlining part and notification.
Thanks and Regards,
Nisha