How does the va_support variable being calculated by sn_sc.CatalogConversationHelper

stanalix
Kilo Contributor

Hi,

I am trying to reuse the Request Catalog item block in our environment but with no luck. Its always returning va_support: false

I have read the ServiceNow product documentations for this topic blocks and even made sure the service catalog properties is setup correctly.

But even if I am select the simplest catalog item where there is no client script and it only have 4 variables, the va_support still keeps on returning as false

Has anybody had success in using this topic block in their instance? I cant find any documentation about - CatalogConversationHelper and how it works. But any guidance will be greatly appreciated. Thanks

3 REPLIES 3

Raj64
Tera Guru

I have the same problem and never found a solution.

Muralidharan BS
Mega Sage
Mega Sage

Hi Stanalix,

Run this in the background script passing the sysid of the catalog item, you will find if the catalog item is supported by VA or not. 

var conversational = new sn_sc.CatalogConversationHelper().hasVASupport('060f3afa3731300054b6a3549dbe5d3e');// sysid of catalog item 

gs.info(conversational)

 

Only below are supported by VA

  • These catalog item types are not supported:
    • Content Item
    • Order Guide
    • Wizard Launcher
    • Standard Change Template
  • Only the following variables are supported:
    • Attachment
    • Date
    • Date/Time
    • Email
    • IP Address
    • Label
    • Lookup Multiple Choice (without pricing implications and advanced reference qualifier)
    • Lookup Select Box (without pricing implications and advanced reference qualifier)
    • Multiple Choice (without pricing implications)
    • Multi Line Text
    • Numeric Scale (without pricing implications)
    • Reference (without pricing implications and advanced reference qualifier)
      Note: Reference type variable that corresponds to a table that has more than 80 records are not supported.
    • Requested For (without pricing implications and advanced reference qualifier)
    • Select Box (without pricing implications)
    • Single Line Text
    • URL
    • Wide Single Line Text
    • Yes / No
    • Container variables
  • The following variable attributes are supported:
    • ref_ac_order_by
    • allowed_extensions
    • max_file_size
  • A catalog item can have a variable set.

 

Docs about submitting catalog item - https://docs.servicenow.com/bundle/sandiego-servicenow-platform/page/product/service-catalog-management/concept/request-topic-blocks-va.html

There is also a question limit defined in this property - glide.sc.conversational.request.question.limit

 

Thanks

This was just the answer I'm looking for, thank you!