
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2016 11:45 AM
I have a workflow (it sits and watches for records that fit a "wait for condition") and in one of my If activities, I want it to call a variable from the record producer that this workflow is designed to work off of.
answer = ifScript();
function ifScript() {
if (producer.location_booked == 'Yes') {
return 'yes';
}
return 'no';
}
location_booked is my yes/no variable inside the record producer. It doesn't seem to want to pull it. Any thoughts?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2016 11:59 AM
variables that are not mapped to fields are accessed as current.variables.<variablename>
answer = ifScript();
function ifScript() {
if (current.variables.location_booked == 'Yes') {
return 'yes';
}
return 'no';
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2016 11:59 AM
variables that are not mapped to fields are accessed as current.variables.<variablename>
answer = ifScript();
function ifScript() {
if (current.variables.location_booked == 'Yes') {
return 'yes';
}
return 'no';
}