Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
Modifying an Approval Record Display on Process Approval Topic for a Virtual Agent - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • Modifying an Approval Record Display on Process Approval Topic for a Virtual Agent
KB0744542

Modifying an Approval Record Display on Process Approval Topic for a Virtual Agent


1045 Views Last updated : Apr 7, 2024 public Copy Permalink
KB Summary by Now Assist

Issue

Description

 By default, the approval record displays predefined fields from the following tables:

  • change_request
  • sc_request
  • kb_knowledge

 If you want to modify the fields or add fields, you will need to edit the script which defines the way the card is displayed. 

Procedure

 

To modify the Approval Record display:

  1. Select ITSN Virtual Agent Conversation application under Developer section from system setting gear on the top right corner of the page
  2. Navigate from the left panel to Collaboration > Virtual Agent > Designer
  3. Click Process Approval on the Topic page
  4. Click Edit topic flow button
  5. Click Display Task icon on the flow chat
  6. Click 
  7. The code for the record display starts at line 22 with  if (source_table == 'change_request')
  8. Modify the exiting fields or add new tables and fields 

For example:

For the table  kb_knowledge, by default, the following code defines the display format:

if (source_table == 'kb_knowledge')
fieldList = ['kb_knowledge_base', 'kb_category', 'short_description', 'valid_to','author','source'];

You can change the order of the fields or add more fields by reordering or adding field names to the fieldList code line. ( fieldList = ['kb_knowledge_base', 'kb_category', 'short_description', 'valid_to','author','source'];)

Note:
If you want to add a display a field from a table that is not defined in the script, for example the fields quantity and price from sc_req_item table, you can add the code into the script as follows:

else if (source_table == 'sc_req_item') {
fieldList = [''quantity', 'price']; 
}

 

Applicable Versions

London with ITSN Virtual Agent Conversation plugin installed on the instance

 


The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.