- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2019 05:48 PM
Hey guys! I am working on a workflow and getting close to be completed. I have a catalog item with about 8 variables. I need to send a notification based on response to one of the variables. If variables.type_of_request = CIP then send notification to specific email address. I added the notification type to workflow but cant figure out how to only send based on the response to that variable. Any help is appreciated!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2019 08:02 AM
function ifScript() {
if(current.variables.type_of_request == 'CIP' ){
return 'yes';
}
return 'no';
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2019 09:17 AM
Hi Russell,
What type of variables is this type of request? Is it a select box?
Can you please check if the variable name is type_of_request? Also please check once that CIP has name CIP with uppercase letters.
I hope you have written the code in an if condition and the yes is connecting to the notification (see below screenshot where my if block yes is connected to an event.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2019 12:00 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2019 11:29 PM
Glad to know it works now. Can you please mark my answer as correct/ helpful if it helped.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2019 06:54 AM