Need help on Marketo metadata API's

Aparna_Sriniva1
Level 2

Need help on Marketo metadata API's

Hi,

We did analysis of the metadata API's available for Marketo and have few queries as mentioned below:

 

From below mentioned metadata API's we are not able to figure out :

  1. What all operations are supported on the object (GET, PUT, POST)?
  2. How can we decide which fields are applicable and mandatory fields if any for a particular operation?
  3. We can not decide which field are queryable, we got searchableFields but this is available only in Opportunities object's metadata API response and not in Lead metadata APIs response . There no metadata APIs for Campaign object .
  4. We can not decide which field are updateable, however we can see readOnly and updateable attributes in Leads and Opportunities object's metadata API response. Please confirm if we can use these attributes to decide if the properties are updateable or not.

Could you please help us on above queries.

 

Sharing below APIs that we have tried with sample response to set a context of above queries: 

 

Leads - /rest/v1/leads/describe.json

Response - 

{
    "requestId": "c272#178ca82b11c",
    "result": [
        {
            "id": 1,
            "displayName": "Company Name",
            "dataType": "string",
            "length": 255,
            "rest": {
                "name": "company",
                "readOnly": false
            },
            "soap": {
                "name": "Company",
                "readOnly": false
            }
        },
        {
            "id": 2,
            "displayName": "Email Address",
            "dataType": "email",
            "length": 255,
            "rest": {
                "name": "email",
                "readOnly": false
            },
            "soap": {
                "name": "Email",
                "readOnly": false
            }
        }
    ],
    "success": true
}

opportunities - /rest/v1/opportunities/describe.json

Response -

{
    "requestId": "43d#178ca80bfb0",
    "result": [
        {
            "name": "opportunity",
            "displayName": "Opportunity",
            "description": "Marketo Opportunity",
            "createdAt": "2015-10-29T15:05:30Z",
            "updatedAt": "2015-10-29T15:05:30Z",
            "idField": "marketoGUID",
            "dedupeFields": [
                "externalOpportunityId"
            ],
            "searchableFields": [
                [
                    "externalOpportunityId"
                ],
                [
                    "marketoGUID"
                ],
                [
                    "externalCompanyId"
                ],
                [
                    "externalSalesPersonId"
                ]
            ],
            "fields": [
                {
                    "name": "createdAt",
                    "displayName": "createdAt",
                    "dataType": "datetime",
                    "updateable": false,
                    "crmManaged": false
                },
                {
                    "name": "type",
                    "displayName": "type",
                    "dataType": "string",
                    "length": 255,
                    "updateable": true,
                    "crmManaged": false
                }
            ]
        }
    ],
    "success": true
}​​​​​​​​

 

 

No Metadata API for Campaign

/rest/v1/campaigns.json this returns the Campaign data .

 

Response -

{
    "requestId": "b9ba#178ca84d80c",
    "result": [
        {
            "id": 1003,
            "name": "Opened Sales Email",
            "description": " ",
            "type": "trigger",
            "workspaceName": "Default",
            "createdAt": "2015-10-29T15:05:49Z",
            "updatedAt": "2019-02-06T04:50:39Z",
            "active": false
        },
        {
            "id": 1470,
            "name": "test31",
            "type": "trigger",
            "workspaceName": "Default",
            "createdAt": "2018-02-26T12:53:02Z",
            "updatedAt": "2018-02-26T12:35:13Z",
            "active": false
        }
    ],
    "success": true,
    "nextPageToken": "LAXKFUVA24BFS2L"
}

 

 

Tags (1)