- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2014 04:16 PM
Hi SNC,
I use a catalog item which has a couple of variables for Short Description/Description. I managed to get them copied into the RITM, but I need a way to copy them into the Request (REQ) which is initially created after submission, because the first notification is actually based off the sc_request table and I need to provide users with the variable content in this first notification.
What's the easiest way to do this?
Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-04-2014 12:10 AM
In my case where I wanted the Short Description field copied from variable into form, the final solution was an AFTER business rule on Requested Item table with the following script:
var request =current.request.getRefRecord();
request.short_description = current.variables.short_description;
Note: the name of my variable is short_description as well.
So that worked perfectly.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2014 06:28 PM
I would write a mail script in the notification that goes out from the request. You could query the requested item tables and the items and their variables and print them into you notification.
If you want to add the variables of the items into the notes of the request, you could do it in an after insert business rule on the item that copies the variables into the request.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2014 01:28 AM
use may use getRefRecord in a after insert BR on requested item table and use something like this....
var request =current.request.getRefRecord();
request.anyField = current.variables.variableName;
request.update();
this may not be the most efficient way to do and would do the job for you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2014 07:22 AM
Kalaiarasan P this is not working exactly right. It does copy the fields, but the problem is for some reason it ends up in creating duplicate REQs.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2014 07:27 AM
have you used a before rule or a after rule? should not create duplicate request if you are using the after rule....