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

Bulk push returns Marketo API ids #13

Open
jbs321 opened this issue Oct 11, 2017 · 1 comment
Open

Bulk push returns Marketo API ids #13

jbs321 opened this issue Oct 11, 2017 · 1 comment

Comments

@jbs321
Copy link

jbs321 commented Oct 11, 2017

Hi,

I'm using POST: /rest/v1/leads.json with
$lookupField = email
$action = createOrUpdate
data:

[
{
  email: [email protected],
  firstName: Jacob
},
{
  email: [email protected],
  firstName: Dani
}
]

and here is an example of my response:

{
"requestId": "1ddd0#1fd5f0ssss64d",
"result": [
{
"id": 514,
"status": "updated"
},
{
"status": "skipped",
"reasons": [
{
"code": "1007",
"message": "Multiple lead match lookup criteria"
}
]
}
],
"success": true
}

is there a way to add the email to the response results using marketo api?

@everlyd
Copy link
Collaborator

everlyd commented Oct 16, 2017

Jacob,

No, there is no way to modify the contents of the response. If the status comes back as "created" or "updated", you could lookup the email by passing "id" to Get Lead by Id endpoint.

-Dave

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