Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support fro Marketo Forms #73

Open
asherccohen opened this issue Jan 27, 2020 · 2 comments
Open

Support fro Marketo Forms #73

asherccohen opened this issue Jan 27, 2020 · 2 comments

Comments

@asherccohen
Copy link

Forms are not included in the package or did I miss something?

@johnny-the-coder
Copy link

The lib is great but I also miss the method: POST /rest/v1/leads/submitForm.json.
https://experienceleague.adobe.com/en/docs/marketo-developer/marketo/rest/lead-database/leads#submit-form

Could you add support for this method?

@johnny-the-coder
Copy link

johnny-the-coder commented Oct 9, 2024

The following code needs to be added in the file lib/api/lead.js:

submitForm: function (formId, leads) {
  var path = util.createPath('leads', 'submitForm.json');
  var data = { formId: formId, input: leads };
  log.error("Marketo.submitFrom(): " + JSON.stringify(data));
  return this._connection.post(path, data);
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants