Re: Get fields from Soap Api?

Anonymous
Not applicable

Get fields from Soap Api?

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
Tags (1)
4 REPLIES 4
Anonymous
Not applicable

Re: Get fields from Soap Api?

We don't have APIs for that right now, although it might be a good idea to file in the Ideas section.
Anonymous
Not applicable

Re: Get fields from Soap Api?

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>
Anonymous
Not applicable

Re: Get fields from Soap Api?

I thought we didn't support leads in that call yet. Thanks Angelo!
Anonymous
Not applicable

Re: Get fields from Soap Api?

Thanks for the replies, it looks like the fields are there.

-Jason