keithl22
ServiceNow Employee
ServiceNow Employee

This will be a short, simple, and hopefully useful article on how to create a shortcut to a record producer or catalog item on the Agent workspace so that fulfillers can access it quickly for frequently used requests. For this demo I will walk through adding the OOTB “Report Outage” Catalog Item to the list view on the HR Agent Workspace so HR Agents can quickly report an outage on one of their applications.

 

  1. Start by making sure you are in the right scope for whichever workspace you are usingfind_real_file.png
  2. You’ll also need to grab the system ID of the Record Producer you want to add to the Workspacefind_real_file.png
  3. Next you will navigate to the List Action menu for the Workspacefind_real_file.png
  4. Click “Create New”find_real_file.png
  5. Fill out the following:
    1. Action Label – This will be the display value for the button that will be created
    2. Action Name - internal name for the List Action
    3. Implemented As – Set this to Client Action
    4. Button Type – Primary
    5. Workspace – Set it to the Workspace where you want to add the button
    6. Table – Any workspace list views for this table will have this button available.
  6. Here is what your form should look like at this point.find_real_file.png
  7. Next we need to add a Client Action
  8. Click the look up icon in the “Specify client action” field
  9. Create a New Action Payload Definition when the new window opens.find_real_file.png
  10. Fill out as follows:
    1. Key = ITEM_SELECTED
    2. Label = Same as Action Label from 5a. (Mainly for recordkeeping and easier maintenance, you can really call it anything)
    3. Applicable To = List
    4. Payload = {"table":"sc_cat_item","row":{"sys_id":{"value":"<sys_id of Record Producer>"}},"parent_table":"{{parentTable}}","additional_data":{"query":"{{query}}"}}
    5. Description = Added for additional context
  11. Your form should look like this.find_real_file.png
  12. Click Submit
  13. You’ll be directed back to the Action record you created earlierfind_real_file.png
  14. Save the Action
  15. After saving the You will see the new list action on the workspace list you specified.find_real_file.png

 find_real_file.png

 

That’s all there is to it! Hope this was useful.

Comments
Vaishnavi Mamad
Tera Explorer

This is not working, the button is not showing up when followed the same steps, any help appreciated

learn nv
Tera Contributor

Hi keithl22

I followed the suggested steps, but when I clicked on the button, record producer is not getting opened.

When I check the console, I could see this error 'the resource was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally'. Used  Client Action 'Create Catalog Item' is OOB one.

 

Any suggestions?

list button.JPG

CharlesGriff
Mega Sage

This is not working in Yokohama is this solution still relevant on the new versions?

Version history
Last update:
‎12-10-2021 09:04 AM
Updated by: