Lifecycle activity with in the activity set triggered if the Subject Person is Manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2023 02:38 PM
Hi There,
I have an activity with in the activity set that needs to be triggered if the Subject Person is manager. Is it possible to achieve this?
Any help is appreciated.
- Labels:
-
Human Resources Service Delivery
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2023 02:53 AM
Hi @Simran321 ,
If this activity in ask is part of a activity set, then it will anyways will get triggered along with other activities part of the activity set.
You cannot have different trigger conditions within the activity set for different activities.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2023 09:40 PM
Hi @Simran321 ,
Are you saying that the activity will trigger if the Subject Person is a manager (has direct reports)?
If you have a group that contains all managers or a role specific to managers, you could set up user criteria based on this and create an Audience for managers. There is an OOTB (may be demo data) User Criteria for Manager that contains the following script:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2023 12:05 AM
I agree with your thought here! My only comment would be, I would suggest to use "GlideAggregate" (https://developer.servicenow.com/blog.do?p=/post/glideaggregate/) instead to get familiar with functions that are meant to "count" - but I do know that GlideRecord is not "wrong" here, but I would argue that GlideAggregate is more accurate here.