Response Attribute

Anonymous
Not applicable

Response Attribute

Hey,

I having trouble getting external data through a webhook.

Below are:

  1. The data point (I want to get the value marked in red)
  2. what I think should be the response attribute (which is not working)

Any idea what should be the correct response type?

["visits"]["amazon.com"][0]["visits"][0].organic

{

  • meta:

    {

    },

    • request: {},
      • main_domain_only: false,
      • format: null,
      • domain: "amazon.com",
      • start_date: "2017-06-01",
      • end_date: "2017-06-30",
      • limit: null,
      • country: "world"
    • status: "Success",
    • last_updated: "2017-06-30"
  • visits:

    {

    ]
    • amazon.com:
      [
      • {
        • source_type: "Search",
        • visits:
          [
          • {}
            • date: "2017-06-01",
            • organic: 276243858.7611659,
            • paid: 27013842.173191626
          ]

        },
      • {

        },
        • source_type: "Social",
        • visits:
          [
          • {}
            • date: "2017-06-01",
            • organic: 68969823.05460243,
            • paid: 8913.44250951614
          ]

    • {

      },
      • source_type: "Mail",
      • visits:
        [
        • {}
          • date: "2017-06-01",
          • organic: 56417678.64951977,
          • paid: 0
        ]

    • {

      },
      • source_type: "Display Ads",
      • visits:
        [
        • {}
          • date: "2017-06-01",
          • organic: 0,
          • paid: 7268909.347041464
        ]

    • {

      },
      • source_type: "Direct",
      • visits:
        [
        • {}
          • date: "2017-06-01",
          • organic: 527096307.1514928,
          • paid: 0
        ]

    • {

      }
      • source_type: "Referrals",
      • visits:
        [
        • {}
          • date: "2017-06-01",
          • organic: 277982910.35949814,
          • paid: 0
        ]

}}

Tags (1)
2 REPLIES 2
SanfordWhiteman
Level 10 - Community Moderator

Re: Response Attribute

Can you please delete and re-paste that JSON as plain text, then use the syntax highlighter to highlight it as JavaScript? Thanks. We (and future searchers) should be able to look at this payload without rich text markup.

SanfordWhiteman
Level 10 - Community Moderator

Re: Response Attribute

And also move the thread to Products​ (this space is for general topics as opposed to Marketo-product-specific support).  Then we'll continue over there.