REST api and Campaign Trigger | Community
Skip to main content
April 27, 2018
Question

REST api and Campaign Trigger

  • April 27, 2018
  • 2 replies
  • 1673 views

I am trying to use the request campaign trigger to send some emails. When we send a full html body we are not getting any errors, we are getting a 200 response, and no email is delivered. If we send a test string it works fine. Any ideas?

This turned out to be missed escaped quotes in the long form causing the fail. Thanks for your help.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

SanfordWhiteman
Level 10
April 27, 2018

Have to see an actual failing and passing email body. (Pls use the Advanced Editor's syntax highlighter, too!)

Jay_Jiang
Level 10
April 30, 2018

Are you able to paste your request body?

Regarding the 200 OK response, I think Marketo will send that all the time, you need to debug by looking in the response body for "success":true or "success":false. I use Postman for my REST API testing to see this:

{

    "requestId": "6b99#1631472ac50",

    "success": false,

    "errors": [

        {

            "code": "609",

            "message": "Invalid JSON. Illegal unquoted character ((CTRL-CHAR, code 13)): has to be escaped using backslash to be included in string value"

        }

    ]

}