Get right filter for question (reference) on collect employee input hr task (survey)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi ServiceNow Community,
I have encountered some sort of dead end with a requirement I am facing at the moment. Some context first:
There is an Onboarding Service (Lifecycle Event) that the HR Team is using. During the whole process the manager of the Department selected on the form, will receive an HR Task of type "Collect Employee Input", so a survey, consisting of one question "Which user can be referenced for this new hire?"
Here, the manager needs to select a user, from the selected department on the form. Currently the reference is not filtered.
Now the dead end I am in:
Customer wants the survey to be refined to make it a little bit easier for the managers filling out the form as well as cutting potential for wrong data. It should only display users that are members of the selected department.
Now as far as I have seen, there is not really a way to use a reference qualifier or dynamic filter. The only we did manage was, to filter the users by using the condition builder e.g . Sys Id | is one of | javascript: new ScriptInclude().filterFunction(gs.getUserId);
As we were doing this inside the condition builder, obviously objects like "current", "parent", etc. don't exist and we dont save the entered department anywhere, the data is just used during the onboarding process. So I am kind of at the end with ideas.