- 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:21 AM
So in this case, you need to set some trigger if Attachment added after Req submitted only the flow work.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2024 02:27 AM
Hi @mfhaciahmetoglu ,
You need to create a new field maybe a checkbox which will be updated via a BR whenever the user attaches something to the record. Apply wait for condition on the field if it is true then flow should proceed , if not it should wait
Regards,
Piyush Sain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2024 04:49 AM
Hi thanks for the reply.
Let's imagine that I created such a BR on sys_attachment table. How will I configure it for that precise RITM request?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2024 06:02 AM
You have to check in the condition that table name is sc_req_item. If table name is correct then you can check in script that the target record is the one you need by glide record and checking catalog item and other parameters
Regards,
Piyush Sain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2024 04:52 AM