Hide Day3 activity set if there is no activities in it for user on esc portal

Raju303
Tera Contributor

Hello,

 

Hide the "Activity Sets" under the "Tasks/To Dos" tab in the ESC Portal based on the following conditions:

  1. If the user has no activities under the "Day3 Activity Set," it should not be visible to them.
  2. If the user has activities under the "Day3 Activity Set," it should be visible to them

This is only for one HR service.

 

Please let me know how can we achieve this, Appreciate your help in advance.

 

@Sandeep Rajput  @Community Alums  @Susan Britt 

 

2 REPLIES 2

Community Alums
Not applicable

Hi @Raju303,

OOTB this will be a challenge, you need to customize to meet your requirement.

Please make changes to OOTB Script include hr_PortalUtil.

 

Sandeep Rajput
Tera Patron
Tera Patron

@Raju303 Although the logic lies within the hr_PortalUtil which is an OOTB script include and changing it may prevent it from upgrading during the future release. Another way to address this requirement could be a query business rule which can be created on sn_hr_le_activity_set_context. Inside this query BR you can check if the logged in user is not system or admin then you can apply the filter to hide the activity set.