{"componentChunkName":"component---node-modules-rocketseat-gatsby-theme-docs-core-src-templates-docs-query-js","path":"/destinations/streaming-destinations/hubspot/hubspot-cloud-mode/hubspot-legacy-api-cloud/","result":{"data":{"mdx":{"id":"b13abec2-8a1d-5b70-8435-defc0b341de0","excerpt":"RudderStack supports the following API calls while sending data to Hubspot via  cloud mode  using the  legacy API . Identify RudderStack sends the  identify…","fields":{"slug":"/destinations/streaming-destinations/hubspot/hubspot-cloud-mode/hubspot-legacy-api-cloud/"},"frontmatter":{"title":"HubSpot Cloud Mode (Legacy API)","description":"Detailed technical documentation on sending events to HubSpot via cloud mode using the legacy API.","image":null,"disableTableOfContents":null},"body":"var _excluded = [\"components\"];\n\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\n/* @jsxRuntime classic */\n\n/* @jsx mdx */\nvar _frontmatter = {\n  \"title\": \"HubSpot Cloud Mode (Legacy API)\",\n  \"description\": \"Detailed technical documentation on sending events to HubSpot via cloud mode using the legacy API.\"\n};\n\nvar makeShortcode = function makeShortcode(name) {\n  return function MDXDefaultShortcode(props) {\n    console.warn(\"Component \" + name + \" was not imported, exported, or provided by MDXProvider as global scope\");\n    return mdx(\"div\", props);\n  };\n};\n\nvar Link = makeShortcode(\"Link\");\nvar layoutProps = {\n  _frontmatter: _frontmatter\n};\nvar MDXLayout = \"wrapper\";\nreturn function MDXContent(_ref) {\n  var components = _ref.components,\n      props = _objectWithoutProperties(_ref, _excluded);\n\n  return mdx(MDXLayout, _extends({}, layoutProps, props, {\n    components: components,\n    mdxType: \"MDXLayout\"\n  }), mdx(\"p\", null, \"RudderStack supports the following API calls while sending data to Hubspot via \", mdx(Link, {\n    to: \"/destinations/rudderstack-connection-modes/#cloud-mode\",\n    mdxType: \"Link\"\n  }, \"cloud mode\"), \" using the \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://legacydocs.hubspot.com/docs/overview?_ga=2.34803302.670362313.1663315856-97001172.1658910392\"\n  }, \"legacy API\"), \".\"), mdx(\"h2\", {\n    \"id\": \"identify\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h2\",\n    \"href\": \"#identify\",\n    \"aria-label\": \"identify permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Identify\"), mdx(\"p\", null, \"RudderStack sends the \", mdx(Link, {\n    to: \"/event-spec/standard-events/identify\",\n    mdxType: \"Link\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"identify\")), \" call to create or update a contact in HubSpot. The contact's email ID must be present in the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"traits\"), \" object of the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"identify\"), \" call.\"), mdx(\"p\", null, \"A sample \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"identify\"), \" call is as shown:\"), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-javascript\"\n  }, \"rudderanalytics.identify({\\n  firstName: \\\"Alex\\\",\\n  city: \\\"New Orleans\\\",\\n  country: \\\"USA\\\",\\n  phone: \\\"+1-202-555-0146\\\",\\n  email: \\\"alex@example.com\\\",\\n  custom_flavor: \\\"chocolate\\\",\\n  custom_date: 1574769933368,\\n  custom_date1: new Date(\\\"2019-10-14T11:15:53.296Z\\\"),\\n})\\n\")), mdx(\"h3\", {\n    \"id\": \"special-fields\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h3\",\n    \"href\": \"#special-fields\",\n    \"aria-label\": \"special fields permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Special fields\"), mdx(\"p\", null, \"HubSpot supports the following traits as special fields:\"), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"address\")), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"city\")), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"companyName\")), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"email\")), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"firstName\")), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"lastName\")), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"position\")), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"phone\")), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"zip\"))), mdx(\"h3\", {\n    \"id\": \"custom-properties\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h3\",\n    \"href\": \"#custom-properties\",\n    \"aria-label\": \"custom properties permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Custom properties\"), mdx(\"p\", null, \"RudderStack supports sending custom properties to HubSpot via the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"identify\"), \" call. These properties will update the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"contact\"), \" property you have \", mdx(\"strong\", {\n    parentName: \"p\"\n  }, \"already created\"), \" in HubSpot, as shown:\"), mdx(\"span\", {\n    \"className\": \"gatsby-resp-image-wrapper\",\n    \"style\": {\n      \"position\": \"relative\",\n      \"display\": \"block\",\n      \"marginLeft\": \"auto\",\n      \"marginRight\": \"auto\",\n      \"maxWidth\": \"960px\"\n    }\n  }, \"\\n      \", mdx(\"span\", {\n    parentName: \"span\",\n    \"className\": \"gatsby-resp-image-background-image\",\n    \"style\": {\n      \"paddingBottom\": \"48.958333333333336%\",\n      \"position\": \"relative\",\n      \"bottom\": \"0\",\n      \"left\": \"0\",\n      \"backgroundImage\": \"url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAYAAAC0VX7mAAAACXBIWXMAAAsTAAALEwEAmpwYAAABRklEQVQoz62SzU7DMBCE8/43Dm0FSGlFJVKVC8/AkYdAQpWKaEmaX/9vBu26CU3OWPqUeLIezzpO7u63WKx3WKQZVpsdHp72wnKdYZE+T1immegT0gyP2xess1esNnskP5cK/zmSU1Gh7jS0MVDaoOk0qqaDsQ4hhBHPeMZfiXPnvdQW5zPq7yOSvGzQagvrPMrOoFYWjXZQ1kOPODg2CBSNA4kJa/xsHaE8fOLy/vZnGAJB6VhE1MtcoP662IP6Xr5FKNL36BkAxC2zYaOMFHW8MJCcBReBAWLLPow6w5sN7yMhICnqdjS8KIPGuslCHtY52ImOmJhIkg21nDb5OHwhr1oR+NwMtzzbefghtxqnFsMbTQyPpxxlqyRhpS1yZaFv2pOE1sEYO9GciwkxT1h1Gp1xCETQzovZ/GyGazPVSELMa38Bc1H9qGTPAKgAAAAASUVORK5CYII=')\",\n      \"backgroundSize\": \"cover\",\n      \"display\": \"block\"\n    }\n  }), \"\\n  \", mdx(\"img\", {\n    parentName: \"span\",\n    \"className\": \"gatsby-resp-image-image\",\n    \"alt\": \"HubSpot create property\",\n    \"title\": \"HubSpot create property\",\n    \"src\": \"/docs/static/3dac38f6ed6732a1c531f6c42858134e/d9199/hubspot-create-property.png\",\n    \"srcSet\": [\"/docs/static/3dac38f6ed6732a1c531f6c42858134e/d9199/hubspot-create-property.png 960w\", \"/docs/static/3dac38f6ed6732a1c531f6c42858134e/828bd/hubspot-create-property.png 2310w\"],\n    \"sizes\": \"(max-width: 960px) 100vw, 960px\",\n    \"style\": {\n      \"width\": \"100%\",\n      \"height\": \"100%\",\n      \"margin\": \"0\",\n      \"verticalAlign\": \"middle\",\n      \"position\": \"absolute\",\n      \"top\": \"0\",\n      \"left\": \"0\"\n    },\n    \"loading\": \"lazy\",\n    \"decoding\": \"async\"\n  }), \"\\n    \"), mdx(\"div\", {\n    className: \"infoBlock\"\n  }, \"Refer to the \", mdx(\"a\", {\n    href: \"https://knowledge.hubspot.com/crm-setup/manage-your-properties\"\n  }, \"HubSpot Knowledge Base\"), \" for more information on creating custom properties.\"), mdx(\"p\", null, \"When you provide any custom property in the event, RudderStack automatically converts the field name into the lower case and replaces any space with an underscore. This is because HubSpot does not accept properties in the upper case and spaces.\"), mdx(\"p\", null, \"RudderStack then maps the field values present in the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"traits\"), \" to the corresponding HubSpot custom property.\"), mdx(\"div\", {\n    className: \"warningBlock\"\n  }, \"HubSpot discards any property that does not exist and returns a \", mdx(\"strong\", null, \"400 Bad Request\"), \" error.\"), mdx(\"h3\", {\n    \"id\": \"dates\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h3\",\n    \"href\": \"#dates\",\n    \"aria-label\": \"dates permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Dates\"), mdx(\"p\", null, \"For sending properties of \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"date\"), \" type, you can send them as the \", mdx(\"a\", {\n    parentName: \"p\",\n    \"href\": \"https://en.wikipedia.org/wiki/Unix_time\"\n  }, \"epoch time\"), \" or as a \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"date\"), \" object. RudderStack converts them to the required HubSpot format (midnight UTC).\"), mdx(\"h2\", {\n    \"id\": \"track\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h2\",\n    \"href\": \"#track\",\n    \"aria-label\": \"track permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Track\"), mdx(\"p\", null, \"A \", mdx(Link, {\n    to: \"/event-spec/standard-events/track/\",\n    mdxType: \"Link\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"track\")), \" call lets you record various user actions and any properties associated with them.\"), mdx(\"p\", null, \"To associate a \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"track\"), \" call with a user, you need to specify the user's \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"email\"), \" under \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"context.traits\"), \" . Additionally, RudderStack associates the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"track\"), \" events with the same user after an \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"identify\"), \" request is successfully made.\"), mdx(\"p\", null, \"A sample \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"track\"), \" event is as shown:\"), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-javascript\"\n  }, \"rudderanalytics.track(\\n  \\\"Order Completed\\\", {\\n    value: 30,\\n  }, {\\n    context: {\\n      traits: {\\n        firstname: \\\"Alex\\\",\\n        city: \\\"New Orleans\\\",\\n        country: \\\"USA\\\",\\n        phone: \\\"+1-202-555-0146\\\",\\n        email: \\\"alex@example.com\\\",\\n      },\\n    },\\n  }\\n)\\n\")), mdx(\"p\", null, \"The \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"track\"), \" call also supports \", mdx(Link, {\n    to: \"https://legacydocs.hubspot.com/docs/methods/enterprise_events/http_api#:~:text=%26favorite_color%3Dorange-,External%20id,-%26id%3D%7Bvalue%7D\",\n    mdxType: \"Link\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"externalId\")), \" as a parameter which is mapped from \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"externalID\"), \" \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"hubspotId\"), \". A sample \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"track\"), \" call containing the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"externalId\"), \" is as shown:\"), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-javascript\"\n  }, \"rudderanalytics.track(\\n  \\\"Order Completed\\\", {\\n  value: 30,\\n}, {\\n  context: {\\n    traits: {\\n      firstname: \\\"Alex\\\",\\n      city: \\\"New Orleans\\\",\\n      country: \\\"USA\\\",\\n      phone: \\\"+1-202-555-0146\\\",\\n      email: \\\"alex@example.com\\\",\\n    },\\n  },\\n  externalId: [{\\n    type: \\\"hubspotId\\\",\\n    id: \\\"6556\\\"\\n  }]\\n})\\n\")), mdx(\"h3\", {\n    \"id\": \"revenue-events\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h3\",\n    \"href\": \"#revenue-events\",\n    \"aria-label\": \"revenue events permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Revenue events\"), mdx(\"p\", null, \"For the revenue events, a \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"value\"), \" or \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"revenue\"), \" key should be included in the event properties to be recorded in HubSpot.\"), mdx(\"h2\", {\n    \"id\": \"screen\",\n    \"style\": {\n      \"position\": \"relative\"\n    }\n  }, mdx(\"a\", {\n    parentName: \"h2\",\n    \"href\": \"#screen\",\n    \"aria-label\": \"screen permalink\",\n    \"className\": \"anchor before\"\n  }, mdx(\"svg\", {\n    parentName: \"a\",\n    \"aria-hidden\": \"true\",\n    \"focusable\": \"false\",\n    \"height\": \"16\",\n    \"version\": \"1.1\",\n    \"viewBox\": \"0 0 16 16\",\n    \"width\": \"16\"\n  }, mdx(\"path\", {\n    parentName: \"svg\",\n    \"fillRule\": \"evenodd\",\n    \"d\": \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Screen\"), mdx(\"p\", null, \"The \", mdx(Link, {\n    to: \"/event-spec/standard-events/screen/\",\n    mdxType: \"Link\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"screen\")), \" call lets you record whenever your user views their mobile screen, with any additional information about the viewed screen.\"), mdx(\"p\", null, \"If you have enabled screen views in your \", mdx(Link, {\n    to: \"/sources/event-streams/sdks/rudderstack-android-sdk/\",\n    mdxType: \"Link\"\n  }, \"Android\"), \" or \", mdx(Link, {\n    to: \"/sources/event-streams/sdks/rudderstack-ios-sdk/\",\n    mdxType: \"Link\"\n  }, \"iOS\"), \" app implementation, RudderStack will send this information to HubSpot. RudderStack also forwards the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"properties\"), \" you've passed along with the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"screen\"), \" call without any changes.\"), mdx(\"p\", null, \"A sample \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"screen\"), \" call sent via the iOS SDK is shown below:\"), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-objectivec\"\n  }, \"[[RSClient sharedInstance] screen:@\\\"Main\\\"\\n            properties:@{@\\\"prop_key\\\" : @\\\"prop_value\\\"}];\\n\")));\n}\n;\nMDXContent.isMDXComponent = true;","headings":[{"depth":2,"value":"Identify"},{"depth":3,"value":"Special fields"},{"depth":3,"value":"Custom properties"},{"depth":3,"value":"Dates"},{"depth":2,"value":"Track"},{"depth":3,"value":"Revenue events"},{"depth":2,"value":"Screen"}]}},"pageContext":{"slug":"/destinations/streaming-destinations/hubspot/hubspot-cloud-mode/hubspot-legacy-api-cloud/","repositoryEditUrl":"","repositoryProvider":""}},"staticQueryHashes":["1745814598","2501019404","3460896660","839945389"]}