logo

NJP

Adding a Record Producer or Catalog Item button to the list view in Agent Workspace List Action

Import · Dec 10, 2021 · article

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 usingimage
  2. You’ll also need to grab the system ID of the Record Producer you want to add to the Workspaceimage
  3. Next you will navigate to the List Action menu for the Workspaceimage
  4. Click “Create New”image
  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.image
  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.image
  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":""}},"parent_table":"{{parentTable}}","additional_data":{"query":"{{query}}"}}
    5. Description = Added for additional context
  11. Your form should look like this.image
  12. Click Submit
  13. You’ll be directed back to the Action record you created earlierimage
  14. Save the Action
  15. After saving the You will see the new list action on the workspace list you specified.image

image

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

Labels:

image

View original source

https://www.servicenow.com/community/hrsd-articles/adding-a-record-producer-or-catalog-item-button-to-the-list-view/ta-p/2312392