The Zurich release has arrived! Interested in new features and functionalities? Click here for more

How to allow agents the creation of Response Templates for all HR lists?

Pascal4
Tera Contributor

Hi community,

I am facing the challenge of allowing a specific group of service fulfillers to create response templates for all HR lists. 

Currently, the group of service fulfillers is only allowed to create a new Response Template for the "sn_hr_er_case" table (see screenshot).

find_real_file.png

I would be pleased if someone has an idea of what needs to be done to get all the HR lists into the table drop-down.

Thanks a mill in advance for your time!

Best,

Pascal

8 REPLIES 8

Musab Rasheed
Tera Sage
Tera Sage

Hello,

Please explore roles related to response templates

https://docs.servicenow.com/en-US/bundle/sandiego-employee-service-management/page/product/human-resources/concept/hr-templated-snippets.html

Also, Make sure agent has hr case writer and hr basic role and see if they can see other HR tables.

Regards

Please hit like and mark my response as correct if that helps
Regards,
Musab

Community Alums
Not applicable

Hi Pascal,

Can you try changing the Application scope and create the response template again.

Then check if you are still able to see just "sn_hr_er_case" table .

Mark my answer correct & Helpful, if Applicable.

Thanks,
Sandeep

Pascal4
Tera Contributor

Hi guys,

thanks for the quick response!

@Musab Rasheed The agent I impersonate and use for this to check had already the hr case writer and hr basic role. I added sn_templated_snip.template_snippet_writer to his account, but no change.

@Sandeep Dutta I can see all tables, but I have HR Admin rights.

Best,

Pascal

Community Alums
Not applicable

Hi @Pascal4,

 

I just ran into this issue today as well and here's how I fixed it. Hopefully this will help others as well.

 

  1. Go to this script include: TaskTableList
    • /nav_to.do?uri=sys_script_include.do?sys_id=56b9de830b32320036e62c7885673ae1
  2. Rename it something like: TaskTableList_v2
  3. Insert and Stay
  4. Update this line of code currently located at line 46
    • Change: if( !gs.hasRole('sn_hr_core.manager') )

    • To this: if( !gs.hasRole('sn_hr_core.case_writer') )
  5. Go to the Response Template -> Table field -> Dictionary Entry
    • /nav_to.do?uri=sys_dictionary.do?sys_id=771789dfdb7700109850d054d4961986%26sysparm_view=advanced
  6. You should see an attributes string box with these attributes spelled out:
    • allow_public=true,base_start=true,includeNone=true,show_table_names_on_label=true,tableChoicesScript=TaskTableList
    • Update that last value to read:
      • tableChoicesScript=TaskTableList_v2 (or whatever you renamed it to)
  7. Save it
  8. Done!

You can now impersonate an HR agent and they should have access to all the HR Tables for Response Template creation. If they don't see the tables, confirm they have the role: sn_hr_core.case_writer.