Auto close the Hr case
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2025 07:23 PM
Once the user fills the questions in the record producer. If users selects “yes” for one of the question, then I want to auto close the case.
we are creating record in hr core case
Note:
im unable to find the variables which user responded on backend.
so how to validate and close it
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2025 08:03 PM
Hi @Mounika280 ,
What you can do is :
var ch = g_form.getValue('variable_name');
if(ch=='true'){
Add your code here to move the case/state to close;
}
Sandeep Dutta
Please mark the answer correct & Helpful, if i could help you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2025 08:21 PM
where will user select Yes? during record producer submission or on HR case record?
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
06-16-2025 08:35 PM
@Ankur Bawiskar While submitting record producer , the user will fill yes.
once hr case is created, need to close the state on hr case
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2025 09:16 PM
if user submits case and selects Yes why would you close the HR case
No one will work on that case?
what's the point in creating a case and closing as soon as it's created?
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