Some Fields not Returning via API Calls

Anonymous
Not applicable

Some Fields not Returning via API Calls

When making Marketo API calls to pull fields, some fields do not return.  In the examples below, "Source" does not return, and as a comparison, "Lead Source Last" indeed does return.

What is preventing "Source" from returning as a field in our API calls, or what is the best way to further troubleshoot?

The "Source" field does not return when we poll the Marketo API for fields:

does not show up.png

To compare, the "Lead Source Last" field indeed does return when we poll the Marketo API for fields:

does show up.png

4 REPLIES 4
Steven_Vanderb3
Marketo Employee

Re: Some Fields not Returning via API Calls

Hi Ish,

Which API are you using, REST or SOAP?  Have you ensured you are using the correct corresponding API name that is found when you export fields from Field Management?  Are you receiving an error when you attempt to pull the value of that field?

Anonymous
Not applicable

Re: Some Fields not Returning via API Calls

SOAP call to fetch following objects :

1. LEAD_RECORD

2. OPPORTUNITY

3. ACTIVITY_RECORD

4. OPPORTUNITY_PERSON_RULE

Below is the call to fetch above mentioned entities

@WebMethod(
        action = "http://www.marketo.com/mktows/describeMObject"
    )
    @WebResult(
        name = "successDescribeMObject",
        targetNamespace = "http://www.marketo.com/mktows/",
        partName = "successDescribeMObject"
    )
    SuccessDescribeMObject describeMObject(@WebParam(
    name = "paramsDescribeMObject",
    targetNamespace = "http://www.marketo.com/mktows/",
    partName = "paramsDescribeMObject"
) ParamsDescribeMObject var1, @WebParam(
    name = "AuthenticationHeader",
    targetNamespace = "http://www.marketo.com/mktows/",
    header = true,
    partName = "authentication"
) AuthenticationHeader var2);

leadSource - We get this field as an Opportunity Field.  Shouldn't it be in a Lead Field?

SanfordWhiteman
Level 10 - Community Moderator

Re: Some Fields not Returning via API Calls

The field is ​leadSource​.

Anonymous
Not applicable

Re: Some Fields not Returning via API Calls

leadSource - We get this field as an Opportunity Field.  Shouldn't it be in a Lead Field?