" /> Save the email from GAD - Genesys CTI User Forum

Author Topic: Save the email from GAD  (Read 2195 times)

Offline vma

  • Sr. Member
  • ****
  • Posts: 255
  • Karma: 0
Save the email from GAD
« on: June 09, 2010, 09:56:05 AM »
Advertisement
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

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: Save the email from GAD
« Reply #1 on: June 10, 2010, 09:37:14 AM »
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.

[code]<%@ 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>
[/code]

Offline vma

  • Sr. Member
  • ****
  • Posts: 255
  • Karma: 0
Re: Save the email from GAD
« Reply #2 on: June 10, 2010, 12:42:35 PM »
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 :) where that code is suposed to go :)

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: Save the email from GAD
« Reply #3 on: June 10, 2010, 01:00:55 PM »
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.