Skip to main content
milis60034177
Level 2
March 6, 2018
Question

Looking for REST api

  • March 6, 2018
  • 2 replies
  • 2857 views

Hi,

  I am looking for Marketo REST api for validation purpose using automation. We are submitting the form with email address and I need to validate the email address with some SFDC Campaign data in marketo. So somehow if I can use REST api and get data in JSON  format, would be good.

thanks,

Mili

2 replies

Level 8
March 6, 2018

Hi Mili,

By validate, do you mean make sure that it's in an acceptable format (name@non-genericdomain.com) or are you actually referencing an SFDC campaign in particular?

milis60034177
Level 2
March 6, 2018

So here are the steps:

1. Fill form from web page.

2. Go to marketo and make sure data is stored in SFDC custom field. So I am trying to automate this process. Validate means data is being captured in marketo with correct values. Hope this helps.

Level 8
March 6, 2018

It sounds like you're hoping that the field value matches one of the possible picklist values in SFDC so that it syncs correctly. Correct me if I'm misunderstanding.

If that's the case, why not just use a picklist in the form as well, and match the SFDC values? Here's a quick overview of how to do just that:

Add a Country Picklist to your Form

This overview references the Country field, but you can do this with any field.

SanfordWhiteman
Level 10
March 6, 2018

You cannot call the REST API directly from the browser, period. And even if you passed such a request through an intermediate server, you'd be creating a DoS vulnerability.

What is it exactly that you're trying to do? Figure out whether a lead is in a Marketo program already? Why does this need to be known on the browser side?