0

When I use the messageDefinitionSends/.../sendBatch API call, that I learned about on Stack Exchange, to send email to multiple recipients, email is only sent to the last recipient on the list and only data for the last recipient is logged into the data extension. I know that this API call is not supported by Marketing Cloud, but does anyone know if this call actually works? Any suggestions would be appreciated. Thanks.

Here is the API call and the payload I used:

POST https://EndPoint.rest.marketingcloudapis.com/messaging/v1/messageDefinitionSends/key:{KeyValue}/sendBatch

[{
"To": {
    "Address": "[email protected]",
    "SubscriberKey": "[email protected]",
      "ContactAttributes": {
        "SubscriberAttributes": {
            "BorrowerFirstName": "John"
       }
      }
    },
"To": {
    "Address": "[email protected]",
    "SubscriberKey": "[email protected]",
      "ContactAttributes": {
        "SubscriberAttributes": {
            "BorrowerFirstName": "Jim"
       }
      }
    },
    "Options": {
    "RequestType": "ASYNC"
}
}]
3
  • 2
    That is a deprecated approach. The current and officially supported way is via Transactional Messaging
    – identigral
    Commented Apr 13, 2021 at 16:41
  • I don't think this is a deprecated approach. Transactional messaging still does not have feature parity with regular TSDs. While using sendBatch has issues (sendlog, exclusion scripts, etc.), using multiple calls to the send endpoint is still the best, IMO. Commented Apr 13, 2021 at 22:18
  • Thank you, both. I structured arrays in the payload two different ways, and each one worked half way - only one email sent. Our only choice may be to use multiple API calls with the 'send' endpoint, which is how we typically do it.
    – jbianca
    Commented Apr 16, 2021 at 20:22

0

You must log in to answer this question.

Browse other questions tagged .