Hi- we are doing an integration with a third-party system that can issue GET, but not POST commands. Therefore, we were hoping that we could construct URL-like submission to submit a Marketo form, but are getting 400 errors.
Here is the URL submission we are attempting:
https://app-sjh.marketo.com/index.php/leadCapture/save2/munchkinId=000-XXX-000&formId=1171&formVId=1...ure/save2/munchkinId=000-XXX-000&formId=1171&formVId=1171&email=a@a.com
Error:
{"error":true,"errorCode":400,"message":"Form error, no subscription ID"}
We have triple-checked the munchkinId and confirmed the form has been approved (and tested it from a landing page).
We looked around for resources, and found http://developers.marketo.com/blog/make-a-marketo-form-submission-in-the-background/ and http://developers.marketo.com/blog/server-side-form-post/, plus other discussions, but couldn't find pointers to the answer. Any ideas here?
Solved! Go to Solution.
...&method=_POST
You're also being reckless with case-sensitivity. Don't do that.
Thanks Sanford! That was the problem.
This is the final working URL (with reckless case-sensitivity - we'll fix that, but I wanted to point out that I needed to use "?" rather than "/"):
Of course, otherwise /munchkinId is part of the pathname. Standard URL format.
We do have one side effect: when submitting the URL from a browser, even though the info is posted into Marketo correctly, we do not get the actual form being triggered.
The URL sumbission returns:
{"formId":null,"followUpUrl":null,"aliId":30188731}
In Marketo, we can see the Lead created, but not actual form that was used to add the info to Marketo:
And the Activity Log
Contrast that with a normal POST (where Detailed Itinerary is simply another approved Form name):
Any idea what this could be?
Thanks,
Adriano
formid
is all lowercase.