Get fields from Soap Api? | Community
Skip to main content
January 10, 2013
Question

Get fields from Soap Api?

  • January 10, 2013
  • 4 replies
  • 1183 views
Is there a way to pull field metadata via the soap api?

When using getLead() it appears to only pull fields that contain values and not all fields, i'm trying to pull a list of all available fields for editing in a custom internal application.

Thanks
- gotti
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

4 replies

January 10, 2013
We don't have APIs for that right now, although it might be a good idea to file in the Ideas section.
January 11, 2013
Note that the API exposes the DescribeMObject method which you can pass in the objectName of LeadRecord and will return the list of Lead Fields.

Example call:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:mkt="http://www.marketo.com/mktows/">
   <soapenv:Header>
      <mkt:AuthenticationHeader>
         <mktowsUserId>XXXXXXXXXXXXX</mktowsUserId>
         <requestSignature>XXXXXXXXXXXXX</requestSignature>
         <requestTimestamp>2013-01-11T07:19:31-07:00</requestTimestamp>
      </mkt:AuthenticationHeader>
   </soapenv:Header>
   <soapenv:Body>
      <mkt:paramsDescribeMObject>
         <objectName>LeadRecord</objectName>
      </mkt:paramsDescribeMObject>
   </soapenv:Body>
</soapenv:Envelope>
January 11, 2013
I thought we didn't support leads in that call yet. Thanks Angelo!
January 26, 2013
Thanks for the replies, it looks like the fields are there.

-Jason