Re: how can i get the mktgAssetName by rest api

Anonymous
Not applicable

how can i get the mktgAssetName by rest api

how can i get the mktgAssetName by rest api?

2 REPLIES 2
Anonymous
Not applicable

Re: how can i get the mktgAssetName by rest api

Hi Leo,

I'll be moving your question to the Products and Support​. You've posted in Community Help and Feedback​ which is a feedback site about the community itself. Have fun in products and support!

John_M
Marketo Employee

Re: how can i get the mktgAssetName by rest api

Hi Leo

Of course in the SOAP API, this value comes back where appropriate.. but it doesn't have a direct analog in REST. I haven't tested this, but the closest thing might be "Variant ID"

Here's the full return of Get Activity Types

{

  "requestId": "14400#14df7f32c9f",

  "result": [

    {

      "id": 1,

      "name": "Visit Webpage",

      "description": "User visits a web page",

      "primaryAttribute": {

        "name": "Webpage ID",

        "dataType": "integer"

      },

      "attributes": [

        {

          "name": "Client IP Address",

          "dataType": "string"

        },

        {

          "name": "Query Parameters",

          "dataType": "string"

        },

        {

          "name": "Referrer URL",

          "dataType": "string"

        },

        {

          "name": "Search Engine",

          "dataType": "string"

        },

        {

          "name": "Search Query",

          "dataType": "string"

        },

        {

          "name": "User Agent",

          "dataType": "string"

        }

      ]

    },

    {

      "id": 2,

      "name": "Fill Out Form",

      "description": "User fills out and submits a form on web page",

      "primaryAttribute": {

        "name": "Webform ID",

        "dataType": "integer"

      },

      "attributes": [

        {

          "name": "Client IP Address",

          "dataType": "string"

        },

        {

          "name": "Query Parameters",

          "dataType": "string"

        },

        {

          "name": "Referrer URL",

          "dataType": "string"

        },

        {

          "name": "User Agent",

          "dataType": "string"

        },

        {

          "name": "Webpage ID",

          "dataType": "integer"

        }

      ]

    },

    {

      "id": 3,

      "name": "Click Link",

      "description": "User clicks link on a page",

      "primaryAttribute": {

        "name": "Link ID",

        "dataType": "integer"

      },

      "attributes": [

        {

          "name": "Client IP Address",

          "dataType": "string"

        },

        {

          "name": "Query Parameters",

          "dataType": "string"

        },

        {

          "name": "Referrer URL",

          "dataType": "string"

        },

        {

          "name": "User Agent",

          "dataType": "string"

        },

        {

          "name": "Webpage ID",

          "dataType": "integer"

        }

      ]

    },

    {

      "id": 6,

      "name": "Send Email",

      "description": "Send Marketo Email to a person",

      "primaryAttribute": {

        "name": "Mailing ID",

        "dataType": "integer"

      },

      "attributes": [

        {

          "name": "Test Variant",

          "dataType": "integer"

        }

      ]

    },

    {

      "id": 7,

      "name": "Email Delivered",

      "description": "Marketo Email is delivered to a lead/contact",

      "primaryAttribute": {

        "name": "Mailing ID",

        "dataType": "integer"

      },

      "attributes": [

        {

          "name": "Test Variant",

          "dataType": "integer"

        }

      ]

    },

    {

      "id": 8,

      "name": "Email Bounced",

      "description": "Marketo Email is bounced for a lead",

      "primaryAttribute": {

        "name": "Mailing ID",

        "dataType": "integer"

      },

      "attributes": [

        {

          "name": "Category",

          "dataType": "string"

        },

        {

          "name": "Details",

          "dataType": "string"

        },

        {

          "name": "Email",

          "dataType": "string"

        },

        {

          "name": "Subcategory",

          "dataType": "string"

        },

        {

          "name": "Test Variant",

          "dataType": "integer"

        }

      ]

    },

    {

      "id": 9,

      "name": "Unsubscribe Email",

      "description": "Person unsubscribed from Marketo Emails",

      "primaryAttribute": {

        "name": "Mailing ID",

        "dataType": "integer"

      },

      "attributes": [

        {

          "name": "Client IP Address",

          "dataType": "string"

        },

        {

          "name": "Form Fields",

          "dataType": "text"

        },

        {

          "name": "Query Parameters",

          "dataType": "string"

        },

        {

          "name": "Referrer URL",

          "dataType": "string"

        },

        {

          "name": "Test Variant",

          "dataType": "integer"

        },

        {

          "name": "User Agent",

          "dataType": "string"

        },

        {

          "name": "Webform ID",

          "dataType": "integer"

        },

        {

          "name": "Webpage ID",

          "dataType": "integer"

        }

      ]

    },

    {

      "id": 10,

      "name": "Open Email",

      "description": "User opens Marketo Email",

      "primaryAttribute": {

        "name": "Mailing ID",

        "dataType": "integer"

      },

      "attributes": [

        {

          "name": "Device",

          "dataType": "string"

        },

        {

          "name": "Is Mobile Device",

          "dataType": "boolean"

        },

        {

          "name": "Platform",

          "dataType": "string"

        },

        {

          "name": "Test Variant",

          "dataType": "integer"

        },

        {

          "name": "User Agent",

          "dataType": "string"

        }

      ]

    },

    {

      "id": 11,

      "name": "Click Email",

      "description": "User clicks on a link in a Marketo Email",

      "primaryAttribute": {

        "name": "Mailing ID",

        "dataType": "integer"

      },

      "attributes": [

        {

          "name": "Device",

          "dataType": "string"

        },

        {

          "name": "Is Mobile Device",

          "dataType": "boolean"

        },

        {

          "name": "Link",

          "dataType": "string"

        },

        {

          "name": "Link ID",

          "dataType": "string"

        },

        {

          "name": "Platform",

          "dataType": "string"

        },

        {

          "name": "Test Variant",

          "dataType": "integer"

        },

        {

          "name": "User Agent",

          "dataType": "string"

        }

      ]

    },

    {

      "id": 12,

      "name": "New Lead",

      "description": "New person/record is added to the lead database",

      "attributes": [

        {

          "name": "Created Date",

          "dataType": "date"

        },

        {

          "name": "Form Name",

          "dataType": "string"

        },

        {

          "name": "Lead Source",

          "dataType": "string"

        },

        {

          "name": "List Name",

          "dataType": "string"

        },

        {

          "name": "SFDC Type",

          "dataType": "string"

        },

        {

          "name": "Source Type",

          "dataType": "string"

        }

      ]

    },

    {

      "id": 13,

      "name": "Change Data Value",

      "description": "Changed attribute value for a person/record",

      "primaryAttribute": {

        "name": "Attribute Name",

        "dataType": "integer"

      },

      "attributes": [

        {

          "name": "New Value",

          "dataType": "string"

        },

        {

          "name": "Old Value",

          "dataType": "string"

        },

        {

          "name": "Reason",

          "dataType": "string"

        },

        {

          "name": "Source",

          "dataType": "string"

        }

      ]

    },

    {

      "id": 22,

      "name": "Change Score",

      "description": "Modify the value of a score field",

      "primaryAttribute": {

        "name": "Score Name",

        "dataType": "integer"

      },

      "attributes": [

        {

          "name": "Change Value",

          "dataType": "string"

        },

        {

          "name": "New Value",

          "dataType": "integer"

        }

      ]

    },

    {

      "id": 24,

      "name": "Add to List",

      "description": "Add a person/record to a list",

      "primaryAttribute": {

        "name": "List ID",

        "dataType": "integer"

      }

    },

    {

      "id": 25,

      "name": "Remove from List",

      "description": "Remove this lead from a list",

      "primaryAttribute": {

        "name": "List ID",

        "dataType": "integer"

      }

    },

    {

      "id": 27,

      "name": "Email Bounced Soft",

      "description": "Campaign Email is bounced soft for a lead",

      "primaryAttribute": {

        "name": "Mailing ID",

        "dataType": "integer"

      },

      "attributes": [

        {

          "name": "Category",

          "dataType": "string"

        },

        {

          "name": "Details",

          "dataType": "string"

        },

        {

          "name": "Email",

          "dataType": "string"

        },

        {

          "name": "Subcategory",

          "dataType": "string"

        },

        {

          "name": "Test Variant",

          "dataType": "integer"

        }

      ]

    },

    {

      "id": 32,

      "name": "Merge Leads",

      "description": "Merge two or more leads into a single record",

      "primaryAttribute": {

        "name": "Lead ID",

        "dataType": "integer"

      },

      "attributes": [

        {

          "name": "Merge IDs",

          "dataType": "array"

        },

        {

          "name": "Master Updated",

          "dataType": "boolean"

        },

        {

          "name": "Merged in Sales",

          "dataType": "boolean"

        },

        {

          "name": "Merge Source",

          "dataType": "string"

        }

      ]

    },

    {

      "id": 34,

      "name": "Add to Opportunity",

      "description": "Add to an Opportunity",

      "primaryAttribute": {

        "name": "Oppty ID",

        "dataType": "integer"

      },

      "attributes": [

        {

          "name": "Is Primary",

          "dataType": "boolean"

        },

        {

          "name": "Role",

          "dataType": "string"

        }

      ]

    },

    {

      "id": 35,

      "name": "Remove from Opportunity",

      "description": "Remove from an Opportunity",

      "primaryAttribute": {

        "name": "Oppty ID",

        "dataType": "integer"

      },

      "attributes": [

        {

          "name": "Is Primary",

          "dataType": "boolean"

        },

        {

          "name": "Role",

          "dataType": "string"

        }

      ]

    },

    {

      "id": 36,

      "name": "Update Opportunity",

      "description": "Update an Opportunity",

      "primaryAttribute": {

        "name": "Oppty ID",

        "dataType": "integer"

      },

      "attributes": [

        {

          "name": "Attribute Name",

          "dataType": "string"

        },

        {

          "name": "New Value",

          "dataType": "mixed"

        },

        {

          "name": "Old Value",

          "dataType": "mixed"

        }

      ]

    },

    {

      "id": 37,

      "name": "Delete Lead",

      "description": "Delete lead from Marketo database"

    },

    {

      "id": 38,

      "name": "Send Alert",

      "description": "Send alert Email about a lead",

      "primaryAttribute": {

        "name": "Mailing ID",

        "dataType": "integer"

      },

      "attributes": [

        {

          "name": "Send To List",

          "dataType": "email_list"

        },

        {

          "name": "Send To Owner",

          "dataType": "string"

        }

      ]

    },

    {

      "id": 39,

      "name": "Send Sales Email",

      "description": "Send Email using Sales View (Outlook Plugin)",

      "primaryAttribute": {

        "name": "Artifact ID",

        "dataType": "integer"

      },

      "attributes": [

        {

          "name": "Sent by",

          "dataType": "string"

        },

        {

          "name": "Template ID",

          "dataType": "integer"

        }

      ]

    },

    {

      "id": 40,

      "name": "Open Sales Email",

      "description": "User opens a sales Email",

      "primaryAttribute": {

        "name": "Artifact ID",

        "dataType": "integer"

      },

      "attributes": [

        {

          "name": "Sent by",

          "dataType": "string"

        }

      ]

    },

    {

      "id": 41,

      "name": "Click Sales Email",

      "description": "User clicks on a link in a sales Email",

      "primaryAttribute": {

        "name": "Artifact ID",

        "dataType": "integer"

      },

      "attributes": [

        {

          "name": "Link",

          "dataType": "string"

        },

        {

          "name": "Sent by",

          "dataType": "string"

        }

      ]

    },

    {

      "id": 45,

      "name": "Receive Sales Email",

      "description": "Receive Email using Sales View (Outlook Plugin)",

      "primaryAttribute": {

        "name": "Artifact ID",

        "dataType": "integer"

      },

      "attributes": [

        {

          "name": "Received by",

          "dataType": "string"

        }

      ]

    },

    {

      "id": 47,

      "name": "Request Campaign",

      "description": "Campaign membership is requested for lead",

      "primaryAttribute": {

        "name": "Campaign ID",

        "dataType": "integer"

      },

      "attributes": [

        {

          "name": "Source",

          "dataType": "enum"

        }

      ]

    },

    {

      "id": 48,

      "name": "Sales Email Bounced",

      "description": "Sales Email bounced",

      "primaryAttribute": {

        "name": "Artifact ID",

        "dataType": "integer"

      },

      "attributes": [

        {

          "name": "Category",

          "dataType": "string"

        },

        {

          "name": "Details",

          "dataType": "string"

        },

        {

          "name": "Email",

          "dataType": "string"

        },

        {

          "name": "Sent by",

          "dataType": "string"

        },

        {

          "name": "Subcategory",

          "dataType": "string"

        }

      ]

    },

    {

      "id": 100,

      "name": "Change Lead Partition",

      "description": "Lead partition is changed for a lead",

      "primaryAttribute": {

        "name": "New Partition ID",

        "dataType": "integer"

      },

      "attributes": [

        {

          "name": "Old Partition ID",

          "dataType": "integer"

        },

        {

          "name": "Reason",

          "dataType": "string"

        }

      ]

    },

    {

      "id": 101,

      "name": "Change Revenue Stage",

      "description": "Modify the value of a revenue stage field",

      "primaryAttribute": {

        "name": "Model ID",

        "dataType": "integer"

      },

      "attributes": [

        {

          "name": "New Stage ID",

          "dataType": "integer"

        },

        {

          "name": "Old Stage ID",

          "dataType": "integer"

        },

        {

          "name": "Reason",

          "dataType": "string"

        },

        {

          "name": "SLA Expiration",

          "dataType": "datetime"

        }

      ]

    },

    {

      "id": 102,

      "name": "Change Revenue Stage Manually",

      "description": "Revenue stage is changed manually (e.g. Lead Database or Salesforce)"

    },

    {

      "id": 104,

      "name": "Change Status in Progression",

      "description": "Change a Status in an program progression",

      "primaryAttribute": {

        "name": "Program ID",

        "dataType": "integer"

      },

      "attributes": [

        {

          "name": "Acquired By",

          "dataType": "boolean"

        },

        {

          "name": "New Status ID",

          "dataType": "integer"

        },

        {

          "name": "Old Status ID",

          "dataType": "integer"

        },

        {

          "name": "Reason",

          "dataType": "string"

        },

        {

          "name": "Success",

          "dataType": "boolean"

        }

      ]

    },

    {

      "id": 106,

      "name": "Enrich with Data.com",

      "description": "Enrich a lead with information from Data.com",

      "attributes": [

        {

          "name": "Data.com Status",

          "dataType": "string"

        }

      ]

    },

    {

      "id": 108,

      "name": "Change Segment",

      "description": "Change segment (within a segmentation) for a lead",

      "primaryAttribute": {

        "name": "Segmentation ID",

        "dataType": "integer"

      },

      "attributes": [

        {

          "name": "New Segment ID",

          "dataType": "integer"

        }

      ]

    },

    {

      "id": 110,

      "name": "Call Webhook",

      "description": "Call a Webhook",

      "primaryAttribute": {

        "name": "Webhook",

        "dataType": "integer"

      },

      "attributes": [

        {

          "name": "Error Type",

          "dataType": "integer"

        },

        {

          "name": "Response",

          "dataType": "string"

        }

      ]

    },

    {

      "id": 111,

      "name": "Sent Forward to Friend Email",

      "description": "User Forwards Email to a person/record",

      "primaryAttribute": {

        "name": "Mailing ID",

        "dataType": "integer"

      },

      "attributes": [

        {

          "name": "Lead ID",

          "dataType": "string"

        }

      ]

    },

    {

      "id": 112,

      "name": "Received Forward to Friend Email",

      "description": "User receives forwarded Email from friend",

      "primaryAttribute": {

        "name": "Mailing ID",

        "dataType": "integer"

      },

      "attributes": [

        {

          "name": "Lead ID",

          "dataType": "string"

        }

      ]

    },

    {

      "id": 113,

      "name": "Add to Nurture",

      "description": "Add a lead to a nurture program",

      "primaryAttribute": {

        "name": "Program ID",

        "dataType": "integer"

      },

      "attributes": [

        {

          "name": "Track ID",

          "dataType": "integer"

        }

      ]

    },

    {

      "id": 114,

      "name": "Change Nurture Track",

      "description": "Change the nurture track for a lead",

      "primaryAttribute": {

        "name": "Program ID",

        "dataType": "integer"

      },

      "attributes": [

        {

          "name": "New Track ID",

          "dataType": "integer"

        },

        {

          "name": "Previous Track ID",

          "dataType": "integer"

        }

      ]

    },

    {

      "id": 115,

      "name": "Change Nurture Cadence",

      "description": "Change the nurture cadence for a lead",

      "primaryAttribute": {

        "name": "Program ID",

        "dataType": "integer"

      },

      "attributes": [

        {

          "name": "New Nurture Cadence",

          "dataType": "string"

        },

        {

          "name": "Previous Nurture Cadence",

          "dataType": "string"

        }

      ]

    },

    {

      "id": 400,

      "name": "Share Content",

      "description": "Share Content",

      "primaryAttribute": {

        "name": "Social App ID",

        "dataType": "integer"

      },

      "attributes": [

        {

          "name": "Share Message",

          "dataType": "string"

        },

        {

          "name": "Social App Type ID",

          "dataType": "integer"

        },

        {

          "name": "Social Network",

          "dataType": "string"

        },

        {

          "name": "Webpage ID",

          "dataType": "integer"

        }

      ]

    },

    {

      "id": 401,

      "name": "Vote in Poll",

      "description": "Vote in a Poll",

      "primaryAttribute": {

        "name": "Social App ID",

        "dataType": "integer"

      },

      "attributes": [

        {

          "name": "Social Network",

          "dataType": "string"

        },

        {

          "name": "Vote Choice",

          "dataType": "integer"

        },

        {

          "name": "Webpage ID",

          "dataType": "integer"

        }

      ]

    },

    {

      "id": 405,

      "name": "Click Shared Link",

      "description": "Click a Shared Link",

      "primaryAttribute": {

        "name": "Social App ID",

        "dataType": "integer"

      },

      "attributes": [

        {

          "name": "Sharer ID",

          "dataType": "integer"

        },

        {

          "name": "Social App Type ID",

          "dataType": "integer"

        },

        {

          "name": "Social Network",

          "dataType": "string"

        },

        {

          "name": "Webpage ID",

          "dataType": "integer"

        }

      ]

    }

  ],

  "success": true

}