- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2024 02:21 AM
Hi all,
I have a flow that I set up in the flow designer. At the final stage of this flow, I need to check if the user has added an attachment to the RITM. And only after the user has attached a file (any file), then the flow ends. So, I need a procedure to check until the user attaches a file.
I tried Look up the attachment and search with the sys_id, to see if there is an attachment. But then the flow does not wait for the user to attach a file but immediately stops because there is no attachment.
Any ideas?
Thank you!
Best,
Firat
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2024 05:00 AM
you can use loop using Do Until and check if file is present or not
Once present the loop will end on its own
Do the following until flow logic
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
01-11-2024 07:23 AM
Hi again,
As is usual the case, what i miss was that check box:
If you check that then a Do until with a timer works just fine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2024 04:57 AM
I checked it the problem with that is that you do a look up on the attachment but, of course, the user has not yet put any attachment, so look up does not return anything.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2024 05:00 AM
you can use loop using Do Until and check if file is present or not
Once present the loop will end on its own
Do the following until flow logic
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
01-11-2024 05:32 AM
Hi Ankur,
Good suggestion indeed. I have already tried that but the problem is the following.
Then I will check the status of the look-up if it is success or not.
The problem is that the look up returns nothing and we have an error.
And the flow stops.
It does not wait for that attachment to pop up.
Any suggestions?
Thanks!
Firat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2024 07:23 AM
Hi again,
As is usual the case, what i miss was that check box:
If you check that then a Do until with a timer works just fine.