Genesys CTI User Forum > Genesys-related Development

[SOLVED] Use of MediaEmailCreateNewOutboundEmail

<< < (2/2)

petitspirou:
any idea?

It is amazing that the API do not expose such a parameter

cavagnaro:
What is initial content?

Enviado de meu E6633 usando Tapatalk

petitspirou:
Subject and Body

Here is the scenario:

- Agent works on his CRM
- In a use case, he clicks on a "create email" button with parameters (email address, subject, message of the email)
- WDE must open a new outbound email window with subject and body already initialized
I tried to fill the param "InitialEmail" but it did nothing

Here is the code of the email creation:

                    IAgent agent = container.Resolve<IAgent>();
                    IDictionary<string, object> parameters = new Dictionary<string, object>();

                    KeyValueCollection kvc = new KeyValueCollection();             
                    kvc.Add("To", destinataire);
                    kvc.Add("Target", destinataire);
                    kvc.Add("Target Type", "TypeDestination");
                    parameters.Add("CommandParameter", agent.FirstMediaEmail);
                    parameters.Add("UserData", kvc);
                    commandManager.GetChainOfCommandByName("MediaEmailCreateNewOutboundEmail").Execute(parameters);

A new outbound email window is created with correct "To"

petitspirou:
Found the problem

I use agent signature and this override the email content I give to the MediaEmailCreateNewOutboundEmail command
Apparently, it is a "replace" function and not an "add" one....

keys used are:
"Subject", "StructuredText" and "FromAddress"

Navigation

[0] Message Index

[*] Previous page

Go to full version