Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

HRSD - service activities - "fulfillment " - task templates restriction

gowtham1610
Tera Contributor

I need to create seven task templates and two HR criteria for a "Termination Request" record producer in HR Service, with the fulfillment type set to "Service Activities." The task templates should be restricted based on HR criteria, where four tasks are visible under one criterion and the remaining three under another




1 ACCEPTED SOLUTION

Sandeep Rajput
Tera Patron
Tera Patron

@gowtham1610 

Did you get a chance to explore sn_hr_core.hr_Criteria script include. It is an OOTB script include which contains method to evaluate HR Criteria.

You can use evaluateById : function(criteriaId, userId, simulation, caseId, useCache) to evaluate a criteria for a user. A similar question was also posted by another user here https://www.servicenow.com/community/hrsd-forum/hrsd-service-activities-task-templates-restriction/t...

View solution in original post

1 REPLY 1

Sandeep Rajput
Tera Patron
Tera Patron

@gowtham1610 

Did you get a chance to explore sn_hr_core.hr_Criteria script include. It is an OOTB script include which contains method to evaluate HR Criteria.

You can use evaluateById : function(criteriaId, userId, simulation, caseId, useCache) to evaluate a criteria for a user. A similar question was also posted by another user here https://www.servicenow.com/community/hrsd-forum/hrsd-service-activities-task-templates-restriction/t...