Thanks for your support, it´s clear to me. :)
Global Networks Solutions S.A.
Original Message:
Sent: 06-29-2023 11:59
From: Jody Nabuurs
Subject: Send email to multiple destinations from agentless data action
Hi Deyvid,
Yes, sorry about this. The API documentation is wrong and needs to be updated (I've put in the request).
We are considering this feature enhancement. Can you kindly vote on the Idea, here: https://genesyscloud.ideas.aha.io/ideas/CEEMAIL-I-11
Thanks, and sorry about the confusion.
Jody
------------------------------
Jody Nabuurs
Genesys - Employees
Original Message:
Sent: 06-27-2023 09:10
From: Deyvid Cortes
Subject: Send email to multiple destinations from agentless data action
Hello Guys!
In the definition of the parameters of the POST /api/v2/conversations/emails/agentless endpoint, toAddresses is an array. However, whenever I try to send an email to multiple addresses, it returns a 400 error:
Email address list is too large. Only a maximum of 1 is allowed
Why is it defined as an array if only 1 is allowed? Is it planned to change this in the future?
This`s the Body of request:
{
"senderType": "Outbound",
"fromAddress": {
"email": "test@cc.test.com",
"name": "test"
},
"toAddresses": [{"email":"agent1@outlook.com"},{"email":"agent2@gmail.com"}],
"subject": "prueba",
"textBody": "hola"
}
When the Data Action Execute send the following message:
"message": "REST call for action execute failed. Message: Request to backend service failed. Response from web service: {\"message\":\"Email address list is too large. Only a maximum of 1 is allowed\",\"code\":\"bad.request\",\"status\":400,\"contextId\":\"5edb4432-6769-4a54-bd24-560f72cb1fd7\",\"details\":[],\"errors\":[]} [80e5ff6f-99be-48f3-abb5-261793c6ae9e]"
#ArchitectureandDesign
#Integrations
#Outbound
------------------------------
Deyvid Cortes
Global Networks Solutions S.A.
------------------------------