Thank you for your feedback.
Form temporarily unavailable. Please try again or contact to submit your comments.
  • Madrid
  • London
  • Kingston
  • Jakarta
  • Istanbul
  • Helsinki
  • Geneva
  • Store

Access and assignment

Log in to subscribe to topics and get notified when content changes.

Access and assignment

The Catalog Item Variables are available and assigned to a specific Catalog Task activity (thereby to a specific task) using the slushbucket entry of a catalog task.

The user working the task enters the values of the variables.

To access the values of a Catalog Item Variable inside a script:
var gr  = current ; // or create and query a new GlideRecord 
var itemVariable  = gr. variables [ variableName  ] ; //access the service catalog variable identified by the variable name. 
var itemValue  = itemVariable. getGlideObject ( ). getValue ( ) ; 
var itemQuestion  = itemVariable. getGlideObject ( ). getQuestion ( ). getLabel ( ) ;