Save the email from GAD

Hello again,
I have this problem and is very important for me! Can you save an email that was received in GAD as a file containing all the attachments? Like a html or eml file? I really need a button like this or something similar so the agents can attach it to their ticketing system.
Anybody faced this problem before?

Kind regards,
Mihai

Hi Mihai,

It’s possible to implement such functionality using supported customization. I’ve already made it in the past - displaying the mime message “source” code on custom tab (see sample code below).

R.

<%@ page language="java" buffer="none" contentType="text/html; charset=utf-8" %>
<%@ page import="com.genesyslab.ail.*" %>
<%@ page import="javax.mail.*" %>
<%@ page import="java.util.*" %>
<%
AilFactory custom_AilFactory = com.genesyslab.ail.AilLoader.getAilFactory();
Interaction custom_Interaction = custom_AilFactory.getInteraction( (String)request.getParameter("idInteraction"));
%>

<html>
<head>
<title>Test page</title>
<meta name="Refresh" content="10">
</head>
<body>
<%
if (custom_Interaction == Interaction.Type.EMAILIN) {
	InteractionMailIn custom_EmailIn = (InteractionMailIn) custom_Interaction;
	MimeMessage custom_MimeMessage = custom_EmailIn.getMimeMessage();
	ByteArrayInputStream custom_Stream = (ByteArrayInputStream)custom_MimeMessage.getContentStream();
%>
	<%=custom_Stream.toString()%>
<%
} else {
%>
<p>Not EMAILIN</p>
<%
}

%>
</body>
</html>

it´s very good news that saving is possible. Thank you very much!
the bad news is I have never customized GAD before and I have no ideea where to start looking :slight_smile: where that code is suposed to go :slight_smile:

2 Likes

Mihai,

The easiest way would be if you follow the steps described in Agent Desktop Customization / Creating a Tab Frame chapter of Genesys Desktop 7.6 Developer’s Guide.

R.

1 Like