API form submission from AEM | Community
Skip to main content
Katja_Keesom
Community Manager
September 20, 2023
Solved

API form submission from AEM

  • September 20, 2023
  • 1 reply
  • 1853 views

I hope the collective experience on the community can help identify the root cause for something we are running in to.

I have a customer who, for reasons that are not relevant here, has two production Marketo instances and for some of the webpages on their website forms need to be submitted to both instances. The chosen solution is to have the form from the first instance visible on the page and on success do an API submission to the second instance using the submit form endpoint: https://developers.marketo.com/rest-api/lead-database/leads/#submit_form

From the test AEM environment (without any webserver and / or cloud machinery in front of it) both submissions work as expected, but on the live domain the API request seemingly is not reaching AEM from the dispatcher.

 

Has anyone seen this issue before?

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

Nope, the OnSubmit has the dispatcher call upon the backend to execute the API call. Looks like the webteam found a configuration error in the dispatcher which should be fixed tomorrow. Fingers crossed.

1 reply

SanfordWhiteman
New Participant
September 20, 2023

I have a customer who, for reasons that are not relevant here, has two production Marketo instances and for some of the webpages on their website forms need to be submitted to both instances. The chosen solution is to have the form from the first instance visible on the page and on success do an API submission to the second instance using the submit form endpoint: https://developers.marketo.com/rest-api/lead-database/leads/#submit_form


You don’t actually mean “on success” as in the JS onSuccess event, right? That is, you’re not hitting the REST API from the browser.

Katja_Keesom
Katja_KeesomAuthorAccepted solution
Community Manager
September 21, 2023

Nope, the OnSubmit has the dispatcher call upon the backend to execute the API call. Looks like the webteam found a configuration error in the dispatcher which should be fixed tomorrow. Fingers crossed.