The Zurich release has arrived! Interested in new features and functionalities? Click here for more

email script

abhisek
Tera Contributor

I have a select box variable for example 'partner' in my catalog item, which is user details as question choices(text is the name and value is the email id).

I have to send notification to the partner field value which was selected during raising the request. For example partner field value is 'ABC'(email is 'abc@exmpl.com') along with the email body.

How can I implement this using email script and notification?

 

Can anyone please help me out, it is very urgent.

 

12 REPLIES 12

abhisek
Tera Contributor

Hi @-O- 

Thanks for your reply and time.

Script is working fine as in the system log getting that user's email id.

email script also attached properly in the notification body. User is available and has notification enabled. Email sending properties also fine. Tried with different users from that select box variable but still no one is receiving the email notification. But in the system notification in the who will receive tab(Users/Groups in fields) I have selected assignment group. That assignment group is getting notification.

Abdul Fathah
Mega Guru

Hello @abhisek ,

 

Hope you are doing well. 

 

I can assume that you have variable called "Product" which reference to User table. In Notification, you have to send an email to user which selected in Product field. 

 

If my understanding is correct, In email script, please take the value of Product (Current.variables.product - you will get sys-id of the user record) and query to user table and get the email address to send it. 

 

Thanks,
Abdul Fathah
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.

Hi @Abdul Fathah 

Thanks for your reply.

product is a select box variable where lebel is the name of the user and value is the email id of the user.