Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Send email notification to requested_for user

SNnewbie2
Tera Expert

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.

Capture24.PNG

Capture25.PNG

32 REPLIES 32

SNnewbie2
Tera Expert

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.


Capture37.PNG



Capture38.PNG


SNnewbie2
Tera Expert

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??


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.