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

tanumoy
Tera Guru

do you have variable editor in the Requested Item form?



If yes, please give a screenshot of that portion.


Sorry i dont understand, the variables are what make the order guide, the RITM form is just a normal form which i have added the u_leaver_date field to?


Variable Editor shows the end user input (what user has given while raising the order guide) in the Requested Item form.Capture.JPG


Happy to provide a screenshot if you can explain how i can view that?...



The order guide is made up of several items but the 'leaverdate' variable is on the order guide and not the items..



As a result the REQ has several RITM's attached to it, with each RITM containing different information captured by it's unique variables...



I want the u_leaver_date field on each RITM to be populated...



Thanks


Paul