Expressions tab

The Expressions tab contains information about the JavaScript expressions contained within each of the Service Catalog connectors. It contains an initialization expression that needs to be processed before adding the record.

This is an example of an initialization expression for the Create New Request connector.

if (filename($L.file)="request") then (category in $L.file=jscall("svcCatInterface.getXMLFieldValue", interface.info in $L.item, "category"))
if (filename($L.file)="request") then (subcategory in $L.file=jscall("svcCatInterface.getXMLFieldValue", interface.info in $L.item, "subcategory"))
if (filename($L.file)="request") then (bill.to.dept in $L.file=jscall("svcCatInterface.getXMLFieldValue", interface.info in $L.item, "department"))
if (filename($L.file)="request") then (company in $L.file=jscall("svcCatInterface.getXMLFieldValue", interface.info in $L.item, "company"))
if (filename($L.file)="request") then (model in $L.file=jscall("svcCatInterface.getXMLFieldValue", interface.info in $L.item, "requestModel"))
if (filename($L.file)="request") then (modelname in $L.file=jscall("svcCatInterface.getXMLFieldValue", interface.info in $L.item, "requestModelName"))
if (filename($L.file)="request") then (severity in $L.file=jscall("svcCatInterface.getXMLFieldValue", interface.info in $L.item, "severity"))
if (filename($L.file)="request") then (impact in $L.file=jscall("svcCatInterface.getXMLFieldValue", interface.info in $L.item, "impact"))

if (filename($L.file)="request") then (assigned.group in $L.file=jscall("svcCatInterface.getXMLFieldValue", interface.info in $L.item, "assigngroup"))

if (bundle in $L.cartItem=true and bundle.options in $L.cartItem~=NULL and bundle.options in $L.cartItem~="<bundle></bundle>") then (svc.options in $L.file=bundle.options in $L.cartItem)
if ((bundle in $L.cartItem=false or bundle in $L.cartItem=NULL) and options in $L.cartItem~=NULL and options in $L.cartItem~="</form>") then (svc.options in $L.file=options in $L.cartItem)