Custom button on Service Portal to send email

Bruler1230
Tera Expert

Hello,

I have created a custom button in a widget on the service portal. When that button is clicked, i need to send an email to the assignemnt group that the ticket is currently assigned to. Has anyone done this or have any examples how i can generate an email when the button is clicked? I have created a client email template to use, but not quite sure how to initiate the email. I beleive it has something to do with the email client. Any help is appreciated.

Thanks

14 REPLIES 14

Thanks...are you able to give any examples of this? Or links to examples? Having some trouble wrapping my head around how to implement this in the client and server script in the widget.

i have the button created in the html, but i need help with the client and server script, please.

I have attached XML of this widget to achieve your requirement.

If you see widget server code, i am generating event in event queue which should be handled by your email notification.

You need to configure event and this should be handled by email notification.

 

Regards,

Sachin

Thanks for all the help on this...i have configured the event and a notification. But when i click the button on service portal, nothing happens...Is there something i need to add in the client script to trigger the event?

Actually, I think i figured it out...One other question...do you know how i would go about stopping the user from being able to click this button if a certain amount of time hasnt passed? for example, A user can only click this button to send email every seven days, if it hasnt been seven days, then the button would be grayed out or invisible. Any ideas?