Send email notification to requested_for user

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-22-2017 02:26 PM
I'm working in creating a catalog task. Inside of my workflow, I would like to add an email notification to the user if they are not able to fulfill the request. I'm not sure how to implement this.
I used a notification inside of my task but It doesn't work. Is there a way I can test that the requested_for has received an email.
- Labels:
-
Service Catalog
-
Workflow

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-22-2017 05:15 PM
It it working. I am able to see the email in the outbox. However, what I am trying to do is the following:
- The members of the fulfillment group will determine if this is a REQUEST that has to go to a different vendor. I created a variable called vmo_required, the type is yes or no. So if the fulfillment group selects "Yes", we will send a email notification to the user saying that the product is not available through a vendor(vendor notification). But if they click "No" it means that we do not send any vendor notification. That's why in my workflow I have an if statement that checks that...apparently it is not working.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-22-2017 05:33 PM
So I modified the if statement to this
if(current.variables.vmo_required == "Yes"){
//we want to send email
return 'yes';
}
else {
//do nothing
return 'no';
}
My workflow gets stuck in that if statement. I'm getting an error.. not sure why??

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-22-2017 06:00 PM
Try
if(current.variables.vmo_required == "yes" || current.variables.vmo_required == "Yes"){
//we want to send email
answer = 'yes';
}
else {
//do nothing
answer = 'no';
}
Please mark this response as correct or helpful if it assisted you with your question.