I want to filter out the assets(reference) after my sctask was closed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2025 07:47 AM
Hi Experts
Once my SCTASK has closed I want to filter out the sctask one of the variable(reference).
Example : I have SCTASK variable (Asset, Type is reference) Once my SCTASK closed. I want filter out that variable with conditions. [substatus is disposed]. How to achieve this task with after business rule.
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2025 07:57 AM
but once task is closed why will agent enter anything in that variable?
why agent will update?
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-28-2025 08:00 AM
Hi @dhineshkumar ,
Add more details like this Asset ( reference type ) pointing to which table and add some screen shot .. and what is meaning of filter out.
-Thanks,
AshishKM
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2025 08:04 AM
@AshishKM
table : sc_task
Once close the sc_task I want to see the asset variable records only state is disposed. on sctask variables tab(asset)
Thank You.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2025 08:20 AM
will this variable be filled from front end or during catalog form submission
so when task is closed, agent will select from the reference variable?
at that time you want to show only records with State=Disposed?
If yes then do this in variable advanced reference qualifier and if user is not selecting it during catalog form submission then this should work -> give correct state value
javascript: var query = ''; if(current.active.toString == 'false') query = 'stateIN3'; query;
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