- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2019 07:21 AM
I was able to get this sorted. Had to dot walk into the name field, also changed up the code a bit. Working now.
var un = current.variable_pool.requested_for.user_name;
workflow.scratchpad.username = un;
var reg = current.variables.requested_for.location.u_region.name;
var loc = current.variables.requested_for.location.name;
if (reg == '721') {
workflow.scratchpad.group = "Inventory Search Midwest - BO";
}
if (reg == '725') {
workflow.scratchpad.group = "Inventory Search West - BO";
}
if (reg == '810') {
workflow.scratchpad.group = "Inventory Search TCI - BO";
}
if (reg == '723') {
workflow.scratchpad.group = "Inventory Search Southwest - BO";
}
if (reg == '724') {
workflow.scratchpad.group = "Inventory Search Southeast - BO";
}
if (reg == '722') {
workflow.scratchpad.group = "Inventory Search Northeast - BO";
}
if (loc == '880') {
workflow.scratchpad.group = "Inventory Search Catalog - BO";
}