- 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
05-06-2016 08:30 AM
var request = current.request.getRefRecord();
request.short_description = current.variables.Request_title;
request.update();
This is the script I am using to try and copy the Request title into the Request Short Description field. I get the following error:
"Error running business rule, exception: The undefined value has no properties."
What am I missing?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2016 02:25 AM
Looks okay, assuming the variable name is correct, what table are you running the business rule on? Is it set to run after and on update as well?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2019 08:06 PM
it's works in 2019 \0/