Re: Get custom object schema with SOAP API

Anonymous
Not applicable

Get custom object schema with SOAP API

Hi,

I am new to the Marketo SOAP API.

The documentation there is not very clear.

I have 2 goals:

1. get a list of custom objects from Marketo

2. get the structure of each custom object (i.e. what fields are there).

Questions:

1. Is it possible to achieve goal (1) by using listMObjects function?

2. Is it possible to achieve goal (2) bu using describeMObject?

3. If not, what should I be using? (REST API documentation is more clear, but we already used SOAP for leads data)

3 REPLIES 3
Kenny_Elkington
Marketo Employee

Re: Get custom object schema with SOAP API

You can use the process you described, list for available objects, and describe for fields, but REST will be faster and more robust.  We don't recommend doing any new development in SOAP.

Anonymous
Not applicable

Re: Get custom object schema with SOAP API

Thanks Kenny,

currently we are not able to see the custom objects in the calls (see attached image below).

This is the list we get when calling listMObjects function: ActivityRecord, LeadRecord, Opportunity, OpportunityPersonRole]

Do we need to publish the custom object?

I am only able to get it to approved status.

Do I need higher permission to publish?

marketo-my test.jpg

Kenny_Elkington
Marketo Employee

Re: Get custom object schema with SOAP API

Sorry, that's my mistake, I was confusing it with REST, there are no list or describe operations for custom objects in our SOAP API.  You'll need to use the REST operations to get that data.