How to add a variable info in the incident form ?

Sudesh
Tera Contributor

I have created a catalog item, Created the workflow  & using Create Task activity i have created incident Record.

i want to display the Variable information in the incident Record ,how can i get this info?

 

BY Record Producer we can create incident Task & can display variable information on the Created Task

But in my Requriement ,before Creating an Task it need to get an Approval & send an notification to the user

1 ACCEPTED SOLUTION

newhand
Mega Sage

HI@Sudesh 

refer this.

 

var now_GR  = current ; // or create and query a new GlideRecord
var itemVariable  = now_GR. variables [ variableName  ] ; //access the service catalog variable identified by the variable name.
var itemVariableValue  = itemVariable. getValue ( ) ;
var itemVariableName  = itemVariable. getName ( ) ;
var itemQuestion  = itemVariable. getQuestion ( ); //All GlideappQuestion API are accessible on itemQuestion
Please mark my answer as correct and helpful based on Impact.

View solution in original post

1 REPLY 1

newhand
Mega Sage

HI@Sudesh 

refer this.

 

var now_GR  = current ; // or create and query a new GlideRecord
var itemVariable  = now_GR. variables [ variableName  ] ; //access the service catalog variable identified by the variable name.
var itemVariableValue  = itemVariable. getValue ( ) ;
var itemVariableName  = itemVariable. getName ( ) ;
var itemQuestion  = itemVariable. getQuestion ( ); //All GlideappQuestion API are accessible on itemQuestion
Please mark my answer as correct and helpful based on Impact.