SOLVED

Webform submission via URL "GET"

Go to solution
Anonymous
Not applicable

Webform submission via URL "GET"

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?

1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: Webform submission via URL "GET"

6 REPLIES 6
SanfordWhiteman
Level 10 - Community Moderator

Re: Webform submission via URL "GET"

SanfordWhiteman
Level 10 - Community Moderator

Re: Webform submission via URL "GET"

You're also being reckless with case-sensitivity.  Don't do that.

Anonymous
Not applicable

Re: Webform submission via URL "GET"

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 "/"):

https://app-sjh.marketo.com/index.php/leadCapture/save2?munchkinId=000-AAA-000&formId=1171&formVid=1...​​

SanfordWhiteman
Level 10 - Community Moderator

Re: Webform submission via URL "GET"

Of course, otherwise /munchkinId is part of the pathname.  Standard URL format.

Anonymous
Not applicable

Re: Webform submission via URL "GET"

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:

pastedImage_1.png

And the Activity Log

pastedImage_4.png

Contrast that with a normal POST (where Detailed Itinerary is simply another approved Form name):

pastedImage_5.png

Any idea what this could be? 

Thanks,

Adriano

SanfordWhiteman
Level 10 - Community Moderator

Re: Webform submission via URL "GET"

formid

is all lowercase.