Custom button on Service Portal to send email
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-09-2020 08:08 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-09-2020 08:31 AM
Use below solution
Regards,
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-09-2020 08:55 AM
thanks..very similar but not quite the use case i am looking at. I do not need any windows to pop up, i just need an email to send once the button is clicked.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-09-2020 09:03 AM
im trying to make this as simple as possible..A user clicks the button and an email sends to the assignment group, i do not need any windows to pop up. No user intervention is necessary before sending. Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-09-2020 09:41 AM
This will be easy configuration to configure button in your service portal widget.
In server script of your widget, you can create event and this event will be captured by email notification.
Below article will give you code configure button and you can reuse this code to create your own widget and update server script of widget to generate event.
https://serviceportal.io/create-custom-action-buttons-service-portal/
Regards,
Sachin