
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2013 08:11 AM
Whenever I create Service Catalog items, they are defaulting to the Opened by person unless I include a script that sets the requested for person. The script works great and I am able to get the requested for person to match the requested for variable, but we are wanting to be able to use the cloning function for catalog items. Whenever I use the cloning function with this script in place, the first task is correct, but the clones are the same requested for person as the initial task. If I don't have the script in place, the first task has the opened by person, but the clones have the correct people.
I have tried using a business rule that i found on this community page Requsted for field is defaulting for Service Requests?, but it still does the same as my script within my workflow.
Hopefully that made sense.
Any help would be greatly appreciated!!
Allison
Solved! Go to Solution.
- Labels:
-
Service Catalog

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2014 11:11 AM
Sure. I created the following business rule:
table: sc_req_item
when: before
Insert: true
condition: current.variables.requested_for != undefined
if (gs.getSession().isInteractive()){
var user = current.variables.requested_for.getDisplayValue();
current.request.requested_for.setDisplayValue(user);
}
Hope this helps!
A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2013 09:04 AM
Client Script if you cannot get the BR to run isInteractive(), it may see the CLONE as running 'interactive'.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2013 09:10 AM
The isInteractive() on the BR worked!!!! Thank you so much for your help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2014 09:41 AM
Can i ask what the script is that you got the cloning to work for this. I tried in the past and was never able to get cloning to work though our IT would love it since it helps on new hires. TIA

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2014 11:11 AM
Sure. I created the following business rule:
table: sc_req_item
when: before
Insert: true
condition: current.variables.requested_for != undefined
if (gs.getSession().isInteractive()){
var user = current.variables.requested_for.getDisplayValue();
current.request.requested_for.setDisplayValue(user);
}
Hope this helps!
A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2014 11:37 AM
Perfect it worked great for us.. Thanks so much..