Help with copying variables from an order guide into a field on the RITM

paul_roberts
Kilo Expert

Hi All,

Is it possible to copy values from a variable on an order guide to a matching field on a RITM?

I have a variable called 'leaverdate' on an order guide and i would like this date value to be populated into the 'u_leaver_date' field on the RITM form.

I've found elsewhere in the forum that this should be possible via a before business rule, but i dont seem to be able to get it to work, what am i doing wrong?

Table=Requested Item [sc_req_item]

Active = true

Advanced=true

When=before

Insert=true

Condition=blank

script=current.u_leaver_date = current.variables.leaverdate;

The reason for this is that we are still using Eureka and there is a requirement to be able to report on this captured date, and also see the date in work queues.   I appreciate it is possible to report on variables from Fuji+.

Thanks

Paul

1 ACCEPTED SOLUTION

You need to create a variable on the catalog item with the same name and check the cascade variables on the order guide. This will push the variable value into the catalog item. Go thru section 6 in this link


http://wiki.servicenow.com/index.php?title=Service_Catalog_Order_Guides#Using_Variable_Sets_When_Cas...


View solution in original post

10 REPLIES 10

Did you get a solution to this. I have a similar sort of issue


Nope - the person helping dissapeared.   Please Click the 'I have the same question' link in the initial post to promote it!  



Cheers


You need to create a variable on the catalog item with the same name and check the cascade variables on the order guide. This will push the variable value into the catalog item. Go thru section 6 in this link


http://wiki.servicenow.com/index.php?title=Service_Catalog_Order_Guides#Using_Variable_Sets_When_Cas...


Perfect - this was the missing link, i had not got the variable on each item contained on the order guide.   My Business rule now works a treat!   Thank You!


siva_dirisala
ServiceNow Employee
ServiceNow Employee

You might be looking for this feature "Item Variable Assignment" introduced in Helsinki. Essentially in addition to using the variables at the Order Guide level to decide the items to include, you can also specify default value or copy from a variable captured at the Order guide into the included item variable. All configuration driven and no code!