HRSD Activity

Shubham Tripath
Giga Contributor

Is there any way to trigger an activity based on the fact that the Subject Person is part of a SNOW Group.

1 REPLY 1

Anil Lande
Kilo Patron

Hi,

you can use trigger type as 'advanced' and use below script:

(function shouldActivitySetTrigger(parentCase /* GlideRecord for parent case */,
							  hrTriggerUtil /* hr_TriggerUtil script include instance */) {
			var isMember = gs.getuser().getUserByID(parentCase.subject_person.toString()).isMemberOf('HR Onboarding');

	return isMember;   

})(parentCase, hrTriggerUtil);
Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande