diff --git a/404.html b/404.html index 911c203c6..4aa0ece62 100644 --- a/404.html +++ b/404.html @@ -10,13 +10,13 @@ - +
Skip to main content

Page Not Found

We could not find what you were looking for.

Please contact the owner of the site that linked you to the original URL and let them know their link is broken.

- + \ No newline at end of file diff --git a/assets/js/7f9f5c99.78f31540.js b/assets/js/7f9f5c99.78f31540.js deleted file mode 100644 index 9352fc12f..000000000 --- a/assets/js/7f9f5c99.78f31540.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmd=self.webpackChunkmd||[]).push([[1092],{4137:(t,e,a)=>{a.d(e,{Zo:()=>m,kt:()=>c});var n=a(7294);function l(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function r(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function i(t){for(var e=1;e=0||(l[a]=t[a]);return l}(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,a)&&(l[a]=t[a])}return l}var u=n.createContext({}),s=function(t){var e=n.useContext(u),a=e;return t&&(a="function"==typeof t?t(e):i(i({},e),t)),a},m=function(t){var e=s(t.components);return n.createElement(u.Provider,{value:e},t.children)},d="mdxType",p={inlineCode:"code",wrapper:function(t){var e=t.children;return n.createElement(n.Fragment,{},e)}},k=n.forwardRef((function(t,e){var a=t.components,l=t.mdxType,r=t.originalType,u=t.parentName,m=o(t,["components","mdxType","originalType","parentName"]),d=s(a),k=l,c=d["".concat(u,".").concat(k)]||d[k]||p[k]||r;return a?n.createElement(c,i(i({ref:e},m),{},{components:a})):n.createElement(c,i({ref:e},m))}));function c(t,e){var a=arguments,l=e&&e.mdxType;if("string"==typeof t||l){var r=a.length,i=new Array(r);i[0]=k;var o={};for(var u in e)hasOwnProperty.call(e,u)&&(o[u]=e[u]);o.originalType=t,o[d]="string"==typeof t?t:l,i[1]=o;for(var s=2;s{a.d(e,{Z:()=>i});var n=a(7294),l=a(6010);const r={tabItem:"tabItem_Ymn6"};function i(t){let{children:e,hidden:a,className:i}=t;return n.createElement("div",{role:"tabpanel",className:(0,l.Z)(r.tabItem,i),hidden:a},e)}},3992:(t,e,a)=>{a.d(e,{Z:()=>T});var n=a(7462),l=a(7294),r=a(6010),i=a(2957),o=a(6550),u=a(5238),s=a(3609),m=a(2560);function d(t){return function(t){return l.Children.map(t,(t=>{if(!t||(0,l.isValidElement)(t)&&function(t){const{props:e}=t;return!!e&&"object"==typeof e&&"value"in e}(t))return t;throw new Error(`Docusaurus error: Bad child <${"string"==typeof t.type?t.type:t.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}(t).map((t=>{let{props:{value:e,label:a,attributes:n,default:l}}=t;return{value:e,label:a,attributes:n,default:l}}))}function p(t){const{values:e,children:a}=t;return(0,l.useMemo)((()=>{const t=e??d(a);return function(t){const e=(0,s.l)(t,((t,e)=>t.value===e.value));if(e.length>0)throw new Error(`Docusaurus error: Duplicate values "${e.map((t=>t.value)).join(", ")}" found in . Every value needs to be unique.`)}(t),t}),[e,a])}function k(t){let{value:e,tabValues:a}=t;return a.some((t=>t.value===e))}function c(t){let{queryString:e=!1,groupId:a}=t;const n=(0,o.k6)(),r=function(t){let{queryString:e=!1,groupId:a}=t;if("string"==typeof e)return e;if(!1===e)return null;if(!0===e&&!a)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return a??null}({queryString:e,groupId:a});return[(0,u._X)(r),(0,l.useCallback)((t=>{if(!r)return;const e=new URLSearchParams(n.location.search);e.set(r,t),n.replace({...n.location,search:e.toString()})}),[r,n])]}function N(t){const{defaultValue:e,queryString:a=!1,groupId:n}=t,r=p(t),[i,o]=(0,l.useState)((()=>function(t){let{defaultValue:e,tabValues:a}=t;if(0===a.length)throw new Error("Docusaurus error: the component requires at least one children component");if(e){if(!k({value:e,tabValues:a}))throw new Error(`Docusaurus error: The has a defaultValue "${e}" but none of its children has the corresponding value. Available values are: ${a.map((t=>t.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return e}const n=a.find((t=>t.default))??a[0];if(!n)throw new Error("Unexpected error: 0 tabValues");return n.value}({defaultValue:e,tabValues:r}))),[u,s]=c({queryString:a,groupId:n}),[d,N]=function(t){let{groupId:e}=t;const a=function(t){return t?`docusaurus.tab.${t}`:null}(e),[n,r]=(0,m.Nk)(a);return[n,(0,l.useCallback)((t=>{a&&r.set(t)}),[a,r])]}({groupId:n}),b=(()=>{const t=u??d;return k({value:t,tabValues:r})?t:null})();(0,l.useLayoutEffect)((()=>{b&&o(b)}),[b]);return{selectedValue:i,selectValue:(0,l.useCallback)((t=>{if(!k({value:t,tabValues:r}))throw new Error(`Can't select invalid tab value=${t}`);o(t),s(t),N(t)}),[s,N,r]),tabValues:r}}var b=a(1048);const h={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};function g(t){let{className:e,block:a,selectedValue:o,selectValue:u,tabValues:s}=t;const m=[],{blockElementScrollPositionUntilNextRender:d}=(0,i.o5)(),p=t=>{const e=t.currentTarget,a=m.indexOf(e),n=s[a].value;n!==o&&(d(e),u(n))},k=t=>{let e=null;switch(t.key){case"Enter":p(t);break;case"ArrowRight":{const a=m.indexOf(t.currentTarget)+1;e=m[a]??m[0];break}case"ArrowLeft":{const a=m.indexOf(t.currentTarget)-1;e=m[a]??m[m.length-1];break}}e?.focus()};return l.createElement("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.Z)("tabs",{"tabs--block":a},e)},s.map((t=>{let{value:e,label:a,attributes:i}=t;return l.createElement("li",(0,n.Z)({role:"tab",tabIndex:o===e?0:-1,"aria-selected":o===e,key:e,ref:t=>m.push(t),onKeyDown:k,onClick:p},i,{className:(0,r.Z)("tabs__item",h.tabItem,i?.className,{"tabs__item--active":o===e})}),a??e)})))}function y(t){let{lazy:e,children:a,selectedValue:n}=t;const r=(Array.isArray(a)?a:[a]).filter(Boolean);if(e){const t=r.find((t=>t.props.value===n));return t?(0,l.cloneElement)(t,{className:"margin-top--md"}):null}return l.createElement("div",{className:"margin-top--md"},r.map(((t,e)=>(0,l.cloneElement)(t,{key:e,hidden:t.props.value!==n}))))}function f(t){const e=N(t);return l.createElement("div",{className:(0,r.Z)("tabs-container",h.tabList)},l.createElement(g,(0,n.Z)({},t,e)),l.createElement(y,(0,n.Z)({},t,e)))}function T(t){const e=(0,b.Z)();return l.createElement(f,(0,n.Z)({key:String(e)},t))}},7271:(t,e,a)=>{a.d(e,{V:()=>r,z:()=>l});var n=a(7294);const l=t=>{let{link:e,text:a,newTab:l=!1}=t;return n.createElement(n.Fragment,null,n.createElement("a",{class:"button button--outline button--lg button--primary col col--6 col--offset-3",href:e,target:l?"_blank":"_self"},a))},r=t=>{let{linkLeft:e,textLeft:a,newTabLeft:l=!1,linkRight:r,textRight:i,newTabRight:o=!1}=t;return n.createElement(n.Fragment,null,n.createElement("div",{class:"col col--12"},n.createElement("a",{class:"button button--outline button--lg button--primary col col--5 col--offset-0",href:e,target:l?"_blank":"_self"},a),n.createElement("a",{class:"button button--outline button--lg button--primary col col--5 col--offset-2",href:r,target:o?"_blank":"_self"},i)))}},1872:(t,e,a)=>{a.d(e,{m:()=>r});var n=a(7294);const l="leadText_qzwo",r=t=>{let{content:e}=t;return n.createElement(n.Fragment,null,n.createElement("p",{id:l},e))}},6266:(t,e,a)=>{a.r(e),a.d(e,{assets:()=>p,contentTitle:()=>m,default:()=>b,frontMatter:()=>s,metadata:()=>d,toc:()=>k});var n=a(7462),l=(a(7294),a(4137)),r=a(3992),i=a(425),o=a(1872),u=a(7271);const s={id:"sfmc-system-data-views",title:"SFMC System Data Views",sidebar_label:"System Data Views",description:"Dive deep into System Data Views - the backend Marketing Cloud data. Actionable pearls await.",image:"img/og/og-image-sfmc-system-data-views.png",tags:["Marketing Cloud","Configuration","SQL","Analytics","Data Extensions","Email","Automation","Journey"]},m=void 0,d={unversionedId:"config/sfmc-system-data-views",id:"config/sfmc-system-data-views",title:"SFMC System Data Views",description:"Dive deep into System Data Views - the backend Marketing Cloud data. Actionable pearls await.",source:"@site/docs/config/sfmc-system-data-views.mdx",sourceDirName:"config",slug:"/config/sfmc-system-data-views",permalink:"/docs/config/sfmc-system-data-views",draft:!1,editUrl:"https://github.com/MateuszDabrowski/mateuszdabrowski.pl/edit/master/docs/config/sfmc-system-data-views.mdx",tags:[{label:"Marketing Cloud",permalink:"/docs/tags/marketing-cloud"},{label:"Configuration",permalink:"/docs/tags/configuration"},{label:"SQL",permalink:"/docs/tags/sql"},{label:"Analytics",permalink:"/docs/tags/analytics"},{label:"Data Extensions",permalink:"/docs/tags/data-extensions"},{label:"Email",permalink:"/docs/tags/email"},{label:"Automation",permalink:"/docs/tags/automation"},{label:"Journey",permalink:"/docs/tags/journey"}],version:"current",lastUpdatedBy:"Mateusz D\u0105browski",lastUpdatedAt:1701805081,formattedLastUpdatedAt:"Dec 5, 2023",frontMatter:{id:"sfmc-system-data-views",title:"SFMC System Data Views",sidebar_label:"System Data Views",description:"Dive deep into System Data Views - the backend Marketing Cloud data. Actionable pearls await.",image:"img/og/og-image-sfmc-system-data-views.png",tags:["Marketing Cloud","Configuration","SQL","Analytics","Data Extensions","Email","Automation","Journey"]},sidebar:"docs",previous:{title:"SFMC Config",permalink:"/docs/category/sfmc-config"},next:{title:"Mobile Connect Data Views",permalink:"/docs/config/sfmc-mobile-connect-data-views"}},p={},k=[{value:"Data Views Basics",id:"data-views-basics",level:2},{value:"Subscriber Data Views",id:"subscriber-data-views",level:2},{value:"_Subscribers",id:"_subscribers",level:3},{value:"_EnterpriseAttribute",id:"_enterpriseattribute",level:3},{value:"Email Data Views",id:"email-data-views",level:2},{value:"_Job",id:"_job",level:3},{value:"_Sent",id:"_sent",level:3},{value:"_Open",id:"_open",level:3},{value:"_Click",id:"_click",level:3},{value:"_Bounce",id:"_bounce",level:3},{value:"_Complaint",id:"_complaint",level:3},{value:"Subscription Data Views",id:"subscription-data-views",level:2},{value:"_Unsubscribe",id:"_unsubscribe",level:3},{value:"_BusinessUnitUnsubscribes",id:"_businessunitunsubscribes",level:3},{value:"_ListSubscribers",id:"_listsubscribers",level:3},{value:"Mobile Connect Data Views",id:"mobile-connect-data-views",level:2},{value:"Journey Data Views",id:"journey-data-views",level:2},{value:"_Journey",id:"_journey",level:3},{value:"_JourneyActivity",id:"_journeyactivity",level:3},{value:"Automation Data Views",id:"automation-data-views",level:2},{value:"_AutomationInstance",id:"_automationinstance",level:3},{value:"_AutomationActivityInstance",id:"_automationactivityinstance",level:3},{value:"Custom Data Views",id:"custom-data-views",level:2}],c={toc:k},N="wrapper";function b(t){let{components:e,...a}=t;return(0,l.kt)(N,(0,n.Z)({},c,a,{components:e,mdxType:"MDXLayout"}),(0,l.kt)(o.m,{content:"Dive deep into System Data Views - the backend Marketing Cloud data. Actionable pearls await.",mdxType:"LeadText"}),(0,l.kt)("h2",{id:"data-views-basics"},"Data Views Basics"),(0,l.kt)("p",null,"System Data Views are ",(0,l.kt)("strong",{parentName:"p"},"built-in backend Data Extensions")," that you can use to find information about your subscribers and sends. You ",(0,l.kt)("strong",{parentName:"p"},"cannot change them"),", but you can leverage their data in SQL queries for quick reports in ",(0,l.kt)("a",{parentName:"p",href:"/docs/sql/sfmc-sql-basics#query-studio"},"Query Studio")," or outputting to the standard Data Extension. They are excellent fuel for SSJS logic."),(0,l.kt)("p",null,"Data Views have ",(0,l.kt)("strong",{parentName:"p"},"data retention settings set to 6 months"),". If you want to store any data for a more extended period, you must create an Automation that will be copying data to your Data Extension."),(0,l.kt)("p",null,"Be careful, however, as some of the System Data Views can get absurdly big quick, and making copies within your Marketing Cloud Instance may lead to performance issues. In such cases, a much better idea might be to export that data on a scheduled basis to an external Data Warehouse."),(0,l.kt)("p",null,"Another important point related to Data Views is always knowing which Data View you genuinely want to use. For example, in most cases, you will be interested in parent-level ",(0,l.kt)("a",{parentName:"p",href:"#_subscribers"},(0,l.kt)("inlineCode",{parentName:"a"},"_Subscribers"))," Data View, which means you will need to use the ",(0,l.kt)("a",{parentName:"p",href:"/docs/sql/sfmc-sql-from#enterprise-data-extension"},(0,l.kt)("inlineCode",{parentName:"a"},"Ent."))," prefix in your query."),(0,l.kt)("admonition",{title:"You Should Know",type:"note"},(0,l.kt)("p",{parentName:"admonition"},"Below you can find selected Salesforce Marketing Cloud Data Views focused on Subscribers, Journeys, Email and SMS Channel. I plan to cover the rest of them in the future."),(0,l.kt)("p",{parentName:"admonition"},"Be sure to check the excellent ",(0,l.kt)("a",{parentName:"p",href:"https://dataviews.io"},"Dataviews.io")," - an interactive system tables relationship diagram created by ",(0,l.kt)("a",{parentName:"p",href:"https://sfmarketing.cloud/author/zjarczynska/"},"Zuzanna Jarczy\u0144ska"),". It will for sure help you with multi-view ",(0,l.kt)("a",{parentName:"p",href:"/docs/sql/sfmc-sql-join"},(0,l.kt)("inlineCode",{parentName:"a"},"JOIN"),"s"),"."),(0,l.kt)("p",{parentName:"admonition"},"There is also a more detailed ",(0,l.kt)("a",{parentName:"p",href:"https://dbdiagram.io/d/5ff259ed80d742080a34e3c3"},"System Tables relationship diagram")," created by ",(0,l.kt)("a",{parentName:"p",href:"https://cameronrobert.com.au"},"Cameron Roberts")," that contains SQL Database structure along with field lengths."),(0,l.kt)(u.V,{linkLeft:"https://dataviews.io",textLeft:"Zuza's DataViews.io",newTabLeft:"true",linkRight:"https://dbdiagram.io/d/5ff259ed80d742080a34e3c3",textRight:"Cam's Detailed Diagram",newTabRight:"true",mdxType:"ButtonRow"})),(0,l.kt)("hr",null),(0,l.kt)("h2",{id:"subscriber-data-views"},"Subscriber Data Views"),(0,l.kt)("h3",{id:"_subscribers"},"_Subscribers"),(0,l.kt)("p",null,"Stores information about your Subscribers. Great for high-level perspective or adding Email Address field to other more detailed Data Views."),(0,l.kt)(r.Z,{defaultValue:"fields",values:[{label:"Fields",value:"fields"},{label:"Field Picklist Values",value:"values"},{label:"SQL Query",value:"sql"}],mdxType:"Tabs"},(0,l.kt)(i.Z,{value:"fields",mdxType:"TabItem"},(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Data Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Nullable"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SubscriberID"),(0,l.kt)("td",{parentName:"tr",align:null},"The subscriber ID for the affected subscriber. This number represents the unique ID for each subscriber record."),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"DateUndeliverable"),(0,l.kt)("td",{parentName:"tr",align:null},"The date an email for the subscriber was returned as undeliverable"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"DateJoined"),(0,l.kt)("td",{parentName:"tr",align:null},"The Date, the subscriber, joined your list"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"DateUnsubscribed"),(0,l.kt)("td",{parentName:"tr",align:null},"The Date, the subscriber, unsubscribed from your list"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Domain"),(0,l.kt)("td",{parentName:"tr",align:null},"The domain of the subscriber"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"EmailAddress"),(0,l.kt)("td",{parentName:"tr",align:null},"The subscriber's email address"),(0,l.kt)("td",{parentName:"tr",align:null},"Email"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"BounceCount"),(0,l.kt)("td",{parentName:"tr",align:null},"The total number of bounces accrued by the subscriber"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SubscriberKey"),(0,l.kt)("td",{parentName:"tr",align:null},"A potential alternate identifier for subscribers."),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SubscriberType"),(0,l.kt)("td",{parentName:"tr",align:null},"The subscriber type for the affected subscriber"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Status"),(0,l.kt)("td",{parentName:"tr",align:null},"The status of the subscriber"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Locale"),(0,l.kt)("td",{parentName:"tr",align:null},"The locale code for the subscriber"),(0,l.kt)("td",{parentName:"tr",align:null},"Locale"),(0,l.kt)("td",{parentName:"tr",align:null},"X"))))),(0,l.kt)(i.Z,{value:"values",mdxType:"TabItem"},(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"Status")," possible values:"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"active"),(0,l.kt)("li",{parentName:"ul"},"held"),(0,l.kt)("li",{parentName:"ul"},"unsubscribed"),(0,l.kt)("li",{parentName:"ul"},"bounced")),(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"SubscriberType")," possible values:"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"ExactTarget"),(0,l.kt)("li",{parentName:"ul"},"Unknown External System\nIn most cases you will see only ",(0,l.kt)("inlineCode",{parentName:"li"},"Exact Target")," in your database.")),(0,l.kt)("hr",null)),(0,l.kt)(i.Z,{value:"sql",mdxType:"TabItem"},(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-sql"},"SELECT\n sub.SubscriberID\n , sub.DateUndeliverable\n , sub.DateJoined\n , sub.DateUnsubscribed\n , sub.Domain\n , sub.EmailAddress\n , sub.BounceCount\n , sub.SubscriberKey\n , sub.SubscriberType\n , sub.Status\n , sub.Locale\nFROM _Subscribers AS sub\n")))),(0,l.kt)("p",null,"When working with ",(0,l.kt)("inlineCode",{parentName:"p"},"_Subscribers")," Data View:"),(0,l.kt)("ol",null,(0,l.kt)("li",{parentName:"ol"},"If you are using the query in the child Business Unit, use ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-from#enterprise-data-extension"},(0,l.kt)("inlineCode",{parentName:"a"},"Ent."))," prefix, as the data is stored on Parent BU level."),(0,l.kt)("li",{parentName:"ol"},"If you need high-level data on your subscribers, this Data View might be enough. If you want to learn more (for example, why a subscriber bounced, where did he unsubscribe), you will need to ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-join"},(0,l.kt)("inlineCode",{parentName:"a"},"JOIN"))," other Data Views."),(0,l.kt)("li",{parentName:"ol"},"Use ",(0,l.kt)("inlineCode",{parentName:"li"},"SubscriberID")," to ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-join"},(0,l.kt)("inlineCode",{parentName:"a"},"JOIN"))," data from different engagement-based Data Views like ",(0,l.kt)("a",{parentName:"li",href:"#_sent"},(0,l.kt)("inlineCode",{parentName:"a"},"_Sent")),", ",(0,l.kt)("a",{parentName:"li",href:"#_open"},(0,l.kt)("inlineCode",{parentName:"a"},"_Open")),", ",(0,l.kt)("a",{parentName:"li",href:"#_click"},(0,l.kt)("inlineCode",{parentName:"a"},"_Click"))," or ",(0,l.kt)("a",{parentName:"li",href:"#_bounce"},(0,l.kt)("inlineCode",{parentName:"a"},"_Bounce")),"."),(0,l.kt)("li",{parentName:"ol"},"The ",(0,l.kt)("inlineCode",{parentName:"li"},"Status")," field is excellent for a quick check of your database quality. It is also nice to manage multiple records. Pull the selection of your subscribers with SQL Query, add a new status with ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-select#custom-values"},"custom value")," (for example, ",(0,l.kt)("inlineCode",{parentName:"li"},"'unsubscribed' AS Status"),") and leverage Automation to export-transfer-import the Data Extension to All Subscribers."),(0,l.kt)("li",{parentName:"ol"},"This Data View, along with ",(0,l.kt)("a",{parentName:"li",href:"#_enterpriseattribute"},(0,l.kt)("inlineCode",{parentName:"a"},"_EnterpriseAttribute")),", ",(0,l.kt)("a",{parentName:"li",href:"#_businessunitunsubscribes"},(0,l.kt)("inlineCode",{parentName:"a"},"_BusinessUnitUnsubscribes"))," and ",(0,l.kt)("a",{parentName:"li",href:"#_listsubscribers"},(0,l.kt)("inlineCode",{parentName:"a"},"_ListSubscribers")),", does not have six-month data retention.")),(0,l.kt)("hr",null),(0,l.kt)("h3",{id:"_enterpriseattribute"},"_EnterpriseAttribute"),(0,l.kt)("p",null,"Stores information about your Profile and Preference Attributes from Email Studio."),(0,l.kt)(r.Z,{defaultValue:"fields",values:[{label:"Fields",value:"fields"},{label:"SQL Query",value:"sql"}],mdxType:"Tabs"},(0,l.kt)(i.Z,{value:"fields",mdxType:"TabItem"},(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Data Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Nullable"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"_SubscriberID"),(0,l.kt)("td",{parentName:"tr",align:null},"The subscriber ID for the affected subscriber. This number represents the unique ID for each subscriber record stored."),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null}))))),(0,l.kt)(i.Z,{value:"sql",mdxType:"TabItem"},(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-sql"},"SELECT\n ea._SubscriberID AS SubscriberID\n , ea.ProfileAttributeWithoutSpaces\n , ea.[Profile Attribute With Spaces] AS ProfileAttributeWithSpace\n , ea.PreferenceAttributeWithoutSpaces\n , ea.[Preference Attribute With Spaces] AS PreferenceAttributeWithSpace\nFROM _EnterpriseAttribute AS ea\n")))),(0,l.kt)("p",null,"When working with ",(0,l.kt)("inlineCode",{parentName:"p"},"_EnterpriseAttribute")," Data View:"),(0,l.kt)("ol",null,(0,l.kt)("li",{parentName:"ol"},"If you are using the query in the child Business Unit, always use ",(0,l.kt)("inlineCode",{parentName:"li"},"ENT.")," prefix as it is enterprise-level only Data View."),(0,l.kt)("li",{parentName:"ol"},"When querying or joining ",(0,l.kt)("inlineCode",{parentName:"li"},"_EnterpriseAttribute"),", always include the underscore before SubscriberID - this is the only Data View that requires it."),(0,l.kt)("li",{parentName:"ol"},"Despite the ",(0,l.kt)("inlineCode",{parentName:"li"},"Email Address")," field is visible in the Salesforce Marketing Cloud UI when you go to Profile Attributes, it is not part of the ",(0,l.kt)("inlineCode",{parentName:"li"},"_EnterpriseAttribute")," Data View. To get the Email Address of your Subscriber, query the ",(0,l.kt)("inlineCode",{parentName:"li"},"_Subscribers")," Data View."),(0,l.kt)("li",{parentName:"ol"},"Unfortunately, the default Preference Attribute ",(0,l.kt)("inlineCode",{parentName:"li"},"HTML Email")," is not accessible via query."),(0,l.kt)("li",{parentName:"ol"},(0,l.kt)("inlineCode",{parentName:"li"},"_EnterpriseAttribute")," Data View is unique, as it might contain spaces in field names. You build it by creating the Profile Attributes in Email Studio. If your profile attribute name contains space, you will have to use the square bracket notation to capture it: ",(0,l.kt)("inlineCode",{parentName:"li"},"SELECT [Attribute With Spaces] FROM _EnterpriseAttribute"),"."),(0,l.kt)("li",{parentName:"ol"},"This Data View, along with ",(0,l.kt)("a",{parentName:"li",href:"#_subscribers"},(0,l.kt)("inlineCode",{parentName:"a"},"_Subscribers")),", ",(0,l.kt)("a",{parentName:"li",href:"#_businessunitunsubscribes"},(0,l.kt)("inlineCode",{parentName:"a"},"_BusinessUnitUnsubscribes"))," and ",(0,l.kt)("a",{parentName:"li",href:"#_listsubscribers"},(0,l.kt)("inlineCode",{parentName:"a"},"_ListSubscribers"))," , does not have six-month data retention.")),(0,l.kt)("hr",null),(0,l.kt)("h2",{id:"email-data-views"},"Email Data Views"),(0,l.kt)("h3",{id:"_job"},"_Job"),(0,l.kt)("p",null,"Stores information about your Email Sends Jobs. Great for capturing detailed data about your communication, especially when paired with Send Log. Must-have for extending your engagement-based Email Data Views."),(0,l.kt)(r.Z,{defaultValue:"fields",values:[{label:"Fields",value:"fields"},{label:"Field Picklist Values",value:"values"},{label:"SQL Query",value:"sql"}],mdxType:"Tabs"},(0,l.kt)(i.Z,{value:"fields",mdxType:"TabItem"},(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Data Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Nullable"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"JobID"),(0,l.kt)("td",{parentName:"tr",align:null},"The job ID number for the email send"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"EmailID"),(0,l.kt)("td",{parentName:"tr",align:null},"The email ID for the job"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AccountID"),(0,l.kt)("td",{parentName:"tr",align:null},"The ID number for the account that performed the job"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AccountUserID"),(0,l.kt)("td",{parentName:"tr",align:null},"The ID number for the account user that performed the job"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"FromName"),(0,l.kt)("td",{parentName:"tr",align:null},"The from name in the email send"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"FromEmail"),(0,l.kt)("td",{parentName:"tr",align:null},"The from email address in the email send"),(0,l.kt)("td",{parentName:"tr",align:null},"Email"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SchedTime"),(0,l.kt)("td",{parentName:"tr",align:null},"The time the job was scheduled"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"PickupTime"),(0,l.kt)("td",{parentName:"tr",align:null},"The time the Marketing Cloud application started the job"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"DeliveredTime"),(0,l.kt)("td",{parentName:"tr",align:null},"The time the email was delivered"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"EventID"),(0,l.kt)("td",{parentName:"tr",align:null},"The ID for the job event"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"IsMultipart"),(0,l.kt)("td",{parentName:"tr",align:null},"Whether the job was sent as multi-part MIME or not"),(0,l.kt)("td",{parentName:"tr",align:null},"Boolean"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"JobType"),(0,l.kt)("td",{parentName:"tr",align:null},"The type of job"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"JobStatus"),(0,l.kt)("td",{parentName:"tr",align:null},"The status of the job"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ModifiedBy"),(0,l.kt)("td",{parentName:"tr",align:null},"If modified, the user who modified the job"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ModifiedDate"),(0,l.kt)("td",{parentName:"tr",align:null},"The date the job was modified"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"EmailName"),(0,l.kt)("td",{parentName:"tr",align:null},"The name of the email sent by the job"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"EmailSubject"),(0,l.kt)("td",{parentName:"tr",align:null},"The subject of the email send"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"IsWrapped"),(0,l.kt)("td",{parentName:"tr",align:null},"Whether the links in the email were wrapped for tracking"),(0,l.kt)("td",{parentName:"tr",align:null},"Boolean"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"TestEmailAddr"),(0,l.kt)("td",{parentName:"tr",align:null},"The test email address used in the job"),(0,l.kt)("td",{parentName:"tr",align:null},"Email"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Category"),(0,l.kt)("td",{parentName:"tr",align:null},"The job category"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"BccEmail"),(0,l.kt)("td",{parentName:"tr",align:null},"Any email address send in the BCC field"),(0,l.kt)("td",{parentName:"tr",align:null},"Email"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"OriginalSchedTime"),(0,l.kt)("td",{parentName:"tr",align:null},"The initially scheduled time for the job"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"CreatedDate"),(0,l.kt)("td",{parentName:"tr",align:null},"The date the job was created"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"CharacterSet"),(0,l.kt)("td",{parentName:"tr",align:null},"The character set used in the job"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"IPAddress"),(0,l.kt)("td",{parentName:"tr",align:null},"This value will always be a null value."),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SalesForceTotalSubscriberCount"),(0,l.kt)("td",{parentName:"tr",align:null},"The total number of Salesforce subscribers included in the job"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SalesForceErrorSubscriberCount"),(0,l.kt)("td",{parentName:"tr",align:null},"The total number of Salesforce subscribers included in the job that received errors"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SendType"),(0,l.kt)("td",{parentName:"tr",align:null},"The type of send used in the job"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"DynamicEmailSubject"),(0,l.kt)("td",{parentName:"tr",align:null},"The dynamic email subject included in the job"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SuppressTracking"),(0,l.kt)("td",{parentName:"tr",align:null},"If tracking information for this job was suppressed"),(0,l.kt)("td",{parentName:"tr",align:null},"Boolean"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SendClassificationType"),(0,l.kt)("td",{parentName:"tr",align:null},"The type of send classification for the job"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SendClassification"),(0,l.kt)("td",{parentName:"tr",align:null},"The custom name of send classification for the job"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ResolveLinksWithCurrentData"),(0,l.kt)("td",{parentName:"tr",align:null},"If the job resolved links with current data"),(0,l.kt)("td",{parentName:"tr",align:null},"Boolean"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"EmailSendDefinition"),(0,l.kt)("td",{parentName:"tr",align:null},"The email send definition used in the job"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"DeduplicateByEmail"),(0,l.kt)("td",{parentName:"tr",align:null},"Whether the email addresses in the job are used to deduplicate subscribers"),(0,l.kt)("td",{parentName:"tr",align:null},"Boolean"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"TriggererSendDefinitionObjectID"),(0,l.kt)("td",{parentName:"tr",align:null},"The object ID for the triggered send definition"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"TriggeredSendCustomerKey"),(0,l.kt)("td",{parentName:"tr",align:null},"The customer key for the triggered send"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X"))))),(0,l.kt)(i.Z,{value:"values",mdxType:"TabItem"},(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"JobType")," possible values:"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},(0,l.kt)("inlineCode",{parentName:"li"},"null")),(0,l.kt)("li",{parentName:"ul"},"MULTIPLE_SEND")),(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"JobStatus")," possible values:"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"Deleted"),(0,l.kt)("li",{parentName:"ul"},"New")),(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"Category")," possible values:"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"Test Send Emails"),(0,l.kt)("li",{parentName:"ul"},"Triggered Sends"),(0,l.kt)("li",{parentName:"ul"},"Version XX (where XX is a number)"),(0,l.kt)("li",{parentName:"ul"},"GUID_VXX (36 character hyphen separated GUID followed by underscore and VXX where XX is a number)")),(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"CharacterSet")," possible values:"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"Unicode - UTF-8")),(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"SendType")," possible values:"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"ExactTargetSend")),(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"SendClassificationType")," possible values:"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"Default Commercial"),(0,l.kt)("li",{parentName:"ul"},"Default Transactional")),(0,l.kt)("hr",null)),(0,l.kt)(i.Z,{value:"sql",mdxType:"TabItem"},(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-sql"},"SELECT\n job.JobID\n , job.EmailID\n , job.AccountID\n , job.AccountUserID\n , job.FromName\n , job.FromEmail\n , job.SchedTime\n , job.PickupTime\n , job.DeliveredTime\n , job.EventID\n , job.IsMultipart\n , job.JobType\n , job.JobStatus\n , job.ModifiedBy\n , job.ModifiedDate\n , job.EmailName\n , job.EmailSubject\n , job.IsWrapped\n , job.TestEmailAddr\n , job.Category\n , job.BccEmail\n , job.OriginalSchedTime\n , job.CreatedDate\n , job.CharacterSet\n , job.IPAddress\n , job.SalesForceTotalSubscriberCount\n , job.SalesForceErrorSubscriberCount\n , job.SendType\n , job.DynamicEmailSubject\n , job.SuppressTracking\n , job.SendClassificationType\n , job.SendClassification\n , job.ResolveLinksWithCurrentData\n , job.EmailSendDefinition\n , job.DeduplicateByEmail\n , job.TriggererSendDefinitionObjectID\n , job.TriggeredSendCustomerKey\nFROM _Job AS job\n")))),(0,l.kt)("p",null,"When working with ",(0,l.kt)("inlineCode",{parentName:"p"},"_Job")," Data View:"),(0,l.kt)("ol",null,(0,l.kt)("li",{parentName:"ol"},(0,l.kt)("inlineCode",{parentName:"li"},"JobID")," field will be your bread and butter to ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-join"},(0,l.kt)("inlineCode",{parentName:"a"},"JOIN"))," with other engagement-based Data Views."),(0,l.kt)("li",{parentName:"ol"},(0,l.kt)("inlineCode",{parentName:"li"},"EmailName"),", ",(0,l.kt)("inlineCode",{parentName:"li"},"FromName"),", and ",(0,l.kt)("inlineCode",{parentName:"li"},"FromEmail")," are handy data points missing in the ",(0,l.kt)("a",{parentName:"li",href:"#_sent"},(0,l.kt)("inlineCode",{parentName:"a"},"_Sent")),", ",(0,l.kt)("a",{parentName:"li",href:"#_open"},(0,l.kt)("inlineCode",{parentName:"a"},"_Open")),", ",(0,l.kt)("a",{parentName:"li",href:"#_click"},(0,l.kt)("inlineCode",{parentName:"a"},"_Click")),", ",(0,l.kt)("a",{parentName:"li",href:"#_bounce"},(0,l.kt)("inlineCode",{parentName:"a"},"_Bounce"))," Data Views and are worth checking for reporting needs."),(0,l.kt)("li",{parentName:"ol"},"If you are performing A/B tests or want to analyse the subject line's impact on performance, be sure to pick ",(0,l.kt)("inlineCode",{parentName:"li"},"EmailSubject"),". Pair it with ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-select#conditional-values-with-case"},(0,l.kt)("inlineCode",{parentName:"a"},"CASE"))," to create a great knowledge source for your content team."),(0,l.kt)("li",{parentName:"ol"},"For debugging purposes, be sure to check out ",(0,l.kt)("inlineCode",{parentName:"li"},"IsWrapped")," and ",(0,l.kt)("inlineCode",{parentName:"li"},"SuppressTracking")," - if you are missing tracking data, ",(0,l.kt)("inlineCode",{parentName:"li"},"CharacterSet")," - if you have problems with formatting, ",(0,l.kt)("inlineCode",{parentName:"li"},"SendClassification")," - if you have issues with unsubscribers or spam complaints."),(0,l.kt)("li",{parentName:"ol"},(0,l.kt)("inlineCode",{parentName:"li"},"AccountUserID")," field is fantastic for ",(0,l.kt)("inlineCode",{parentName:"li"},"_Job"),"-based Audit Log creation. Unfortunately, there is no UI-based easy way to determine which user has which UserID. You can either use SOAP API or match based on these SQL results.")),(0,l.kt)("admonition",{title:"You Should Know",type:"note"},(0,l.kt)("p",{parentName:"admonition"},(0,l.kt)("inlineCode",{parentName:"p"},"_Job")," Data View is unique among other Email-focused Data Views, as it shows data limited to a specific Business Unit. Your parent Business Unit has access to ",(0,l.kt)("a",{parentName:"p",href:"#_sent"},(0,l.kt)("inlineCode",{parentName:"a"},"_Sent")),", ",(0,l.kt)("a",{parentName:"p",href:"#_open"},(0,l.kt)("inlineCode",{parentName:"a"},"_Open")),", ",(0,l.kt)("a",{parentName:"p",href:"#_click"},(0,l.kt)("inlineCode",{parentName:"a"},"_Click"))," and other data from all Business Units, but this is not the case with ",(0,l.kt)("inlineCode",{parentName:"p"},"_Job"),". You can query only those jobs that occurred in the Business Unit where you execute your SQL snippet."),(0,l.kt)("p",{parentName:"admonition"},"Always consider this when choosing Business Unit to execute the query and the type of ",(0,l.kt)("a",{parentName:"p",href:"/docs/sql/sfmc-sql-join"},(0,l.kt)("inlineCode",{parentName:"a"},"JOIN"))," statement.")),(0,l.kt)("hr",null),(0,l.kt)("h3",{id:"_sent"},"_Sent"),(0,l.kt)("p",null,"Stores information about your Email Sends. Great for understanding who had a chance to receive your message and whose communication did not leave your system."),(0,l.kt)(r.Z,{defaultValue:"fields",values:[{label:"Fields",value:"fields"},{label:"SQL Query",value:"sql"}],mdxType:"Tabs"},(0,l.kt)(i.Z,{value:"fields",mdxType:"TabItem"},(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Data Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Nullable"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AccountID"),(0,l.kt)("td",{parentName:"tr",align:null},"Your parent account ID (MID) number"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"OYBAccountID"),(0,l.kt)("td",{parentName:"tr",align:null},"The account ID (MID) number of the child Business Unit that owns the data. If queried on parent Business Unit, it will be ",(0,l.kt)("inlineCode",{parentName:"td"},"Null")),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"JobID"),(0,l.kt)("td",{parentName:"tr",align:null},"The job ID number for the email send"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ListID"),(0,l.kt)("td",{parentName:"tr",align:null},"The list ID number for the list used in the send"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"BatchID"),(0,l.kt)("td",{parentName:"tr",align:null},"The batch ID number for any batches used in the send"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SubscriberID"),(0,l.kt)("td",{parentName:"tr",align:null},"The subscriber ID for the affected subscriber. This number represents the unique ID for each subscriber record."),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SubscriberKey"),(0,l.kt)("td",{parentName:"tr",align:null},"The subscriber key for the affected subscriber"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"EventDate"),(0,l.kt)("td",{parentName:"tr",align:null},"The date the send took place"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Domain"),(0,l.kt)("td",{parentName:"tr",align:null},"The domain at which the send occurred"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"TriggererSendDefinitionObjectID"),(0,l.kt)("td",{parentName:"tr",align:null},"The object ID for the triggered send definition"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"TriggeredSendCustomerKey"),(0,l.kt)("td",{parentName:"tr",align:null},"The customer key for the triggered send"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X"))))),(0,l.kt)(i.Z,{value:"sql",mdxType:"TabItem"},(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-sql"},"SELECT\n sent.AccountID\n , sent.OYBAccountID\n , sent.JobID\n , sent.ListID\n , sent.BatchID\n , sent.SubscriberID\n , sent.SubscriberKey\n , sent.EventDate\n , sent.Domain\n , sent.TriggererSendDefinitionObjectID\n , sent.TriggeredSendCustomerKey\nFROM _Sent AS sent\n")))),(0,l.kt)("p",null,"When working with ",(0,l.kt)("inlineCode",{parentName:"p"},"_Sent")," Data View:"),(0,l.kt)("ol",null,(0,l.kt)("li",{parentName:"ol"},"Use ",(0,l.kt)("inlineCode",{parentName:"li"},"JobID"),", ",(0,l.kt)("inlineCode",{parentName:"li"},"ListID"),", ",(0,l.kt)("inlineCode",{parentName:"li"},"BatchID")," and ",(0,l.kt)("inlineCode",{parentName:"li"},"SubscriberId")," or ",(0,l.kt)("inlineCode",{parentName:"li"},"SubscriberKey")," to match various events from multiple Data Views like ",(0,l.kt)("a",{parentName:"li",href:"#_open"},(0,l.kt)("inlineCode",{parentName:"a"},"_Open")),", ",(0,l.kt)("a",{parentName:"li",href:"#_click"},(0,l.kt)("inlineCode",{parentName:"a"},"_Click")),", ",(0,l.kt)("a",{parentName:"li",href:"#_bounce"},(0,l.kt)("inlineCode",{parentName:"a"},"_Bounce"))," for a single engagement with a particular subscriber. Example: ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/snippets/sfmc-sql-debugging-email-sends#solution"},"Query for Debugging Email Sends"),"."),(0,l.kt)("li",{parentName:"ol"},"The most valuable data here is the ",(0,l.kt)("inlineCode",{parentName:"li"},"EventDate")," field that lets you know when the email was sent (and whether that happened at all)."),(0,l.kt)("li",{parentName:"ol"},"If you have triggered a send for an email and after a few minutes you don't see it here, in most cases, it means that the send was blocked and never left Marketing Cloud. Check ",(0,l.kt)("a",{parentName:"li",href:"/docs/config/sfmc-enhanced-send-log"},"enhanced Send Log"),", applied personalisation, data source, ",(0,l.kt)("inlineCode",{parentName:"li"},"RaiseError")," scripts.")),(0,l.kt)("hr",null),(0,l.kt)("h3",{id:"_open"},"_Open"),(0,l.kt)("p",null,"Stores information about your Email Opens. For when you need to know when someone opened your email. Kind of."),(0,l.kt)(r.Z,{defaultValue:"fields",values:[{label:"Fields",value:"fields"},{label:"SQL Query",value:"sql"}],mdxType:"Tabs"},(0,l.kt)(i.Z,{value:"fields",mdxType:"TabItem"},(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Data Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Nullable"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AccountID"),(0,l.kt)("td",{parentName:"tr",align:null},"Your parent account ID (MID) number"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"OYBAccountID"),(0,l.kt)("td",{parentName:"tr",align:null},"The account ID (MID) number of the child Business Unit that owns the data. If queried on parent Business Unit, it will be ",(0,l.kt)("inlineCode",{parentName:"td"},"Null")),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"JobID"),(0,l.kt)("td",{parentName:"tr",align:null},"The job ID number for the email send"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ListID"),(0,l.kt)("td",{parentName:"tr",align:null},"The list ID number for the list used in the send"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"BatchID"),(0,l.kt)("td",{parentName:"tr",align:null},"The batch ID number for any batches used in the send"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SubscriberID"),(0,l.kt)("td",{parentName:"tr",align:null},"The subscriber ID for the affected subscriber. This number represents the unique ID for each subscriber record."),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SubscriberKey"),(0,l.kt)("td",{parentName:"tr",align:null},"The subscriber key for the affected subscriber"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"EventDate"),(0,l.kt)("td",{parentName:"tr",align:null},"The date the open took place"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Domain"),(0,l.kt)("td",{parentName:"tr",align:null},"The domain at which the open occurred"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"IsUnique"),(0,l.kt)("td",{parentName:"tr",align:null},"Whether the event is unique or repeated"),(0,l.kt)("td",{parentName:"tr",align:null},"Boolean"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"TriggererSendDefinitionObjectID"),(0,l.kt)("td",{parentName:"tr",align:null},"The object ID for the triggered send definition"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"TriggeredSendCustomerKey"),(0,l.kt)("td",{parentName:"tr",align:null},"The customer key for the triggered send"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X"))))),(0,l.kt)(i.Z,{value:"sql",mdxType:"TabItem"},(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-sql"},"SELECT\n opened.AccountID\n , opened.OYBAccountID\n , opened.JobID\n , opened.ListID\n , opened.BatchID\n , opened.SubscriberID\n , opened.SubscriberKey\n , opened.EventDate\n , opened.Domain\n , opened.IsUnique\n , opened.TriggererSendDefinitionObjectID\n , opened.TriggeredSendCustomerKey\nFROM _Open AS opened\n")))),(0,l.kt)("p",null,"When working with ",(0,l.kt)("inlineCode",{parentName:"p"},"_Open")," Data View:"),(0,l.kt)("ol",null,(0,l.kt)("li",{parentName:"ol"},"Use ",(0,l.kt)("inlineCode",{parentName:"li"},"JobID"),", ",(0,l.kt)("inlineCode",{parentName:"li"},"ListID"),", ",(0,l.kt)("inlineCode",{parentName:"li"},"BatchID")," and ",(0,l.kt)("inlineCode",{parentName:"li"},"SubscriberId")," or ",(0,l.kt)("inlineCode",{parentName:"li"},"SubscriberKey")," to match various events from multiple Data Views like ",(0,l.kt)("a",{parentName:"li",href:"#_sent"},(0,l.kt)("inlineCode",{parentName:"a"},"_Sent")),", ",(0,l.kt)("a",{parentName:"li",href:"#_click"},(0,l.kt)("inlineCode",{parentName:"a"},"_Click")),", ",(0,l.kt)("a",{parentName:"li",href:"#_bounce"},(0,l.kt)("inlineCode",{parentName:"a"},"_Bounce"))," for a single engagement with a particular subscriber. Example: ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/snippets/sfmc-sql-debugging-email-sends#solution"},"Query for Debugging Email Sends"),"."),(0,l.kt)("li",{parentName:"ol"},"Use ",(0,l.kt)("inlineCode",{parentName:"li"},"_open.IsUnique = 1")," in ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-join"},(0,l.kt)("inlineCode",{parentName:"a"},"JOIN"))," or ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-where"},(0,l.kt)("inlineCode",{parentName:"a"},"WHERE"))," to focus on the the first occurence of each event. Example: ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/snippets/sfmc-sql-debugging-email-sends#solution"},"Query for Debugging Email Sends"),"."),(0,l.kt)("li",{parentName:"ol"},"The most valuable data here is the ",(0,l.kt)("inlineCode",{parentName:"li"},"EventDate")," field that lets you know when the email was opened (and whether that happened at all). But with email opens, it's not that easy. In many cases, the lack of open data in this Data View doesn't mean that your recipient for sure did not open the email. And in some instances, tracked open might not mean he did.")),(0,l.kt)("admonition",{title:"You Should Know",type:"note"},(0,l.kt)("p",{parentName:"admonition"},"There is ",(0,l.kt)("strong",{parentName:"p"},"no official engagement feedback loop")," that informs Marketing Cloud (or any other Marketing Automation Platform) that your recipient opened the email."),(0,l.kt)("p",{parentName:"admonition"},"All Marketing Automation Platforms put an ",(0,l.kt)("strong",{parentName:"p"},"invisible 1px wide image in the email")," body that is unique for every email you send. When someone opens an email, its images are downloaded from the server. SFMC treats the download of this 1px wide image as proof that the recipient opened the email. And in most cases, it is correct. But..."),(0,l.kt)("p",{parentName:"admonition"},"The ",(0,l.kt)("strong",{parentName:"p"},"images don't always render")," (that's why you should always use alt-text). Some recipients opt-in on a per-email basis to download email graphics. Government audiences might not even have this option. Because of the admin policy, the privacy concerns over engagement tracking or limited internet bandwidth. In such a case, even if the user opens an email, you won't have information about it."),(0,l.kt)("p",{parentName:"admonition"},"It might lead to weird data, like clicks visible for contacts that did not open. Marketing Automation Platforms track Clicks via a different, more confident approach."),(0,l.kt)("p",{parentName:"admonition"},"It can also lead to cases where a user has both click and open data, but click data is earlier than the open. Why? Your recipient clicked something in your email and only after that decided to allow his email program to load the images in it."),(0,l.kt)("p",{parentName:"admonition"},"There might be cases where the data is wrong the other way - when you see that email as opened, but in reality, the user didn't engage with it. It sometimes happens for B2B sends when your recipient's administrator uses bots that automatically check the emails for malicious or spammy content. You can recognise such things by checking the EventDate on ",(0,l.kt)("inlineCode",{parentName:"p"},"_Open")," and ",(0,l.kt)("inlineCode",{parentName:"p"},"_Click")," Data Views, as those bots will open the email and click all its links within a second. Something not possible for an actual human.")),(0,l.kt)("hr",null),(0,l.kt)("h3",{id:"_click"},"_Click"),(0,l.kt)(r.Z,{defaultValue:"fields",values:[{label:"Fields",value:"fields"},{label:"SQL Query",value:"sql"}],mdxType:"Tabs"},(0,l.kt)(i.Z,{value:"fields",mdxType:"TabItem"},(0,l.kt)("p",null,"Stores information about your Email Clicks. Detailed click reporting and behavioural logic are possible, thanks to this one."),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Data Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Nullable"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AccountID"),(0,l.kt)("td",{parentName:"tr",align:null},"Your parent account ID (MID) number"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"OYBAccountID"),(0,l.kt)("td",{parentName:"tr",align:null},"The account ID (MID) number of the child Business Unit that owns the data. If queried on parent Business Unit, it will be ",(0,l.kt)("inlineCode",{parentName:"td"},"Null")),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"JobID"),(0,l.kt)("td",{parentName:"tr",align:null},"The job ID number for the email send"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ListID"),(0,l.kt)("td",{parentName:"tr",align:null},"The list ID number for the list used in the send"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"BatchID"),(0,l.kt)("td",{parentName:"tr",align:null},"The batch ID number for any batches used in the send"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SubscriberID"),(0,l.kt)("td",{parentName:"tr",align:null},"The subscriber ID for the affected subscriber. This number represents the unique ID for each subscriber record."),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SubscriberKey"),(0,l.kt)("td",{parentName:"tr",align:null},"The subscriber key for the affected subscriber"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"EventDate"),(0,l.kt)("td",{parentName:"tr",align:null},"The date the click took place"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Domain"),(0,l.kt)("td",{parentName:"tr",align:null},"The domain at which the click occurred"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"URL"),(0,l.kt)("td",{parentName:"tr",align:null},"The URL for the link clicked. Dynamic elements are shown as code: ",(0,l.kt)("inlineCode",{parentName:"td"},"www.example.com?id=%%SubID%%")),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"LinkName"),(0,l.kt)("td",{parentName:"tr",align:null},"The link name assigned in the email send"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"LinkContent"),(0,l.kt)("td",{parentName:"tr",align:null},"The link content assigned in the email send. Dynamic elements are shown as result: ",(0,l.kt)("inlineCode",{parentName:"td"},"www.example.com?id=12345")),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"IsUnique"),(0,l.kt)("td",{parentName:"tr",align:null},"Whether the event is unique or repeated"),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"TriggererSendDefinitionObjectID"),(0,l.kt)("td",{parentName:"tr",align:null},"The object ID for the triggered send definition"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"TriggeredSendCustomerKey"),(0,l.kt)("td",{parentName:"tr",align:null},"The customer key for the triggered send"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X"))))),(0,l.kt)(i.Z,{value:"sql",mdxType:"TabItem"},(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-sql"},"SELECT\n click.AccountID\n , click.OYBAccountID\n , click.JobID\n , click.ListID\n , click.BatchID\n , click.SubscriberID\n , click.SubscriberKey\n , click.EventDate\n , click.Domain\n , click.URL\n , click.LinkName\n , click.LinkContent\n , click.IsUnique\n , click.TriggererSendDefinitionObjectID\n , click.TriggeredSendCustomerKey\nFROM _Click AS click\n")))),(0,l.kt)("p",null,"When working with ",(0,l.kt)("inlineCode",{parentName:"p"},"_Click")," Data View:"),(0,l.kt)("ol",null,(0,l.kt)("li",{parentName:"ol"},"Use ",(0,l.kt)("inlineCode",{parentName:"li"},"JobID"),", ",(0,l.kt)("inlineCode",{parentName:"li"},"ListID"),", ",(0,l.kt)("inlineCode",{parentName:"li"},"BatchID")," and ",(0,l.kt)("inlineCode",{parentName:"li"},"SubscriberId")," or ",(0,l.kt)("inlineCode",{parentName:"li"},"SubscriberKey")," to match various events from multiple Data Views like ",(0,l.kt)("a",{parentName:"li",href:"#_sent"},(0,l.kt)("inlineCode",{parentName:"a"},"_Sent")),", ",(0,l.kt)("a",{parentName:"li",href:"#_open"},(0,l.kt)("inlineCode",{parentName:"a"},"_Open")),", ",(0,l.kt)("a",{parentName:"li",href:"#_bounce"},(0,l.kt)("inlineCode",{parentName:"a"},"_Bounce"))," for a single engagement with a particular subscriber. Example: ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/snippets/sfmc-sql-debugging-email-sends#solution"},"Query for Debugging Email Sends"),"."),(0,l.kt)("li",{parentName:"ol"},"Use ",(0,l.kt)("inlineCode",{parentName:"li"},"_click.IsUnique = 1")," in ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-join"},(0,l.kt)("inlineCode",{parentName:"a"},"JOIN"))," or ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-where"},(0,l.kt)("inlineCode",{parentName:"a"},"WHERE"))," to focus on the first occurence of each event. Example: ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/snippets/sfmc-sql-debugging-email-sends#solution"},"Query for Debugging Email Sends"),"."),(0,l.kt)("li",{parentName:"ol"},"The most valuable data here is the ",(0,l.kt)("inlineCode",{parentName:"li"},"EventDate")," field that lets you know when the email was clicked (and whether that happened at all)."),(0,l.kt)("li",{parentName:"ol"},"You can significantly improve the value of that information by checking the ",(0,l.kt)("inlineCode",{parentName:"li"},"LinkName")," and ",(0,l.kt)("inlineCode",{parentName:"li"},"LinkContent")," fields to understand which links proved interesting for your customers."),(0,l.kt)("li",{parentName:"ol"},"Suppose you want to create an extensive report on link clicks. In that case, you might want to use the ",(0,l.kt)("inlineCode",{parentName:"li"},"URL")," field instead of ",(0,l.kt)("inlineCode",{parentName:"li"},"LinkContent")," due to the former not showing final personalisation values. It will be much easier to group clicks or even cleanly delete all AMPScript from them.")),(0,l.kt)("admonition",{title:"You Should Know",type:"note"},(0,l.kt)("p",{parentName:"admonition"},"There might be cases where the click data is wrong - when you see that email as clicked, but in reality, the user didn't engage with it. It sometimes happens for B2B sends when your recipient's administrator uses bots that automatically check the emails for malicious or spammy content. You can recognise such things by checking the EventDate on ",(0,l.kt)("inlineCode",{parentName:"p"},"_Open")," and ",(0,l.kt)("inlineCode",{parentName:"p"},"_Click")," Data Views, as those bots will open the email and click all its links within a second. Something not possible for a actual human.")),(0,l.kt)("hr",null),(0,l.kt)("h3",{id:"_bounce"},"_Bounce"),(0,l.kt)(r.Z,{defaultValue:"fields",values:[{label:"Fields",value:"fields"},{label:"Field Picklist Values",value:"values"},{label:"SQL Query",value:"sql"}],mdxType:"Tabs"},(0,l.kt)(i.Z,{value:"fields",mdxType:"TabItem"},(0,l.kt)("p",null,"Stores information about your Email Bounces. Best place in Marketing Cloud to understand why your messages are not getting delivered."),(0,l.kt)("p",null,"This Data View, along with ",(0,l.kt)("a",{parentName:"p",href:"#_complaint"},(0,l.kt)("inlineCode",{parentName:"a"},"_Complaint")),", should be monitored regularly to assess the health of your email marketing."),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Data Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Nullable"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AccountID"),(0,l.kt)("td",{parentName:"tr",align:null},"Your parent account ID (MID) number"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"OYBAccountID"),(0,l.kt)("td",{parentName:"tr",align:null},"The account ID (MID) number of the child Business Unit that owns the data. If queried on parent Business Unit, it will be ",(0,l.kt)("inlineCode",{parentName:"td"},"Null")),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"JobID"),(0,l.kt)("td",{parentName:"tr",align:null},"The job ID number for the email send"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ListID"),(0,l.kt)("td",{parentName:"tr",align:null},"The list ID number for the list used in the send"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"BatchID"),(0,l.kt)("td",{parentName:"tr",align:null},"The batch ID number for any batches used in the send"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SubscriberID"),(0,l.kt)("td",{parentName:"tr",align:null},"The subscriber ID for the affected subscriber"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SubscriberKey"),(0,l.kt)("td",{parentName:"tr",align:null},"The subscriber key for the affected subscriber"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"EventDate"),(0,l.kt)("td",{parentName:"tr",align:null},"The date the bounce took place"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"IsUnique"),(0,l.kt)("td",{parentName:"tr",align:null},"Whether the event is unique or repeated - 1 for the first occurrence, 0 for subsequent"),(0,l.kt)("td",{parentName:"tr",align:null},"Boolean"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Domain"),(0,l.kt)("td",{parentName:"tr",align:null},"The domain at which the bounce occurred"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"BounceCategoryID"),(0,l.kt)("td",{parentName:"tr",align:null},"The ID number for the bounce category"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"BounceCategory"),(0,l.kt)("td",{parentName:"tr",align:null},"The category of the bounce"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"BounceSubcategoryID"),(0,l.kt)("td",{parentName:"tr",align:null},"The ID number for the bounce subcategory"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"BounceSubcategory"),(0,l.kt)("td",{parentName:"tr",align:null},"The subcategory of the bounce"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"BounceTypeID"),(0,l.kt)("td",{parentName:"tr",align:null},"The ID number for the bounce type"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"BounceType"),(0,l.kt)("td",{parentName:"tr",align:null},"The type of bounce that occurred"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SMTPBounceReason"),(0,l.kt)("td",{parentName:"tr",align:null},"The reason for the bounce relayed by the mail system"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SMTPMessage"),(0,l.kt)("td",{parentName:"tr",align:null},"The message regarding the bounce from the mail system"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SMTPCode"),(0,l.kt)("td",{parentName:"tr",align:null},"The error code for the bounce from the mail system"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"TriggererSendDefinitionObjectID"),(0,l.kt)("td",{parentName:"tr",align:null},"The object ID for the triggered send definition"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"TriggeredSendCustomerKey"),(0,l.kt)("td",{parentName:"tr",align:null},"The customer key for the triggered send"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X"))))),(0,l.kt)(i.Z,{value:"values",mdxType:"TabItem"},(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"BounceCategoryID")," possible values:"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Value"),(0,l.kt)("th",{parentName:"tr",align:null},"Meaning"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"1"),(0,l.kt)("td",{parentName:"tr",align:null},"Hard Bounce")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"2"),(0,l.kt)("td",{parentName:"tr",align:null},"Soft Bounce")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"3"),(0,l.kt)("td",{parentName:"tr",align:null},"Block Bounce")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"4"),(0,l.kt)("td",{parentName:"tr",align:null},"Unknown Bounce")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"5"),(0,l.kt)("td",{parentName:"tr",align:null},"Technical/Other Bounce")))),(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"BounceCategory")," possible values:"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"Hard Bounce"),(0,l.kt)("li",{parentName:"ul"},"Soft Bounce"),(0,l.kt)("li",{parentName:"ul"},"Block Bounce"),(0,l.kt)("li",{parentName:"ul"},"Unknown Bounce"),(0,l.kt)("li",{parentName:"ul"},"Technical/Other Bounce")),(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"BounceSubcategoryID")," possible values:"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Value"),(0,l.kt)("th",{parentName:"tr",align:null},"Meaning"),(0,l.kt)("th",{parentName:"tr",align:null},"Bounce Type"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"1001"),(0,l.kt)("td",{parentName:"tr",align:null},"Complaints"),(0,l.kt)("td",{parentName:"tr",align:null},"Block Bounce")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"1002"),(0,l.kt)("td",{parentName:"tr",align:null},"Blocked"),(0,l.kt)("td",{parentName:"tr",align:null},"Block Bounce")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"1004"),(0,l.kt)("td",{parentName:"tr",align:null},"Content"),(0,l.kt)("td",{parentName:"tr",align:null},"Block Bounce")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"1010"),(0,l.kt)("td",{parentName:"tr",align:null},"Authentication"),(0,l.kt)("td",{parentName:"tr",align:null},"Block Bounce")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"1999"),(0,l.kt)("td",{parentName:"tr",align:null},"Other"),(0,l.kt)("td",{parentName:"tr",align:null},"Soft Bounce, Block Bounce")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"2001"),(0,l.kt)("td",{parentName:"tr",align:null},"User Unknown"),(0,l.kt)("td",{parentName:"tr",align:null},"Hard Bounce")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"2002"),(0,l.kt)("td",{parentName:"tr",align:null},"Domain Unknown"),(0,l.kt)("td",{parentName:"tr",align:null},"Hard Bounce")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"2003"),(0,l.kt)("td",{parentName:"tr",align:null},"Bad Address Syntax"),(0,l.kt)("td",{parentName:"tr",align:null},"Hard Bounce")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"3001"),(0,l.kt)("td",{parentName:"tr",align:null},"Mailbox Full"),(0,l.kt)("td",{parentName:"tr",align:null},"Soft Bounce")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"3002"),(0,l.kt)("td",{parentName:"tr",align:null},"Inactive Account"),(0,l.kt)("td",{parentName:"tr",align:null},"Hard Bounce, Soft Bounce")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"4001"),(0,l.kt)("td",{parentName:"tr",align:null},"Server Too Busy"),(0,l.kt)("td",{parentName:"tr",align:null},"Technical/Other Bounce")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"4002"),(0,l.kt)("td",{parentName:"tr",align:null},"Data Format Error"),(0,l.kt)("td",{parentName:"tr",align:null},"Technical/Other Bounce")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"4003"),(0,l.kt)("td",{parentName:"tr",align:null},"Network Error"),(0,l.kt)("td",{parentName:"tr",align:null},"Technical/Other Bounce")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"4999"),(0,l.kt)("td",{parentName:"tr",align:null},"Other"),(0,l.kt)("td",{parentName:"tr",align:null},"Hard Bounce, Soft Bounce, Technical/Other Bounce")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"9999"),(0,l.kt)("td",{parentName:"tr",align:null},"Unknown"),(0,l.kt)("td",{parentName:"tr",align:null},"Hard Bounce, Soft Bounce, Block Bounce, Unknown Bounce, Technical/Other Bounce")))),(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"BounceSubcategory")," possible values:"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"Complaints"),(0,l.kt)("li",{parentName:"ul"},"Blocked"),(0,l.kt)("li",{parentName:"ul"},"Content"),(0,l.kt)("li",{parentName:"ul"},"Authentication"),(0,l.kt)("li",{parentName:"ul"},"User Unknown"),(0,l.kt)("li",{parentName:"ul"},"Domain Unknown"),(0,l.kt)("li",{parentName:"ul"},"Bad Address Syntax"),(0,l.kt)("li",{parentName:"ul"},"Mailbox Full"),(0,l.kt)("li",{parentName:"ul"},"Inactive Account"),(0,l.kt)("li",{parentName:"ul"},"Server Too Busy"),(0,l.kt)("li",{parentName:"ul"},"Data Format Error"),(0,l.kt)("li",{parentName:"ul"},"Network Error"),(0,l.kt)("li",{parentName:"ul"},"Other"),(0,l.kt)("li",{parentName:"ul"},"Unknown")),(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"BounceTypeId")," possible values:"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Value"),(0,l.kt)("th",{parentName:"tr",align:null},"Meaning"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"0"),(0,l.kt)("td",{parentName:"tr",align:null},"immediate")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"1"),(0,l.kt)("td",{parentName:"tr",align:null},"delayed")))),(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"BounceType")," possible values:"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"immediate"),(0,l.kt)("li",{parentName:"ul"},"delayed")),(0,l.kt)("hr",null)),(0,l.kt)(i.Z,{value:"sql",mdxType:"TabItem"},(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-sql"},"SELECT\n bounce.AccountID\n , bounce.OYBAccountID\n , bounce.JobID\n , bounce.ListID\n , bounce.BatchID\n , bounce.SubscriberID\n , bounce.SubscriberKey\n , bounce.EventDate\n , bounce.IsUnique\n , bounce.Domain\n , bounce.BounceCategoryID\n , bounce.BounceCategory\n , bounce.BounceSubcategoryID\n , bounce.BounceSubcategory\n , bounce.BounceTypeID\n , bounce.BounceType\n , bounce.SMTPBounceReason\n , bounce.SMTPMessage\n , bounce.SMTPCode\n , bounce.TriggererSendDefinitionObjectID\n , bounce.TriggeredSendCustomerKey\nFROM _Bounce AS bounce\n")))),(0,l.kt)("p",null,"When working with ",(0,l.kt)("inlineCode",{parentName:"p"},"_Bounce")," Data View:"),(0,l.kt)("ol",null,(0,l.kt)("li",{parentName:"ol"},"Use ",(0,l.kt)("inlineCode",{parentName:"li"},"JobID"),", ",(0,l.kt)("inlineCode",{parentName:"li"},"ListID"),", ",(0,l.kt)("inlineCode",{parentName:"li"},"BatchID")," and ",(0,l.kt)("inlineCode",{parentName:"li"},"SubscriberId")," or ",(0,l.kt)("inlineCode",{parentName:"li"},"SubscriberKey")," to match various events from multiple Data Views like ",(0,l.kt)("a",{parentName:"li",href:"#_sent"},(0,l.kt)("inlineCode",{parentName:"a"},"_Sent")),", ",(0,l.kt)("a",{parentName:"li",href:"#_open"},(0,l.kt)("inlineCode",{parentName:"a"},"_Open")),", ",(0,l.kt)("a",{parentName:"li",href:"#_click"},(0,l.kt)("inlineCode",{parentName:"a"},"_Click"))," for a single engagement with a particular subscriber. Example: ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/snippets/sfmc-sql-debugging-email-sends#solution"},"Query for Debugging Email Sends"),"."),(0,l.kt)("li",{parentName:"ol"},"Use ",(0,l.kt)("inlineCode",{parentName:"li"},"_bounce.IsUnique = 1")," in ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-join"},(0,l.kt)("inlineCode",{parentName:"a"},"JOIN"))," or ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-where"},(0,l.kt)("inlineCode",{parentName:"a"},"WHERE"))," to focus on the first occurence of each event. Example: ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/snippets/sfmc-sql-debugging-email-sends#solution"},"Query for Debugging Email Sends"),"."),(0,l.kt)("li",{parentName:"ol"},"The ",(0,l.kt)("inlineCode",{parentName:"li"},"Domain")," helps aggregate the bounce data to see any domain-specific problem with deliverability."),(0,l.kt)("li",{parentName:"ol"},(0,l.kt)("inlineCode",{parentName:"li"},"SMTPBounceReason")," is the most helpful information when you want to understand what happened to your send. Be careful - this value can be configured to a custom string by the server owner. Some administrators are using this to inform you about a specific issue. Some are even faking the information to limit the emails coming to their servers from selected sources."),(0,l.kt)("li",{parentName:"ol"},(0,l.kt)("inlineCode",{parentName:"li"},"SMTPCode")," is useful for getting additional data on the Bounce Reason. Watch especially for 541 and 554. In most cases, it means you are considered a spammer by the server or already blocklisted. I recommend you to create an Automation with Verification Activity to get an automated warning whenever there are more than a few occurrences. Triage immediately.")),(0,l.kt)("admonition",{title:"You Should Know",type:"note"},(0,l.kt)("p",{parentName:"admonition"},(0,l.kt)("inlineCode",{parentName:"p"},"SMTPBounceReason")," field is ",(0,l.kt)("inlineCode",{parentName:"p"},"nvarchar(max)")," SQL type, and due to that might be longer than the 4000 characters limit for the Data Extension string length in Salesforce Marketing Cloud. If you want to save this data outside of Data View, be sure to use ",(0,l.kt)("a",{parentName:"p",href:"/docs/sql/sfmc-sql-string-functions#left--right"},(0,l.kt)("inlineCode",{parentName:"a"},"LEFT(SMTPBounceReason, 4000)")),".")),(0,l.kt)("h3",{id:"_complaint"},"_Complaint"),(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"_Complaint")," Data View stores Email Service Providers Feedback Loop (FBL) data. It means that if someone clicks the ",(0,l.kt)("inlineCode",{parentName:"p"},"Report Spam")," button for your email and there is FBL in place, this information will be added to the Data View. It will also result in an unsubscribe event and be visible in the ",(0,l.kt)("a",{parentName:"p",href:"#_unsubscribe"},(0,l.kt)("inlineCode",{parentName:"a"},"_Unsubscribe")),"."),(0,l.kt)("p",null,"Currently, Salesforce Marketing Cloud ",(0,l.kt)("a",{parentName:"p",href:"https://help.salesforce.com/s/articleView?id=000353531&type=1"},"supports Feedback Loops")," for Bluetie (Excite), Comcast, Cox, Fastmail, Microsoft Hotmail, Italia Online, La Poste, Liberty Global, Locaweb, Mail.ru, OpenSRS (Tucows), Rackspace (Mailtrust), Seznam, Synacor, Telenor, Telstra, Terra, UOL (Brazil), USA.net, XS4ALL and Yandex."),(0,l.kt)("p",null,"You can additionally ",(0,l.kt)("a",{parentName:"p",href:"https://help.salesforce.com/s/articleView?id=000312472&type=1"},"register for the Yahoo Feedback Loop"),". Gmail also has a ",(0,l.kt)("a",{parentName:"p",href:"https://help.salesforce.com/s/articleView?id=000353530&type=1"},"Feedback Loop system"),", but it works differently and won't be in ",(0,l.kt)("inlineCode",{parentName:"p"},"_Complaint")," Data View."),(0,l.kt)("p",null,"This Data View, along with ",(0,l.kt)("a",{parentName:"p",href:"#_bounce"},(0,l.kt)("inlineCode",{parentName:"a"},"_Bounce")),", should be monitored regularly to assess the health of your email marketing."),(0,l.kt)(r.Z,{defaultValue:"fields",values:[{label:"Fields",value:"fields"},{label:"SQL Query",value:"sql"}],mdxType:"Tabs"},(0,l.kt)(i.Z,{value:"fields",mdxType:"TabItem"},(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Data Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Nullable"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AccountID"),(0,l.kt)("td",{parentName:"tr",align:null},"Your parent account ID (MID) number"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"OYBAccountID"),(0,l.kt)("td",{parentName:"tr",align:null},"The account ID (MID) number of the child Business Unit that owns the data. If queried on parent Business Unit, it will be ",(0,l.kt)("inlineCode",{parentName:"td"},"Null")),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"JobID"),(0,l.kt)("td",{parentName:"tr",align:null},"The job ID number for the email send"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ListID"),(0,l.kt)("td",{parentName:"tr",align:null},"The list ID number for the list used in the send"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"BatchID"),(0,l.kt)("td",{parentName:"tr",align:null},"The batch ID number for any batches used in the send"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SubscriberID"),(0,l.kt)("td",{parentName:"tr",align:null},"The subscriber ID for the affected subscriber"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SubscriberKey"),(0,l.kt)("td",{parentName:"tr",align:null},"The subscriber key for the affected subscriber"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"EventDate"),(0,l.kt)("td",{parentName:"tr",align:null},"The date the send took place"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"IsUnique"),(0,l.kt)("td",{parentName:"tr",align:null},"Whether the event is unique or repeated - 1 for the first occurrence, 0 for subsequent"),(0,l.kt)("td",{parentName:"tr",align:null},"Boolean"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Domain"),(0,l.kt)("td",{parentName:"tr",align:null},"The domain at which the send occurred"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null}))))),(0,l.kt)(i.Z,{value:"sql",mdxType:"TabItem"},(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-sql"},"SELECT\n complaint.AccountID\n , complaint.OYBAccountID\n , complaint.JobID\n , complaint.ListID\n , complaint.BatchID\n , complaint.SubscriberID\n , complaint.SubscriberKey\n , complaint.EventDate\n , complaint.IsUnique\n , complaint.Domain\nFROM _Complaint AS complaint\n")))),(0,l.kt)("p",null,"When working with ",(0,l.kt)("inlineCode",{parentName:"p"},"_Complaint")," Data View:"),(0,l.kt)("ol",null,(0,l.kt)("li",{parentName:"ol"},"Use ",(0,l.kt)("inlineCode",{parentName:"li"},"JobID"),", ",(0,l.kt)("inlineCode",{parentName:"li"},"ListID"),", ",(0,l.kt)("inlineCode",{parentName:"li"},"BatchID")," and ",(0,l.kt)("inlineCode",{parentName:"li"},"SubscriberId")," or ",(0,l.kt)("inlineCode",{parentName:"li"},"SubscriberKey")," to match various events from multiple Data Views like ",(0,l.kt)("a",{parentName:"li",href:"#_sent"},(0,l.kt)("inlineCode",{parentName:"a"},"_Sent")),", ",(0,l.kt)("a",{parentName:"li",href:"#_open"},(0,l.kt)("inlineCode",{parentName:"a"},"_Open")),", ",(0,l.kt)("a",{parentName:"li",href:"#_click"},(0,l.kt)("inlineCode",{parentName:"a"},"_Click"))," for a single engagement with a particular subscriber."),(0,l.kt)("li",{parentName:"ol"},"Use ",(0,l.kt)("inlineCode",{parentName:"li"},"_complaint.IsUnique = 1")," in ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-join"},(0,l.kt)("inlineCode",{parentName:"a"},"JOIN"))," or ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-where"},(0,l.kt)("inlineCode",{parentName:"a"},"WHERE"))," to focus on the first occurence of each event."),(0,l.kt)("li",{parentName:"ol"},"The ",(0,l.kt)("inlineCode",{parentName:"li"},"Domain")," helps aggregate the Complaint data to see any domain-specific problem with targeting your communication.")),(0,l.kt)("hr",null),(0,l.kt)("h2",{id:"subscription-data-views"},"Subscription Data Views"),(0,l.kt)("p",null,"Subscription management in Salesforce Marketing Cloud is complex. Very complex."),(0,l.kt)("p",null,"It starts with four levels of unsubscriptions:"),(0,l.kt)("ol",null,(0,l.kt)("li",{parentName:"ol"},"List unsubscribe = no more sends from a particular list or publication list."),(0,l.kt)("li",{parentName:"ol"},"Business Unit unsubscribe = no more sends from a particular business unit."),(0,l.kt)("li",{parentName:"ol"},"Master unsubscribe = no more sends from your Marketing Cloud."),(0,l.kt)("li",{parentName:"ol"},"Global unsubscribe = no more sends from Marketing Cloud. Any, globally.")),(0,l.kt)("p",null,"And it gets even more interesting when you consider that triggering specific unsubscription level depends on email configuration, Email Studio configuration, preference center configuration and subscriber's behaviour."),(0,l.kt)("p",null,"Oh, and there is no out-of-the-box unsubscription from Data Extensions, which are currently the most popular segmentation and targeting tool."),(0,l.kt)("p",null,"To give us at least a chance to make sense of that mess, Salesforce created multiple System Data Views related to (un)subscriptions."),(0,l.kt)("admonition",{title:"You Should Know",type:"note"},(0,l.kt)("p",{parentName:"admonition"},"Spam Complaint and List-Unsubscribe Header are pretty particular unsubscription use cases. They are added to ",(0,l.kt)("a",{parentName:"p",href:"#_unsubscribe"},(0,l.kt)("inlineCode",{parentName:"a"},"_Unsubscribe"))," and ",(0,l.kt)("a",{parentName:"p",href:"#_businessunitunsubscribe"},(0,l.kt)("inlineCode",{parentName:"a"},"_BusinessUnitUnsubscribe"))," as unsubscriptions from a list used in send (for example, ID of Publication List selected for the send). In reality, Marketing Cloud will perform automatic unsubscribe from the All Subscriber list (depending on Email Studio settings - Child BU's or Enterprise one), not the list mentioned in ",(0,l.kt)("inlineCode",{parentName:"p"},"ListID"),"."),(0,l.kt)("p",{parentName:"admonition"},"As a result, when querying, you will see the list-specific unsubscribe that doesn't result in unsubscription from the list but instead blocks all commercial communication as a Business Unit or Master unsubscribe."),(0,l.kt)("p",{parentName:"admonition"},"Custom solution (Automation with Query and Script Activities) will be necessary to perform the list-specific unsubscribe.")),(0,l.kt)("h3",{id:"_unsubscribe"},"_Unsubscribe"),(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"_Unsubscribe")," Data View stores data about unsubscribe events. The wording here is crucial, as it explains the difference from ",(0,l.kt)("a",{parentName:"p",href:"#_subscribers"},(0,l.kt)("inlineCode",{parentName:"a"},"_Subscribers"))," Data View unsubsrciption counts."),(0,l.kt)("p",null,"In ",(0,l.kt)("inlineCode",{parentName:"p"},"_Subscribers"),", you can check what is the ",(0,l.kt)("strong",{parentName:"p"},"current subscription status")," for the All Subscribers list. In ",(0,l.kt)("inlineCode",{parentName:"p"},"_Unsubscribe"),", you see the ",(0,l.kt)("strong",{parentName:"p"},"unsubscription events")," happening from List-Unsubscribe Header, ",(0,l.kt)("inlineCode",{parentName:"p"},"LogUnsubEvent")," API call, Reply Mail Management responses, Complaints and out-of-the-box Preference Center - all linked to a specific ",(0,l.kt)("a",{parentName:"p",href:"#_job"},(0,l.kt)("inlineCode",{parentName:"a"},"_Job")),". It is also not limited to All Subscribers but also covers unsubscribes from other types of lists."),(0,l.kt)("p",null,"It means that status changes like Import Activity, direct API change, manual change in the Email Studio (not Job-specific) will be reflected in the ",(0,l.kt)("inlineCode",{parentName:"p"},"_Subscribers")," Data View, but not in the ",(0,l.kt)("inlineCode",{parentName:"p"},"_Unsubscribe"),". On the other hand, ",(0,l.kt)("inlineCode",{parentName:"p"},"UnsubEvents")," does not necessarily change the Status in the ",(0,l.kt)("inlineCode",{parentName:"p"},"_Subscribers"),". For example, taking care of List-Unsubscribe Header clicks require dedicated Automation to get this data from ",(0,l.kt)("inlineCode",{parentName:"p"},"_Unsubscribe")," Data View and push it to other parts of your consent data model."),(0,l.kt)("p",null,"This Data View stores data only for six-months, so retention-less ",(0,l.kt)("inlineCode",{parentName:"p"},"_Subscribers")," Data View might show more unsubscribed records if you are not cleaning them from SFMC regularly."),(0,l.kt)("p",null,"All of this makes ",(0,l.kt)("inlineCode",{parentName:"p"},"_Unsubscribe")," a much better source of knowledge about unsubscription."),(0,l.kt)(r.Z,{defaultValue:"fields",values:[{label:"Fields",value:"fields"},{label:"SQL Query",value:"sql"}],mdxType:"Tabs"},(0,l.kt)(i.Z,{value:"fields",mdxType:"TabItem"},(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Data Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Nullable"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AccountID"),(0,l.kt)("td",{parentName:"tr",align:null},"Your account ID number"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"OYBAccountID"),(0,l.kt)("td",{parentName:"tr",align:null},"The account ID (MID) number of the child Business Unit that owns the data. If queried on parent Business Unit, it will be ",(0,l.kt)("inlineCode",{parentName:"td"},"Null")),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"JobID"),(0,l.kt)("td",{parentName:"tr",align:null},"The job ID number for the email send"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ListID"),(0,l.kt)("td",{parentName:"tr",align:null},"The list ID number for the list used in the send"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"BatchID"),(0,l.kt)("td",{parentName:"tr",align:null},"The batch ID number for any batches used in the send"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SubscriberID"),(0,l.kt)("td",{parentName:"tr",align:null},"The subscriber ID for the affected subscriber"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SubscriberKey"),(0,l.kt)("td",{parentName:"tr",align:null},"The subscriber key for the affected subscriber"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"EventDate"),(0,l.kt)("td",{parentName:"tr",align:null},"The date the unsubscribe took place"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"IsUnique"),(0,l.kt)("td",{parentName:"tr",align:null},"Whether the event is unique or repeated - 1 for the first occurrence, 0 for subsequent"),(0,l.kt)("td",{parentName:"tr",align:null},"Boolean"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Domain"),(0,l.kt)("td",{parentName:"tr",align:null},"The domain at which the unsubscribe occurred"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null}))))),(0,l.kt)(i.Z,{value:"sql",mdxType:"TabItem"},(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-sql"},"SELECT\n unsub.AccountID\n , unsub.OYBAccountID\n , unsub.JobID\n , unsub.ListID\n , unsub.BatchID\n , unsub.SubscriberID\n , unsub.SubscriberKey\n , unsub.EventDate\n , unsub.IsUnique\n , unsub.Domain\nFROM _Unsubscribe AS unsub\n")))),(0,l.kt)("p",null,"When working with ",(0,l.kt)("inlineCode",{parentName:"p"},"_Unsubscribe")," Data View:"),(0,l.kt)("ol",null,(0,l.kt)("li",{parentName:"ol"},"Use ",(0,l.kt)("inlineCode",{parentName:"li"},"JobID"),", ",(0,l.kt)("inlineCode",{parentName:"li"},"ListID"),", ",(0,l.kt)("inlineCode",{parentName:"li"},"BatchID")," and ",(0,l.kt)("inlineCode",{parentName:"li"},"SubscriberId")," or ",(0,l.kt)("inlineCode",{parentName:"li"},"SubscriberKey")," to match various events from multiple Data Views like ",(0,l.kt)("a",{parentName:"li",href:"#_job"},(0,l.kt)("inlineCode",{parentName:"a"},"_Job"))," and ",(0,l.kt)("a",{parentName:"li",href:"#_subscribers"},(0,l.kt)("inlineCode",{parentName:"a"},"_Subscribers"))," to check unsubscription context."),(0,l.kt)("li",{parentName:"ol"},"Use ",(0,l.kt)("inlineCode",{parentName:"li"},"_unsubscribe.IsUnique = 1")," in ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-join"},(0,l.kt)("inlineCode",{parentName:"a"},"JOIN"))," or ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-where"},(0,l.kt)("inlineCode",{parentName:"a"},"WHERE"))," to focus on the first occurence of each event."),(0,l.kt)("li",{parentName:"ol"},"If you query this Data View on the child Business Unit, it will return only unsubscribe events from that specific BU."),(0,l.kt)("li",{parentName:"ol"},"The most valuable data here are:",(0,l.kt)("ul",{parentName:"li"},(0,l.kt)("li",{parentName:"ul"},(0,l.kt)("inlineCode",{parentName:"li"},"EventDate")," field that lets you know when the unsubscription happened"),(0,l.kt)("li",{parentName:"ul"},(0,l.kt)("inlineCode",{parentName:"li"},"ListID")," field that tells you which list is impacted by the unsubscription")))),(0,l.kt)("admonition",{title:"You Should Know",type:"note"},(0,l.kt)("p",{parentName:"admonition"},'If the subscriber clicks "Unsubscribe from All" on the out-of-the-box unsubscription center, it will perform Master Unsubscribe from all Lists. As it is a single event, it will be stored as a single record in the ',(0,l.kt)("inlineCode",{parentName:"p"},"_Unsubscribe")," Data View with random ListID assigned to it. For a complete picture, you will need to check ",(0,l.kt)("a",{parentName:"p",href:"#_listsubscribers"},(0,l.kt)("inlineCode",{parentName:"a"},"_ListSubscribers"))," Data View.")),(0,l.kt)("hr",null),(0,l.kt)("h3",{id:"_businessunitunsubscribes"},"_BusinessUnitUnsubscribes"),(0,l.kt)("p",null,(0,l.kt)("a",{parentName:"p",href:"#_subscribers"},(0,l.kt)("inlineCode",{parentName:"a"},"_Subscribers"))," Data View might give you information about the current state of subscriptions on the All Subscribers list. But if in Email Studio you configure Business Unit Level unsubscribes, this information will not be helpful, as the data stored there will not reflect the subscription status in a specific Business Unit."),(0,l.kt)("p",null,"Here comes the fresh ",(0,l.kt)("inlineCode",{parentName:"p"},"_BusinessUnitUnsubscribes")," Data View. It shows you the only unsubscribed contacts for each Business Unit. If the contact resubscribes - it will disappear from this Data View."),(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"_BusinessUnitUnsubscribes")," Data View will work differently depending on your SFMC ",(0,l.kt)("a",{parentName:"p",href:"https://help.salesforce.com/s/articleView?id=sf.mc_es_unsubscribe_settings.htm&type=5"},"unsubscription configuration"),'. You will be able to query it from the Child BU level only for Business Units set to "unsubscribe from this business unit only".'),(0,l.kt)(r.Z,{defaultValue:"fields",values:[{label:"Fields",value:"fields"},{label:"Field Picklist Values",value:"values"},{label:"SQL Query",value:"sql"}],mdxType:"Tabs"},(0,l.kt)(i.Z,{value:"fields",mdxType:"TabItem"},(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Data Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Nullable"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"BusinessUnitID"),(0,l.kt)("td",{parentName:"tr",align:null},"The Account ID for the Business Unit"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SubscriberID"),(0,l.kt)("td",{parentName:"tr",align:null},"The subscriber ID for the affected subscriber"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SubscriberKey"),(0,l.kt)("td",{parentName:"tr",align:null},"The subscriber key for the affected subscriber"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"UnsubDateUTC"),(0,l.kt)("td",{parentName:"tr",align:null},"The date the subscriber unsubscribed on the BU."),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"UnsubReason"),(0,l.kt)("td",{parentName:"tr",align:null},"The reason listed is a custom value configured by your administrator."),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X"))))),(0,l.kt)(i.Z,{value:"values",mdxType:"TabItem"},(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"UnsubReason")," possible values:"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"Spam Complaint"),(0,l.kt)("li",{parentName:"ul"},"Unsubscribed from list details on subscriber properties dialog."),(0,l.kt)("li",{parentName:"ul"},"Unsubscribed by Salesforce Marketing Cloud RMM service based on subscriber Leave/Reply email."),(0,l.kt)("li",{parentName:"ul"},"Unsubscribed by subscriber edit API call."),(0,l.kt)("li",{parentName:"ul"},"Unsubscribed from the Subscription Center"),(0,l.kt)("li",{parentName:"ul"},"Unsubscribed via Import")),(0,l.kt)("hr",null)),(0,l.kt)(i.Z,{value:"sql",mdxType:"TabItem"},(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-sql"},"SELECT\n buUnsub.BusinessUnitID\n , buUnsub.SubscriberID\n , buUnsub.SubscriberKey\n , buUnsub.UnsubDateUTC\n , buUnsub.UnsubReason\nFROM _BusinessUnitUnsubscribes AS buUnsub\n")))),(0,l.kt)("p",null,"When working with ",(0,l.kt)("inlineCode",{parentName:"p"},"_BusinessUnitUnsubscribes")," Data View:"),(0,l.kt)("ol",null,(0,l.kt)("li",{parentName:"ol"},"Remember that it stores only currently unsubscribed contacts. Not unsubscribe event data (that's in ",(0,l.kt)("a",{parentName:"li",href:"#_unsubscribe"},(0,l.kt)("inlineCode",{parentName:"a"},"_Unsubscribe")),") and not other statuses (like bounced, held). It will also not show unsubscribed users after they resubscribed or got deleted."),(0,l.kt)("li",{parentName:"ol"},(0,l.kt)("inlineCode",{parentName:"li"},"SubscriberID")," or ",(0,l.kt)("inlineCode",{parentName:"li"},"SubscriberKey")," along with ",(0,l.kt)("inlineCode",{parentName:"li"},"UnsubDateUTC")," might fuzzy match the data in this data view with ",(0,l.kt)("a",{parentName:"li",href:"#_unsubscribe"},(0,l.kt)("inlineCode",{parentName:"a"},"_Unsubscribe")),"."),(0,l.kt)("li",{parentName:"ol"},(0,l.kt)("inlineCode",{parentName:"li"},"UnsubDateUTC"),", as name suggests, is in UTC instead of the SFMC-standard UTC-6. Remember to use ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-date-functions#dateadd"},(0,l.kt)("inlineCode",{parentName:"a"},"DATEADD"))," to normalize it before comparing to other system dates."),(0,l.kt)("li",{parentName:"ol"},"The real treat in this data view (apart from finally having an easy option to see Business Unit unsubscribes) is the ",(0,l.kt)("inlineCode",{parentName:"li"},"UnsubReason")," field that can tell you more about the unsubscribe."),(0,l.kt)("li",{parentName:"ol"},"This Data View, along with ",(0,l.kt)("a",{parentName:"li",href:"#_subscribers"},(0,l.kt)("inlineCode",{parentName:"a"},"_Subscribers")),", ",(0,l.kt)("a",{parentName:"li",href:"#_enterpriseattribute"},(0,l.kt)("inlineCode",{parentName:"a"},"_EnterpriseAttribute"))," and ",(0,l.kt)("a",{parentName:"li",href:"#_listsubscribers"},(0,l.kt)("inlineCode",{parentName:"a"},"_ListSubscribers")),", does not have six-month data retention.")),(0,l.kt)("admonition",{title:"You Should Know",type:"note"},(0,l.kt)("p",{parentName:"admonition"},(0,l.kt)("inlineCode",{parentName:"p"},"UnsubDateUTC")," not only uses a different timezone from the rest of the system dates. It differs by a few milliseconds from ",(0,l.kt)("a",{parentName:"p",href:"#_unsubscribe"},(0,l.kt)("inlineCode",{parentName:"a"},"_Unsubscribe"))," ",(0,l.kt)("inlineCode",{parentName:"p"},"EventDate"),". When querying (SFMC doesn't show seconds for date fields), you won't see it, but the comparison is using the full datetime value."),(0,l.kt)("p",{parentName:"admonition"},"Because of it, you cannot match it out-of-the-box. ",(0,l.kt)("a",{parentName:"p",href:"/docs/sql/sfmc-sql-date-functions#datediff"},(0,l.kt)("inlineCode",{parentName:"a"},"DATEDIFF"))," is here to save the day:"),(0,l.kt)("pre",{parentName:"admonition"},(0,l.kt)("code",{parentName:"pre",className:"language-sql",metastring:'title="DATEDIFF will allow you to compare despite the difference"',title:'"DATEDIFF',will:!0,allow:!0,you:!0,to:!0,compare:!0,despite:!0,the:!0,'difference"':!0},"DATEDIFF(MINUTE, _Unsubscribe.EventDate, DATEADD(HOUR, -6, _BusinessUnitUnsubscribes.UnsubDateUTC)) < 1\n"))),(0,l.kt)("hr",null),(0,l.kt)("h3",{id:"_listsubscribers"},"_ListSubscribers"),(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"_ListSubscribers")," Data View stores data about the current status of the subscription. It might sound similar to ",(0,l.kt)("a",{parentName:"p",href:"#_subscribers"},(0,l.kt)("inlineCode",{parentName:"a"},"_Subscribers"))," and ",(0,l.kt)("a",{parentName:"p",href:"#_businessunitunsubscribes"},(0,l.kt)("inlineCode",{parentName:"a"},"_BusinessUnitUnsubscribes")),", but there are significant differences:"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},(0,l.kt)("inlineCode",{parentName:"li"},"_Subscribers")," has data about All Subscribers list only. ",(0,l.kt)("inlineCode",{parentName:"li"},"_ListSubscribers")," shows status for all Lists available in Salesforce Marketing Cloud."),(0,l.kt)("li",{parentName:"ul"},(0,l.kt)("inlineCode",{parentName:"li"},"_BusinessUnitUnsubscribes")," has data about contacts unsubscribed from All Subscribers on every Business Unit. ",(0,l.kt)("inlineCode",{parentName:"li"},"_ListSubscribers")," doesn't show Business Unit information, but it covers all Lists and all Statuses.")),(0,l.kt)(r.Z,{defaultValue:"fields",values:[{label:"Fields",value:"fields"},{label:"Field Picklist Values",value:"values"},{label:"SQL Query",value:"sql"}],mdxType:"Tabs"},(0,l.kt)(i.Z,{value:"fields",mdxType:"TabItem"},(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Data Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Nullable"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AddedBy"),(0,l.kt)("td",{parentName:"tr",align:null},"The ID of the user who ran the process that added the subscriber (might also be ",(0,l.kt)("inlineCode",{parentName:"td"},"0")," or ",(0,l.kt)("inlineCode",{parentName:"td"},"-1000"),")"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AddMethod"),(0,l.kt)("td",{parentName:"tr",align:null},"The method by which the subscriber was added"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"CreatedDate"),(0,l.kt)("td",{parentName:"tr",align:null},"The date the subscriber was added to the specific list"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"DateUnsubscribed"),(0,l.kt)("td",{parentName:"tr",align:null},"The date the subscriber unsubscribed"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"EmailAddress"),(0,l.kt)("td",{parentName:"tr",align:null},"The subscriber's email address"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ListID"),(0,l.kt)("td",{parentName:"tr",align:null},"The list ID number for the list used in the send"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ListName"),(0,l.kt)("td",{parentName:"tr",align:null},"The name of the list containing the subscribers"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ListType"),(0,l.kt)("td",{parentName:"tr",align:null},"Shows whether the type is list or group"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Status"),(0,l.kt)("td",{parentName:"tr",align:null},"The status of the subscriber"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SubscriberID"),(0,l.kt)("td",{parentName:"tr",align:null},"The subscriber ID for the affected subscriber"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SubscriberKey"),(0,l.kt)("td",{parentName:"tr",align:null},"The subscriber key for the affected subscriber"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SubscriberType"),(0,l.kt)("td",{parentName:"tr",align:null},"The type of subscriber (it will be ",(0,l.kt)("inlineCode",{parentName:"td"},"ExactTarget"),")"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X"))))),(0,l.kt)(i.Z,{value:"values",mdxType:"TabItem"},(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"AddMethod")," possible values:"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"API"),(0,l.kt)("li",{parentName:"ul"},"Imported"),(0,l.kt)("li",{parentName:"ul"},"WebApplication"),(0,l.kt)("li",{parentName:"ul"},"DataExtensionSend"),(0,l.kt)("li",{parentName:"ul"},"Unknown")),(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"ListType")," possible values:"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"Publication List"),(0,l.kt)("li",{parentName:"ul"},"Suppression List"),(0,l.kt)("li",{parentName:"ul"},"List"),(0,l.kt)("li",{parentName:"ul"},"Group"),(0,l.kt)("li",{parentName:"ul"},"FTAF List"),(0,l.kt)("li",{parentName:"ul"},"Unknown")),(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"Status")," possible values:"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"active"),(0,l.kt)("li",{parentName:"ul"},"held"),(0,l.kt)("li",{parentName:"ul"},"unsubscribed"),(0,l.kt)("li",{parentName:"ul"},"bounced")),(0,l.kt)("hr",null)),(0,l.kt)(i.Z,{value:"sql",mdxType:"TabItem"},(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-sql"},"SELECT\n listSub.AddedBy\n , listSub.AddMethod\n , listSub.CreatedDate\n , listSub.DateUnsubscribed\n , listSub.EmailAddress\n , listSub.ListID\n , listSub.ListName\n , listSub.ListType\n , listSub.Status\n , listSub.SubscriberID\n , listSub.SubscriberKey\n , listSub.SubscriberType\nFROM _ListSubscribers AS listSub\n")))),(0,l.kt)("p",null,"When working with ",(0,l.kt)("inlineCode",{parentName:"p"},"_ListSubscribers")," Data View:"),(0,l.kt)("ol",null,(0,l.kt)("li",{parentName:"ol"},"Thanks to having ",(0,l.kt)("inlineCode",{parentName:"li"},"ListID"),", ",(0,l.kt)("inlineCode",{parentName:"li"},"ListName")," and ",(0,l.kt)("inlineCode",{parentName:"li"},"ListType")," fields, it allows you to make sense of the ",(0,l.kt)("inlineCode",{parentName:"li"},"ListID")," field available in all other engagement-based System Data Views."),(0,l.kt)("li",{parentName:"ol"},"This Data View, along with ",(0,l.kt)("a",{parentName:"li",href:"#_subscribers"},(0,l.kt)("inlineCode",{parentName:"a"},"_Subscribers")),", ",(0,l.kt)("a",{parentName:"li",href:"#_enterpriseattribute"},(0,l.kt)("inlineCode",{parentName:"a"},"_EnterpriseAttribute"))," and ",(0,l.kt)("a",{parentName:"li",href:"#_businessunitunsubscribes"},(0,l.kt)("inlineCode",{parentName:"a"},"_BusinessUnitUnsubscribes")),", does not have six-month data retention."),(0,l.kt)("li",{parentName:"ol"},"You can only query Lists available on the current Business Unit. It's not possible to check Child's List subscription status from the Parent BU. The exception is the All Subscribers list that is shared across all Business Units.")),(0,l.kt)("hr",null),(0,l.kt)("h2",{id:"mobile-connect-data-views"},"Mobile Connect Data Views"),(0,l.kt)("p",null,"Learn more about Mobile Connect ",(0,l.kt)("a",{parentName:"p",href:"/docs/config/sfmc-mobile-connect-data-views"},"SMS Data Views here"),"."),(0,l.kt)("hr",null),(0,l.kt)("h2",{id:"journey-data-views"},"Journey Data Views"),(0,l.kt)("h3",{id:"_journey"},"_Journey"),(0,l.kt)("p",null,"Stores information about your Journeys for when context matters."),(0,l.kt)(r.Z,{defaultValue:"fields",values:[{label:"Fields",value:"fields"},{label:"Field Picklist Values",value:"values"},{label:"SQL Query",value:"sql"}],mdxType:"Tabs"},(0,l.kt)(i.Z,{value:"fields",mdxType:"TabItem"},(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Data Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Nullable"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"VersionID"),(0,l.kt)("td",{parentName:"tr",align:null},"The unique identifier for the version of the Journey"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"JourneyID"),(0,l.kt)("td",{parentName:"tr",align:null},"The unique identifier for the Journey. There are one or more VersionID's associated to a JourneyID."),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"JourneyName"),(0,l.kt)("td",{parentName:"tr",align:null},"The name of the Journey"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"VersionNumber"),(0,l.kt)("td",{parentName:"tr",align:null},"The version number of the version of the Journey"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"CreatedDate"),(0,l.kt)("td",{parentName:"tr",align:null},"The date that the version of the Journey was created"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"LastPublishedDate"),(0,l.kt)("td",{parentName:"tr",align:null},"The date that the version of the Journey was last published"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ModifiedDate"),(0,l.kt)("td",{parentName:"tr",align:null},"The date that the version of the Journey was last edited"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"JourneyStatus"),(0,l.kt)("td",{parentName:"tr",align:null},"The current running mode of the Journey"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null}))))),(0,l.kt)(i.Z,{value:"values",mdxType:"TabItem"},(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"JourneyStatus")," possible values:"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"Draft"),(0,l.kt)("li",{parentName:"ul"},"Running"),(0,l.kt)("li",{parentName:"ul"},"Finishing"),(0,l.kt)("li",{parentName:"ul"},"Stopped"),(0,l.kt)("li",{parentName:"ul"},"Deleted")),(0,l.kt)("hr",null)),(0,l.kt)(i.Z,{value:"sql",mdxType:"TabItem"},(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-sql"},"SELECT\n journey.VersionID\n , journey.JourneyID\n , journey.JourneyName\n , journey.VersionNumber\n , journey.CreatedDate\n , journey.LastPublishedDate\n , journey.ModifiedDate\n , journey.JourneyStatus\nFROM _Journey AS journey\n")))),(0,l.kt)("p",null,"When working with ",(0,l.kt)("inlineCode",{parentName:"p"},"_Journey")," Data View:"),(0,l.kt)("ol",null,(0,l.kt)("li",{parentName:"ol"},(0,l.kt)("inlineCode",{parentName:"li"},"VersionID")," field is perfect to ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-join"},(0,l.kt)("inlineCode",{parentName:"a"},"JOIN"))," with ",(0,l.kt)("a",{parentName:"li",href:"#_journeyactivity"},(0,l.kt)("inlineCode",{parentName:"a"},"_JourneyActivity")),". It lets you map multi-channel engagement to a particular Journey (visible in ",(0,l.kt)("inlineCode",{parentName:"li"},"JourneyName"),") and its specific version (as shown in ",(0,l.kt)("inlineCode",{parentName:"li"},"VersionNumber"),")."),(0,l.kt)("li",{parentName:"ol"},"You can also connect it to SMS channel using ",(0,l.kt)("a",{parentName:"li",href:"/docs/config/sfmc-mobile-connect-data-views#_smsmessagetracking"},"_SMSMessageTracking")," Data View by making a ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-join"},(0,l.kt)("inlineCode",{parentName:"a"},"JOIN"))," ",(0,l.kt)("inlineCode",{parentName:"li"},"ON journey.VersionID = smsTracking.JBDefinitionID"),"."),(0,l.kt)("li",{parentName:"ol"},"Use ",(0,l.kt)("inlineCode",{parentName:"li"},"JourneyStatus")," to check what is the current Journey Status. It is fantastic for both the ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-where"},(0,l.kt)("inlineCode",{parentName:"a"},"WHERE"))," statement and a data point for engagement analysis. Think about scheduled Automation that finds all emails performing below expectations and checks which are in the Active Journeys. For all found, it sends you a notification to check and improve. For awful results, you can even use this data in Script Activity to automatically stop the Journey with the SFMC REST API."),(0,l.kt)("li",{parentName:"ol"},"The Date fields (",(0,l.kt)("inlineCode",{parentName:"li"},"CreatedDate"),", ",(0,l.kt)("inlineCode",{parentName:"li"},"LastPublishedDate"),", ",(0,l.kt)("inlineCode",{parentName:"li"},"ModifiedDate"),") are cool for automated cleanup of old Journeys, especially when paired with the ",(0,l.kt)("a",{parentName:"li",href:"#_sent"},(0,l.kt)("inlineCode",{parentName:"a"},"_Sent"))," data. For example, you can create monthly Automation that checks all Journeys that were last modified at least three months ago and, based on the send volume or performance, stop them and notify you about that."),(0,l.kt)("li",{parentName:"ol"},"You can query only Journeys that currently exists in your Business Unit.")),(0,l.kt)("admonition",{title:"You Should Know",type:"note"},(0,l.kt)("p",{parentName:"admonition"},(0,l.kt)("inlineCode",{parentName:"p"},"_Journey")," Data View shows data limited to a specific Business Unit. Your parent Business Unit has access to ",(0,l.kt)("a",{parentName:"p",href:"#_sent"},(0,l.kt)("inlineCode",{parentName:"a"},"_Sent")),", ",(0,l.kt)("a",{parentName:"p",href:"#_open"},(0,l.kt)("inlineCode",{parentName:"a"},"_Open")),", ",(0,l.kt)("a",{parentName:"p",href:"#_click"},(0,l.kt)("inlineCode",{parentName:"a"},"_Click"))," and other data from all Business Units, but this is not the case with ",(0,l.kt)("inlineCode",{parentName:"p"},"_Journey"),". You can query only those Journeys that were created in the Business Unit where you execute your SQL snippet."),(0,l.kt)("p",{parentName:"admonition"},"Always consider this when choosing Business Unit to execute the query and the type of ",(0,l.kt)("a",{parentName:"p",href:"/docs/sql/sfmc-sql-join"},(0,l.kt)("inlineCode",{parentName:"a"},"JOIN"))," statement.")),(0,l.kt)("hr",null),(0,l.kt)("h3",{id:"_journeyactivity"},"_JourneyActivity"),(0,l.kt)("p",null,"Stores information about Activities available in your Journeys. Must-have for joining Email data with Journey data."),(0,l.kt)(r.Z,{defaultValue:"fields",values:[{label:"Fields",value:"fields"},{label:"Field Picklist Values",value:"values"},{label:"SQL Query",value:"sql"}],mdxType:"Tabs"},(0,l.kt)(i.Z,{value:"fields",mdxType:"TabItem"},(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Data Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Nullable"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"VersionID"),(0,l.kt)("td",{parentName:"tr",align:null},"The unique identifier for the version of the Journey"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ActivityID"),(0,l.kt)("td",{parentName:"tr",align:null},"The unique identifier for the activity. There are one or more ActivityID's associated to a VersionID."),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ActivityName"),(0,l.kt)("td",{parentName:"tr",align:null},"The name of the activity"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ActivityExternalKey"),(0,l.kt)("td",{parentName:"tr",align:null},"The external key associated with the activity"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"JourneyActivityObjectID"),(0,l.kt)("td",{parentName:"tr",align:null},"Use this unique identifier to join to email tracking system Data Views to identify a Journey email's Triggered Send Definition."),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ActivityType"),(0,l.kt)("td",{parentName:"tr",align:null},"The type of activity"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X"))))),(0,l.kt)(i.Z,{value:"values",mdxType:"TabItem"},(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"ActivityType")," possible values:"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},(0,l.kt)("inlineCode",{parentName:"li"},"null")),(0,l.kt)("li",{parentName:"ul"},"APIEvent"),(0,l.kt)("li",{parentName:"ul"},"Audience"),(0,l.kt)("li",{parentName:"ul"},"AutomationAudience"),(0,l.kt)("li",{parentName:"ul"},"CloudPagesSmartCaptureSubmissionEvent"),(0,l.kt)("li",{parentName:"ul"},"ContactEvent"),(0,l.kt)("li",{parentName:"ul"},"EMAILAUDIENCE"),(0,l.kt)("li",{parentName:"ul"},"EMAILV2"),(0,l.kt)("li",{parentName:"ul"},"ENGAGEMENTDECISION"),(0,l.kt)("li",{parentName:"ul"},"Event"),(0,l.kt)("li",{parentName:"ul"},"ExitCriteria"),(0,l.kt)("li",{parentName:"ul"},"MULTICRITERIADECISION"),(0,l.kt)("li",{parentName:"ul"},"NOOP"),(0,l.kt)("li",{parentName:"ul"},"PUSHNOTIFICATIONACTIVITY"),(0,l.kt)("li",{parentName:"ul"},"RANDOMSPLIT"),(0,l.kt)("li",{parentName:"ul"},"SENDTOLINESYNC"),(0,l.kt)("li",{parentName:"ul"},"StartActivity"),(0,l.kt)("li",{parentName:"ul"},"STOWAIT"),(0,l.kt)("li",{parentName:"ul"},"transactional-api"),(0,l.kt)("li",{parentName:"ul"},"UPDATECONTACTDATA"),(0,l.kt)("li",{parentName:"ul"},"WAIT")),(0,l.kt)("hr",null)),(0,l.kt)(i.Z,{value:"sql",mdxType:"TabItem"},(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-sql"},"SELECT\n journeyActivity.VersionID\n , journeyActivity.ActivityID\n , journeyActivity.ActivityName\n , journeyActivity.ActivityExternalKey\n , journeyActivity.JourneyActivityObjectID\n , journeyActivity.ActivityType\nFROM _JourneyActivity AS journeyActivity\n")))),(0,l.kt)("p",null,"When working with ",(0,l.kt)("inlineCode",{parentName:"p"},"_JourneyActivity")," Data View:"),(0,l.kt)("ol",null,(0,l.kt)("li",{parentName:"ol"},"There are two key fields here: ",(0,l.kt)("inlineCode",{parentName:"li"},"VersionID")," and ",(0,l.kt)("inlineCode",{parentName:"li"},"JourneyActivityObjectID"),". ",(0,l.kt)("inlineCode",{parentName:"li"},"JourneyActivityObjectID")," lets you match Journey Activity with specific Email Send. Use ",(0,l.kt)("inlineCode",{parentName:"li"},"TriggererSendDefinitionObjectID")," available on either ",(0,l.kt)("a",{parentName:"li",href:"#_job"},(0,l.kt)("inlineCode",{parentName:"a"},"_Job")),", ",(0,l.kt)("a",{parentName:"li",href:"#_sent"},(0,l.kt)("inlineCode",{parentName:"a"},"_Sent")),", ",(0,l.kt)("a",{parentName:"li",href:"#_open"},(0,l.kt)("inlineCode",{parentName:"a"},"_Open")),", ",(0,l.kt)("a",{parentName:"li",href:"#_click"},(0,l.kt)("inlineCode",{parentName:"a"},"_Click")," ")," or ",(0,l.kt)("a",{parentName:"li",href:"#_bounce"},(0,l.kt)("inlineCode",{parentName:"a"},"_Bounce"))," Data View. It is handy when you later use the ",(0,l.kt)("inlineCode",{parentName:"li"},"VersionID")," field to ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-join"},(0,l.kt)("inlineCode",{parentName:"a"},"JOIN"))," ",(0,l.kt)("a",{parentName:"li",href:"#_journey"},(0,l.kt)("inlineCode",{parentName:"a"},"_Journey"))," Data View and with this connect specific Email engagement with particular Journey and its exact version. Fantastic for full scope reporting."),(0,l.kt)("li",{parentName:"ol"},"You can also connect it to SMS channel using ",(0,l.kt)("a",{parentName:"li",href:"/docs/config/sfmc-mobile-connect-data-views#_smsmessagetracking"},"_SMSMessageTracking")," Data View by making a ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-join"},(0,l.kt)("inlineCode",{parentName:"a"},"JOIN"))," ",(0,l.kt)("inlineCode",{parentName:"li"},"ON journeyActivity.ActivityID = smsTracking.JBActivityID"),"."),(0,l.kt)("li",{parentName:"ol"},"With the help of ",(0,l.kt)("a",{parentName:"li",href:"#_journey"},(0,l.kt)("inlineCode",{parentName:"a"},"_Journey"))," Data View, you can use the ",(0,l.kt)("inlineCode",{parentName:"li"},"ActivityType")," field for an excellent little report created with SQL that will show which Journeys use which channels and what types of logic. For a more in-depth understanding of what happens in Journey, you need to use Script Activity with REST API instead, but SQL is perfect for glancing at the multi-channel use."),(0,l.kt)("li",{parentName:"ol"},(0,l.kt)("inlineCode",{parentName:"li"},"_JourneyActivity")," Data View holds data about activities from deleted Journeys and Journey Versions, so if you want to see only activities currently in use, ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-join"},(0,l.kt)("inlineCode",{parentName:"a"},"JOIN"))," ",(0,l.kt)("a",{parentName:"li",href:"#_journey"},(0,l.kt)("inlineCode",{parentName:"a"},"_Journey"))," Data View.")),(0,l.kt)("admonition",{title:"You Should Know",type:"note"},(0,l.kt)("p",{parentName:"admonition"},(0,l.kt)("inlineCode",{parentName:"p"},"_JourneyActivity")," Data View shows data limited to a specific Business Unit. Your parent Business Unit has access to ",(0,l.kt)("a",{parentName:"p",href:"#_sent"},(0,l.kt)("inlineCode",{parentName:"a"},"_Sent")),", ",(0,l.kt)("a",{parentName:"p",href:"#_open"},(0,l.kt)("inlineCode",{parentName:"a"},"_Open")),", ",(0,l.kt)("a",{parentName:"p",href:"#_click"},(0,l.kt)("inlineCode",{parentName:"a"},"_Click"))," and other data from all Business Units, but this is not the case with ",(0,l.kt)("inlineCode",{parentName:"p"},"_JourneyActivity"),". You can query only those Journey Activities that were created in the Business Unit where you execute your SQL snippet."),(0,l.kt)("p",{parentName:"admonition"},"Always consider this when choosing Business Unit to execute the query and the type of ",(0,l.kt)("a",{parentName:"p",href:"/docs/sql/sfmc-sql-join"},(0,l.kt)("inlineCode",{parentName:"a"},"JOIN"))," statement.")),(0,l.kt)("hr",null),(0,l.kt)("h2",{id:"automation-data-views"},"Automation Data Views"),(0,l.kt)("h3",{id:"_automationinstance"},"_AutomationInstance"),(0,l.kt)("p",null,"Provides historical information about Automation runs."),(0,l.kt)(r.Z,{defaultValue:"fields",values:[{label:"Fields",value:"fields"},{label:"Field Picklist Values",value:"values"},{label:"SQL Query",value:"sql"}],mdxType:"Tabs"},(0,l.kt)(i.Z,{value:"fields",mdxType:"TabItem"},(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Data Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Nullable"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"MemberID"),(0,l.kt)("td",{parentName:"tr",align:null},"The Account ID for the Business Unit"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AutomationName"),(0,l.kt)("td",{parentName:"tr",align:null},"The name of the automation"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AutomationDescription"),(0,l.kt)("td",{parentName:"tr",align:null},"The description of the automation"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AutomationCustomerKey"),(0,l.kt)("td",{parentName:"tr",align:null},"The unique ID of the automation"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AutomationInstanceID"),(0,l.kt)("td",{parentName:"tr",align:null},"The unique ID of the specific automation run"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AutomationType"),(0,l.kt)("td",{parentName:"tr",align:null},"The type of starting source used in automation"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AutomationNotificationRecipient_Complete"),(0,l.kt)("td",{parentName:"tr",align:null},"Email(s) receiving notification about completed runs"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AutomationNotificationRecipient_Error"),(0,l.kt)("td",{parentName:"tr",align:null},"Email(s) receiving notification about errored runs"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AutomationNotificationRecipient_Skip"),(0,l.kt)("td",{parentName:"tr",align:null},"Email(s) receiving notification about skipped runs"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AutomationStepCount"),(0,l.kt)("td",{parentName:"tr",align:null},"The number of steps in the automation"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AutomationInstanceIsRunOnce"),(0,l.kt)("td",{parentName:"tr",align:null},"Was this specific automation run executed with Run Once? 1 for true, 0 for false in File Drop and Triggered automations. Null in Schedule automations"),(0,l.kt)("td",{parentName:"tr",align:null},"Boolean"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"FilenameFromTrigger"),(0,l.kt)("td",{parentName:"tr",align:null},"Name of the file that triggered the automation for Triggered and File Drop automations. Null for Schedule automations"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AutomationInstanceScheduledTime_UTC"),(0,l.kt)("td",{parentName:"tr",align:null},"Starting schedule datetime in UTC timezone for Schedule automations. Null for Triggered and File Drop automation"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AutomationInstanceStartTime_UTC"),(0,l.kt)("td",{parentName:"tr",align:null},"Automation run start datetime in UTC timezone. Null if run is skipped"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AutomationInstanceEndTime_UTC"),(0,l.kt)("td",{parentName:"tr",align:null},"Automation run end datetime in UTC timezone. Null if run is skipped or still running"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AutomationInstanceStatus"),(0,l.kt)("td",{parentName:"tr",align:null},"The status of the automation run at the time of querying"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AutomationInstanceActivityErrorDetails"),(0,l.kt)("td",{parentName:"tr",align:null},"The first error message encountered in the automation run"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X"))))),(0,l.kt)(i.Z,{value:"values",mdxType:"TabItem"},(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"AutomationType")," possible values:"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"Schedule"),(0,l.kt)("li",{parentName:"ul"},"File Drop"),(0,l.kt)("li",{parentName:"ul"},"Trigger")),(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"AutomationInstanceStatus")," possible values:"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"QueuedFile"),(0,l.kt)("li",{parentName:"ul"},"Initialized"),(0,l.kt)("li",{parentName:"ul"},"Executing"),(0,l.kt)("li",{parentName:"ul"},"Stopped"),(0,l.kt)("li",{parentName:"ul"},"Complete"),(0,l.kt)("li",{parentName:"ul"},"Error")),(0,l.kt)("hr",null)),(0,l.kt)(i.Z,{value:"sql",mdxType:"TabItem"},(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-sql"},"SELECT\n automation.MemberID\n , automation.AutomationName\n , automation.AutomationDescription\n , automation.AutomationCustomerKey\n , automation.AutomationInstanceID\n , automation.AutomationType\n , automation.AutomationNotificationRecipient_Complete\n , automation.AutomationNotificationRecipient_Error\n , automation.AutomationNotificationRecipient_Skip\n , automation.AutomationStepCount\n , automation.AutomationInstanceIsRunOnce\n , automation.FilenameFromTrigger\n , automation.AutomationInstanceScheduledTime_UTC\n , automation.AutomationInstanceStartTime_UTC\n , automation.AutomationInstanceEndTime_UTC\n , automation.AutomationInstanceStatus\n , automation.AutomationInstanceActivityErrorDetails\nFROM _AutomationInstance AS automation\n")))),(0,l.kt)("p",null,"When working with ",(0,l.kt)("inlineCode",{parentName:"p"},"_AutomationInstance")," Data View:"),(0,l.kt)("ol",null,(0,l.kt)("li",{parentName:"ol"},"This data view stores all Automation ",(0,l.kt)("strong",{parentName:"li"},"runs"),", so you will see here separte row for each execution of the Automation. This is great basic audit tool for logging changes to the automation as well as a nice way to counting the amount of automation executions against licence limits."),(0,l.kt)("li",{parentName:"ol"},"Key limitation of ",(0,l.kt)("inlineCode",{parentName:"li"},"_AutomationInstance")," is that it shows data with 24 hours delay. If you need real-time information about Automation Studio status, you will still need an API approach. But for not that urget use cases this new option will be much more performant."),(0,l.kt)("li",{parentName:"ol"},"If automation run errored out due to system or unclassified error, ",(0,l.kt)("inlineCode",{parentName:"li"},"AutomationInstanceActivityErrorDetails"),' will show "System Error occurred. Please contact support for details.". In other cases it will store the first error message. If there are more and you want to find them, you will need to leverage ',(0,l.kt)("a",{parentName:"li",href:"#_AutomationActivityInstance"},(0,l.kt)("inlineCode",{parentName:"a"},"_AutomationActivityInstance"))," Data View."),(0,l.kt)("li",{parentName:"ol"},"All date fields in this data view are UTC based (unlike most other Data Views) so when manipulating them with ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-date-functions"},"SQL Date Functions")," it might be best to use ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-date-functions#getdate--getutcdate"},(0,l.kt)("inlineCode",{parentName:"a"},"GETUTCDATE()"))," instead of system date from ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-date-functions#getdate--getutcdate"},(0,l.kt)("inlineCode",{parentName:"a"},"GETDATE()")),"."),(0,l.kt)("li",{parentName:"ol"},(0,l.kt)("inlineCode",{parentName:"li"},"AutomationInstanceID")," field is perfect to ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-join"},(0,l.kt)("inlineCode",{parentName:"a"},"JOIN"))," with ",(0,l.kt)("a",{parentName:"li",href:"#_AutomationActivityInstance"},(0,l.kt)("inlineCode",{parentName:"a"},"_AutomationActivityInstance")),". It lets you find information about execution of each activity within the Automation in the specific run.")),(0,l.kt)("admonition",{title:"You Should Know",type:"note"},(0,l.kt)("p",{parentName:"admonition"},(0,l.kt)("inlineCode",{parentName:"p"},"_AutomationInstance")," Data View shows data limited to a specific Business Unit. Your parent Business Unit has access to ",(0,l.kt)("a",{parentName:"p",href:"#_sent"},(0,l.kt)("inlineCode",{parentName:"a"},"_Sent")),", ",(0,l.kt)("a",{parentName:"p",href:"#_open"},(0,l.kt)("inlineCode",{parentName:"a"},"_Open")),", ",(0,l.kt)("a",{parentName:"p",href:"#_click"},(0,l.kt)("inlineCode",{parentName:"a"},"_Click"))," and other data from all Business Units, but this is not the case with ",(0,l.kt)("inlineCode",{parentName:"p"},"_AutomationInstance"),". You can query only those Automtion runs that were executed in the Business Unit where you execute your SQL snippet."),(0,l.kt)("p",{parentName:"admonition"},"Always consider this when choosing Business Unit to execute the query and the type of ",(0,l.kt)("a",{parentName:"p",href:"/docs/sql/sfmc-sql-join"},(0,l.kt)("inlineCode",{parentName:"a"},"JOIN"))," statement.")),(0,l.kt)("h3",{id:"_automationactivityinstance"},"_AutomationActivityInstance"),(0,l.kt)("p",null,"Provides historical information about Automation Studio Activity runs."),(0,l.kt)(r.Z,{defaultValue:"fields",values:[{label:"Fields",value:"fields"},{label:"Field Picklist Values",value:"values"},{label:"SQL Query",value:"sql"}],mdxType:"Tabs"},(0,l.kt)(i.Z,{value:"fields",mdxType:"TabItem"},(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Data Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Nullable"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"MemberID"),(0,l.kt)("td",{parentName:"tr",align:null},"The Account ID for the Business Unit"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AutomationName"),(0,l.kt)("td",{parentName:"tr",align:null},"The name of the automation"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AutomationCustomerKey"),(0,l.kt)("td",{parentName:"tr",align:null},"The unique ID of the automation"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AutomationInstanceID"),(0,l.kt)("td",{parentName:"tr",align:null},"The unique ID of the specific automation run"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ActivityCustomerKey"),(0,l.kt)("td",{parentName:"tr",align:null},"The unique ID of the activity"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ActivityInstanceID"),(0,l.kt)("td",{parentName:"tr",align:null},"The unique ID of the specific activity execution"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ActivityType"),(0,l.kt)("td",{parentName:"tr",align:null},"The type of the activity (numeric ID)"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ActivityName"),(0,l.kt)("td",{parentName:"tr",align:null},"The name of the activity"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ActivityDescription"),(0,l.kt)("td",{parentName:"tr",align:null},"The description of the activity"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ActivityInstanceStep"),(0,l.kt)("td",{parentName:"tr",align:null},"The two-dimensional description where in automation the activity is located"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ActivityInstanceStartTime_UTC"),(0,l.kt)("td",{parentName:"tr",align:null},"Activity execution start datetime in UTC timezone. Null if run is skipped"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ActivityInstanceEndTime_UTC"),(0,l.kt)("td",{parentName:"tr",align:null},"Activity execution end datetime in UTC timezone. Null if run is skipped or still running"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ActivityInstanceStatus"),(0,l.kt)("td",{parentName:"tr",align:null},"The status of the activity run at the time of querying"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ActivityInstanceStatusDetails"),(0,l.kt)("td",{parentName:"tr",align:null},"The error message encountered in the activity execution"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X"))))),(0,l.kt)(i.Z,{value:"values",mdxType:"TabItem"},(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"ActivityType")," possible values:"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Value"),(0,l.kt)("th",{parentName:"tr",align:null},"Meaning"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"33"),(0,l.kt)("td",{parentName:"tr",align:null},"SMS Activity")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"42"),(0,l.kt)("td",{parentName:"tr",align:null},"Send Email")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"43"),(0,l.kt)("td",{parentName:"tr",align:null},"Import File")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"45"),(0,l.kt)("td",{parentName:"tr",align:null},"Refresh Group")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"53"),(0,l.kt)("td",{parentName:"tr",align:null},"File Transfer")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"73"),(0,l.kt)("td",{parentName:"tr",align:null},"Data Extract")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"84"),(0,l.kt)("td",{parentName:"tr",align:null},"Report Definition")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"300"),(0,l.kt)("td",{parentName:"tr",align:null},"SQL Query")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"303"),(0,l.kt)("td",{parentName:"tr",align:null},"Filter")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"423"),(0,l.kt)("td",{parentName:"tr",align:null},"Script")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"425"),(0,l.kt)("td",{parentName:"tr",align:null},"Data Factory Utility Activity")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"426"),(0,l.kt)("td",{parentName:"tr",align:null},"Refresh Segment Template")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"427"),(0,l.kt)("td",{parentName:"tr",align:null},"Publish Audience")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"467"),(0,l.kt)("td",{parentName:"tr",align:null},"Wait")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"724"),(0,l.kt)("td",{parentName:"tr",align:null},"Refresh Mobile Filtered List")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"725"),(0,l.kt)("td",{parentName:"tr",align:null},"Send SMS")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"726"),(0,l.kt)("td",{parentName:"tr",align:null},"Import Mobile Contacts")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"733"),(0,l.kt)("td",{parentName:"tr",align:null},"Journey Builder Event Activity")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"736"),(0,l.kt)("td",{parentName:"tr",align:null},"Send Push")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"749"),(0,l.kt)("td",{parentName:"tr",align:null},"Fire Event")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"771"),(0,l.kt)("td",{parentName:"tr",align:null},"Salesforce Email Send")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"772"),(0,l.kt)("td",{parentName:"tr",align:null},"Mobile Connect Send Salesforce Sync Subscriber")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"783"),(0,l.kt)("td",{parentName:"tr",align:null},"Send GroupConnect")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"1000"),(0,l.kt)("td",{parentName:"tr",align:null},"Verification")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"1010"),(0,l.kt)("td",{parentName:"tr",align:null},"Interaction Studio Data")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"1101"),(0,l.kt)("td",{parentName:"tr",align:null},"Interactions")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"1701"),(0,l.kt)("td",{parentName:"tr",align:null},"Batch Personalization")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"3700"),(0,l.kt)("td",{parentName:"tr",align:null},"Contact to Business Unit Mapping")))),(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"ActivityInstanceStatus")," possible values:"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"Initialized"),(0,l.kt)("li",{parentName:"ul"},"Executing"),(0,l.kt)("li",{parentName:"ul"},"Complete"),(0,l.kt)("li",{parentName:"ul"},"Error"),(0,l.kt)("li",{parentName:"ul"},"NotSelected")),(0,l.kt)("hr",null)),(0,l.kt)(i.Z,{value:"sql",mdxType:"TabItem"},(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-sql"},"SELECT\n automationActivity.MemberID\n , automationActivity.AutomationName\n , automationActivity.AutomationCustomerKey\n , automationActivity.AutomationInstanceID\n , automationActivity.ActivityCustomerKey\n , automationActivity.ActivityInstanceID\n , automationActivity.ActivityType\n , automationActivity.ActivityName\n , automationActivity.ActivityDescription\n , automationActivity.ActivityInstanceStep\n , automationActivity.ActivityInstanceStartTime_UTC\n , automationActivity.ActivityInstanceEndTime_UTC\n , automationActivity.ActivityInstanceStatus\n , automationActivity.ActivityInstanceStatusDetails\nFROM _AutomationActivityInstance AS automationActivity\n")))),(0,l.kt)("p",null,"When working with ",(0,l.kt)("inlineCode",{parentName:"p"},"_AutomationActivityInstance")," Data View:"),(0,l.kt)("ol",null,(0,l.kt)("li",{parentName:"ol"},"This data view stores all Automation Activity ",(0,l.kt)("strong",{parentName:"li"},"runs"),", so you will see here separte row for each execution of each Activity. It is awesome tool for checking how optimised our Activities are and what errors are troubling our Automations."),(0,l.kt)("li",{parentName:"ol"},"Key limitation of ",(0,l.kt)("inlineCode",{parentName:"li"},"_AutomationActivityInstance")," is that it shows data with 24 hours delay."),(0,l.kt)("li",{parentName:"ol"},"If activity run errored out due to system or unclassified error, ",(0,l.kt)("inlineCode",{parentName:"li"},"ActivityInstanceStatusDetails"),' will show "System Error occurred. Please contact support for details.". In other cases it will store the error message.'),(0,l.kt)("li",{parentName:"ol"},"All date fields in this data view are UTC based (unlike most other Data Views) so when manipulating them with ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-date-functions"},"SQL Date Functions")," it might be best to use ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-date-functions#getdate--getutcdate"},(0,l.kt)("inlineCode",{parentName:"a"},"GETUTCDATE()"))," instead of system date from ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-date-functions#getdate--getutcdate"},(0,l.kt)("inlineCode",{parentName:"a"},"GETDATE()")),"."),(0,l.kt)("li",{parentName:"ol"},"The start and end dates in this data view can be leveraged with ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-date-functions#datediff"},(0,l.kt)("inlineCode",{parentName:"a"},"DATEDIFF"))," and ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-aggregate-functions#avg"},(0,l.kt)("inlineCode",{parentName:"a"},"AVG"))," to calculate average time needed for each activity to finish. This information is crucial to assess whether the current automation Schedule is correct and where the optimisation efforts are required to protect against 30 minutes autokill."),(0,l.kt)("li",{parentName:"ol"},(0,l.kt)("inlineCode",{parentName:"li"},"AutomationInstanceID")," field is perfect to ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-join"},(0,l.kt)("inlineCode",{parentName:"a"},"JOIN"))," with ",(0,l.kt)("a",{parentName:"li",href:"#_AutomationInstance"},(0,l.kt)("inlineCode",{parentName:"a"},"_AutomationInstance")),". It lets you find information about the Automation using this Activity.")),(0,l.kt)("admonition",{title:"You Should Know",type:"note"},(0,l.kt)("p",{parentName:"admonition"},(0,l.kt)("inlineCode",{parentName:"p"},"_AutomationActivityInstance")," Data View shows data limited to a specific Business Unit. Your parent Business Unit has access to ",(0,l.kt)("a",{parentName:"p",href:"#_sent"},(0,l.kt)("inlineCode",{parentName:"a"},"_Sent")),", ",(0,l.kt)("a",{parentName:"p",href:"#_open"},(0,l.kt)("inlineCode",{parentName:"a"},"_Open")),", ",(0,l.kt)("a",{parentName:"p",href:"#_click"},(0,l.kt)("inlineCode",{parentName:"a"},"_Click"))," and other data from all Business Units, but this is not the case with ",(0,l.kt)("inlineCode",{parentName:"p"},"_AutomationActivityInstance"),". You can query only those Automation Activities that were created in the Business Unit where you execute your SQL snippet."),(0,l.kt)("p",{parentName:"admonition"},"Always consider this when choosing Business Unit to execute the query and the type of ",(0,l.kt)("a",{parentName:"p",href:"/docs/sql/sfmc-sql-join"},(0,l.kt)("inlineCode",{parentName:"a"},"JOIN"))," statement.")),(0,l.kt)("hr",null),(0,l.kt)("h2",{id:"custom-data-views"},"Custom Data Views"),(0,l.kt)("p",null,"On top of all the built-in Data Views mentioned above, there is also a paid option for custom Data Views. As for the possibilities, the sky is the limit. Example? ",(0,l.kt)("a",{parentName:"p",href:"https://linkedin.com/in/lunow"},"Lukas Lunow")," ",(0,l.kt)("a",{parentName:"p",href:"https://salesforce.stackexchange.com/a/293395/91679"},"highlighted")," a fascinating one that solves the problem of knowing what is the current status of a Contact in a given Journey:"),(0,l.kt)("admonition",{title:"You Should Know",type:"note"},(0,l.kt)("p",{parentName:"admonition"},"As ",(0,l.kt)("a",{parentName:"p",href:"https://salesforce.stackexchange.com/a/293395/91679"},"shared")," by Lukas, since May 2021, there is longer no possibility to create Custom Data Views leveraging the Journey Builder.")),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Data Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Nullable"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"JourneyVersionNumber"),(0,l.kt)("td",{parentName:"tr",align:null},"The version number of the version of the Journey"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"JourneyName"),(0,l.kt)("td",{parentName:"tr",align:null},"The name of the Journey"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"JourneyStatus"),(0,l.kt)("td",{parentName:"tr",align:null},"Tells you whether the Journey is still Active"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ContactKey"),(0,l.kt)("td",{parentName:"tr",align:null},"The subscriber key for the affected subscriber"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ContactID"),(0,l.kt)("td",{parentName:"tr",align:null},"Global Contact ID (not Contact Key)"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ContactStatus"),(0,l.kt)("td",{parentName:"tr",align:null},"Tell you whether the contact is still in the Journey (",(0,l.kt)("inlineCode",{parentName:"td"},"Active"),", ",(0,l.kt)("inlineCode",{parentName:"td"},"Exited")," or even more detailed like ",(0,l.kt)("inlineCode",{parentName:"td"},"DidNotMeetEntryCriteria"),", ",(0,l.kt)("inlineCode",{parentName:"td"},"ContactExitedByAPI"),")"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"EntryDate"),(0,l.kt)("td",{parentName:"tr",align:null},"Date of Journey Entry"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ExitDate"),(0,l.kt)("td",{parentName:"tr",align:null},"Date of Journey Exit - including Goal / Exit Criteria. Null if still in Journey."),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},"x")))),(0,l.kt)("p",null,"Yes, you can create a workaround to know whether the Contact is in a given Journey using standard Data Extension and Update Contact Journey Activities at the beginning and end of every Journey. Not only it requires you to remember always to add those additional steps. It also blocks you from using Goals and Exit Criteria."),(0,l.kt)("p",null,"Custom Data View allow you to eat a cookie and have a cookie."),(0,l.kt)("p",null,"You can certainly come up with other use cases that could be solved if only you had one additional data point. Now you can."))}b.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/7f9f5c99.959d9312.js b/assets/js/7f9f5c99.959d9312.js new file mode 100644 index 000000000..67a6c0ce9 --- /dev/null +++ b/assets/js/7f9f5c99.959d9312.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkmd=self.webpackChunkmd||[]).push([[1092],{4137:(t,e,a)=>{a.d(e,{Zo:()=>m,kt:()=>c});var n=a(7294);function l(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function r(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function i(t){for(var e=1;e=0||(l[a]=t[a]);return l}(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,a)&&(l[a]=t[a])}return l}var u=n.createContext({}),s=function(t){var e=n.useContext(u),a=e;return t&&(a="function"==typeof t?t(e):i(i({},e),t)),a},m=function(t){var e=s(t.components);return n.createElement(u.Provider,{value:e},t.children)},d="mdxType",p={inlineCode:"code",wrapper:function(t){var e=t.children;return n.createElement(n.Fragment,{},e)}},k=n.forwardRef((function(t,e){var a=t.components,l=t.mdxType,r=t.originalType,u=t.parentName,m=o(t,["components","mdxType","originalType","parentName"]),d=s(a),k=l,c=d["".concat(u,".").concat(k)]||d[k]||p[k]||r;return a?n.createElement(c,i(i({ref:e},m),{},{components:a})):n.createElement(c,i({ref:e},m))}));function c(t,e){var a=arguments,l=e&&e.mdxType;if("string"==typeof t||l){var r=a.length,i=new Array(r);i[0]=k;var o={};for(var u in e)hasOwnProperty.call(e,u)&&(o[u]=e[u]);o.originalType=t,o[d]="string"==typeof t?t:l,i[1]=o;for(var s=2;s{a.d(e,{Z:()=>i});var n=a(7294),l=a(6010);const r={tabItem:"tabItem_Ymn6"};function i(t){let{children:e,hidden:a,className:i}=t;return n.createElement("div",{role:"tabpanel",className:(0,l.Z)(r.tabItem,i),hidden:a},e)}},3992:(t,e,a)=>{a.d(e,{Z:()=>T});var n=a(7462),l=a(7294),r=a(6010),i=a(2957),o=a(6550),u=a(5238),s=a(3609),m=a(2560);function d(t){return function(t){return l.Children.map(t,(t=>{if(!t||(0,l.isValidElement)(t)&&function(t){const{props:e}=t;return!!e&&"object"==typeof e&&"value"in e}(t))return t;throw new Error(`Docusaurus error: Bad child <${"string"==typeof t.type?t.type:t.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}(t).map((t=>{let{props:{value:e,label:a,attributes:n,default:l}}=t;return{value:e,label:a,attributes:n,default:l}}))}function p(t){const{values:e,children:a}=t;return(0,l.useMemo)((()=>{const t=e??d(a);return function(t){const e=(0,s.l)(t,((t,e)=>t.value===e.value));if(e.length>0)throw new Error(`Docusaurus error: Duplicate values "${e.map((t=>t.value)).join(", ")}" found in . Every value needs to be unique.`)}(t),t}),[e,a])}function k(t){let{value:e,tabValues:a}=t;return a.some((t=>t.value===e))}function c(t){let{queryString:e=!1,groupId:a}=t;const n=(0,o.k6)(),r=function(t){let{queryString:e=!1,groupId:a}=t;if("string"==typeof e)return e;if(!1===e)return null;if(!0===e&&!a)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return a??null}({queryString:e,groupId:a});return[(0,u._X)(r),(0,l.useCallback)((t=>{if(!r)return;const e=new URLSearchParams(n.location.search);e.set(r,t),n.replace({...n.location,search:e.toString()})}),[r,n])]}function N(t){const{defaultValue:e,queryString:a=!1,groupId:n}=t,r=p(t),[i,o]=(0,l.useState)((()=>function(t){let{defaultValue:e,tabValues:a}=t;if(0===a.length)throw new Error("Docusaurus error: the component requires at least one children component");if(e){if(!k({value:e,tabValues:a}))throw new Error(`Docusaurus error: The has a defaultValue "${e}" but none of its children has the corresponding value. Available values are: ${a.map((t=>t.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return e}const n=a.find((t=>t.default))??a[0];if(!n)throw new Error("Unexpected error: 0 tabValues");return n.value}({defaultValue:e,tabValues:r}))),[u,s]=c({queryString:a,groupId:n}),[d,N]=function(t){let{groupId:e}=t;const a=function(t){return t?`docusaurus.tab.${t}`:null}(e),[n,r]=(0,m.Nk)(a);return[n,(0,l.useCallback)((t=>{a&&r.set(t)}),[a,r])]}({groupId:n}),b=(()=>{const t=u??d;return k({value:t,tabValues:r})?t:null})();(0,l.useLayoutEffect)((()=>{b&&o(b)}),[b]);return{selectedValue:i,selectValue:(0,l.useCallback)((t=>{if(!k({value:t,tabValues:r}))throw new Error(`Can't select invalid tab value=${t}`);o(t),s(t),N(t)}),[s,N,r]),tabValues:r}}var b=a(1048);const h={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};function g(t){let{className:e,block:a,selectedValue:o,selectValue:u,tabValues:s}=t;const m=[],{blockElementScrollPositionUntilNextRender:d}=(0,i.o5)(),p=t=>{const e=t.currentTarget,a=m.indexOf(e),n=s[a].value;n!==o&&(d(e),u(n))},k=t=>{let e=null;switch(t.key){case"Enter":p(t);break;case"ArrowRight":{const a=m.indexOf(t.currentTarget)+1;e=m[a]??m[0];break}case"ArrowLeft":{const a=m.indexOf(t.currentTarget)-1;e=m[a]??m[m.length-1];break}}e?.focus()};return l.createElement("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.Z)("tabs",{"tabs--block":a},e)},s.map((t=>{let{value:e,label:a,attributes:i}=t;return l.createElement("li",(0,n.Z)({role:"tab",tabIndex:o===e?0:-1,"aria-selected":o===e,key:e,ref:t=>m.push(t),onKeyDown:k,onClick:p},i,{className:(0,r.Z)("tabs__item",h.tabItem,i?.className,{"tabs__item--active":o===e})}),a??e)})))}function y(t){let{lazy:e,children:a,selectedValue:n}=t;const r=(Array.isArray(a)?a:[a]).filter(Boolean);if(e){const t=r.find((t=>t.props.value===n));return t?(0,l.cloneElement)(t,{className:"margin-top--md"}):null}return l.createElement("div",{className:"margin-top--md"},r.map(((t,e)=>(0,l.cloneElement)(t,{key:e,hidden:t.props.value!==n}))))}function f(t){const e=N(t);return l.createElement("div",{className:(0,r.Z)("tabs-container",h.tabList)},l.createElement(g,(0,n.Z)({},t,e)),l.createElement(y,(0,n.Z)({},t,e)))}function T(t){const e=(0,b.Z)();return l.createElement(f,(0,n.Z)({key:String(e)},t))}},7271:(t,e,a)=>{a.d(e,{V:()=>r,z:()=>l});var n=a(7294);const l=t=>{let{link:e,text:a,newTab:l=!1}=t;return n.createElement(n.Fragment,null,n.createElement("a",{class:"button button--outline button--lg button--primary col col--6 col--offset-3",href:e,target:l?"_blank":"_self"},a))},r=t=>{let{linkLeft:e,textLeft:a,newTabLeft:l=!1,linkRight:r,textRight:i,newTabRight:o=!1}=t;return n.createElement(n.Fragment,null,n.createElement("div",{class:"col col--12"},n.createElement("a",{class:"button button--outline button--lg button--primary col col--5 col--offset-0",href:e,target:l?"_blank":"_self"},a),n.createElement("a",{class:"button button--outline button--lg button--primary col col--5 col--offset-2",href:r,target:o?"_blank":"_self"},i)))}},1872:(t,e,a)=>{a.d(e,{m:()=>r});var n=a(7294);const l="leadText_qzwo",r=t=>{let{content:e}=t;return n.createElement(n.Fragment,null,n.createElement("p",{id:l},e))}},6266:(t,e,a)=>{a.r(e),a.d(e,{assets:()=>p,contentTitle:()=>m,default:()=>b,frontMatter:()=>s,metadata:()=>d,toc:()=>k});var n=a(7462),l=(a(7294),a(4137)),r=a(3992),i=a(425),o=a(1872),u=a(7271);const s={id:"sfmc-system-data-views",title:"SFMC System Data Views",sidebar_label:"System Data Views",description:"Dive deep into System Data Views - the backend Marketing Cloud data. Actionable pearls await.",image:"img/og/og-image-sfmc-system-data-views.png",tags:["Marketing Cloud","Configuration","SQL","Analytics","Data Extensions","Email","Automation","Journey"]},m=void 0,d={unversionedId:"config/sfmc-system-data-views",id:"config/sfmc-system-data-views",title:"SFMC System Data Views",description:"Dive deep into System Data Views - the backend Marketing Cloud data. Actionable pearls await.",source:"@site/docs/config/sfmc-system-data-views.mdx",sourceDirName:"config",slug:"/config/sfmc-system-data-views",permalink:"/docs/config/sfmc-system-data-views",draft:!1,editUrl:"https://github.com/MateuszDabrowski/mateuszdabrowski.pl/edit/master/docs/config/sfmc-system-data-views.mdx",tags:[{label:"Marketing Cloud",permalink:"/docs/tags/marketing-cloud"},{label:"Configuration",permalink:"/docs/tags/configuration"},{label:"SQL",permalink:"/docs/tags/sql"},{label:"Analytics",permalink:"/docs/tags/analytics"},{label:"Data Extensions",permalink:"/docs/tags/data-extensions"},{label:"Email",permalink:"/docs/tags/email"},{label:"Automation",permalink:"/docs/tags/automation"},{label:"Journey",permalink:"/docs/tags/journey"}],version:"current",lastUpdatedBy:"Mateusz D\u0105browski",lastUpdatedAt:1702851903,formattedLastUpdatedAt:"Dec 17, 2023",frontMatter:{id:"sfmc-system-data-views",title:"SFMC System Data Views",sidebar_label:"System Data Views",description:"Dive deep into System Data Views - the backend Marketing Cloud data. Actionable pearls await.",image:"img/og/og-image-sfmc-system-data-views.png",tags:["Marketing Cloud","Configuration","SQL","Analytics","Data Extensions","Email","Automation","Journey"]},sidebar:"docs",previous:{title:"SFMC Config",permalink:"/docs/category/sfmc-config"},next:{title:"Mobile Connect Data Views",permalink:"/docs/config/sfmc-mobile-connect-data-views"}},p={},k=[{value:"Data Views Basics",id:"data-views-basics",level:2},{value:"Subscriber Data Views",id:"subscriber-data-views",level:2},{value:"_Subscribers",id:"_subscribers",level:3},{value:"_EnterpriseAttribute",id:"_enterpriseattribute",level:3},{value:"Email Data Views",id:"email-data-views",level:2},{value:"_Job",id:"_job",level:3},{value:"_Sent",id:"_sent",level:3},{value:"_Open",id:"_open",level:3},{value:"_Click",id:"_click",level:3},{value:"_Bounce",id:"_bounce",level:3},{value:"_Complaint",id:"_complaint",level:3},{value:"Subscription Data Views",id:"subscription-data-views",level:2},{value:"_Unsubscribe",id:"_unsubscribe",level:3},{value:"_BusinessUnitUnsubscribes",id:"_businessunitunsubscribes",level:3},{value:"_ListSubscribers",id:"_listsubscribers",level:3},{value:"Mobile Connect Data Views",id:"mobile-connect-data-views",level:2},{value:"Journey Data Views",id:"journey-data-views",level:2},{value:"_Journey",id:"_journey",level:3},{value:"_JourneyActivity",id:"_journeyactivity",level:3},{value:"Automation Data Views",id:"automation-data-views",level:2},{value:"_AutomationInstance",id:"_automationinstance",level:3},{value:"_AutomationActivityInstance",id:"_automationactivityinstance",level:3},{value:"Custom Data Views",id:"custom-data-views",level:2}],c={toc:k},N="wrapper";function b(t){let{components:e,...a}=t;return(0,l.kt)(N,(0,n.Z)({},c,a,{components:e,mdxType:"MDXLayout"}),(0,l.kt)(o.m,{content:"Dive deep into System Data Views - the backend Marketing Cloud data. Actionable pearls await.",mdxType:"LeadText"}),(0,l.kt)("h2",{id:"data-views-basics"},"Data Views Basics"),(0,l.kt)("p",null,"System Data Views are ",(0,l.kt)("strong",{parentName:"p"},"built-in backend Data Extensions")," that you can use to find information about your subscribers and sends. You ",(0,l.kt)("strong",{parentName:"p"},"cannot change them"),", but you can leverage their data in SQL queries for quick reports in ",(0,l.kt)("a",{parentName:"p",href:"/docs/sql/sfmc-sql-basics#query-studio"},"Query Studio")," or outputting to the standard Data Extension. They are excellent fuel for SSJS logic."),(0,l.kt)("p",null,"Data Views have ",(0,l.kt)("strong",{parentName:"p"},"data retention settings set to 6 months"),". If you want to store any data for a more extended period, you must create an Automation that will be copying data to your Data Extension."),(0,l.kt)("p",null,"Be careful, however, as some of the System Data Views can get absurdly big quick, and making copies within your Marketing Cloud Instance may lead to performance issues. In such cases, a much better idea might be to export that data on a scheduled basis to an external Data Warehouse."),(0,l.kt)("p",null,"Another important point related to Data Views is always knowing which Data View you genuinely want to use. For example, in most cases, you will be interested in parent-level ",(0,l.kt)("a",{parentName:"p",href:"#_subscribers"},(0,l.kt)("inlineCode",{parentName:"a"},"_Subscribers"))," Data View, which means you will need to use the ",(0,l.kt)("a",{parentName:"p",href:"/docs/sql/sfmc-sql-from#enterprise-data-extension"},(0,l.kt)("inlineCode",{parentName:"a"},"Ent."))," prefix in your query."),(0,l.kt)("admonition",{title:"You Should Know",type:"note"},(0,l.kt)("p",{parentName:"admonition"},"Below you can find selected Salesforce Marketing Cloud Data Views focused on Subscribers, Journeys, Email and SMS Channel. I plan to cover the rest of them in the future."),(0,l.kt)("p",{parentName:"admonition"},"Be sure to check the excellent ",(0,l.kt)("a",{parentName:"p",href:"https://dataviews.io"},"Dataviews.io")," - an interactive system tables relationship diagram created by ",(0,l.kt)("a",{parentName:"p",href:"https://sfmarketing.cloud/author/zjarczynska/"},"Zuzanna Jarczy\u0144ska"),". It will for sure help you with multi-view ",(0,l.kt)("a",{parentName:"p",href:"/docs/sql/sfmc-sql-join"},(0,l.kt)("inlineCode",{parentName:"a"},"JOIN"),"s"),"."),(0,l.kt)("p",{parentName:"admonition"},"There is also a more detailed ",(0,l.kt)("a",{parentName:"p",href:"https://dbdiagram.io/d/5ff259ed80d742080a34e3c3"},"System Tables relationship diagram")," created by ",(0,l.kt)("a",{parentName:"p",href:"https://cameronrobert.com.au"},"Cameron Roberts")," that contains SQL Database structure along with field lengths."),(0,l.kt)(u.V,{linkLeft:"https://dataviews.io",textLeft:"Zuza's DataViews.io",newTabLeft:"true",linkRight:"https://dbdiagram.io/d/5ff259ed80d742080a34e3c3",textRight:"Cam's Detailed Diagram",newTabRight:"true",mdxType:"ButtonRow"})),(0,l.kt)("hr",null),(0,l.kt)("h2",{id:"subscriber-data-views"},"Subscriber Data Views"),(0,l.kt)("h3",{id:"_subscribers"},"_Subscribers"),(0,l.kt)("p",null,"Stores information about your Subscribers. Great for high-level perspective or adding Email Address field to other more detailed Data Views."),(0,l.kt)(r.Z,{defaultValue:"fields",values:[{label:"Fields",value:"fields"},{label:"Field Picklist Values",value:"values"},{label:"SQL Query",value:"sql"}],mdxType:"Tabs"},(0,l.kt)(i.Z,{value:"fields",mdxType:"TabItem"},(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Data Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Nullable"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SubscriberID"),(0,l.kt)("td",{parentName:"tr",align:null},"The subscriber ID for the affected subscriber. This number represents the unique ID for each subscriber record."),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"DateUndeliverable"),(0,l.kt)("td",{parentName:"tr",align:null},"The date an email for the subscriber was returned as undeliverable"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"DateJoined"),(0,l.kt)("td",{parentName:"tr",align:null},"The Date, the subscriber, joined your list"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"DateUnsubscribed"),(0,l.kt)("td",{parentName:"tr",align:null},"The Date, the subscriber, unsubscribed from your list"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Domain"),(0,l.kt)("td",{parentName:"tr",align:null},"The domain of the subscriber"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"EmailAddress"),(0,l.kt)("td",{parentName:"tr",align:null},"The subscriber's email address"),(0,l.kt)("td",{parentName:"tr",align:null},"Email"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"BounceCount"),(0,l.kt)("td",{parentName:"tr",align:null},"The total number of bounces accrued by the subscriber"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SubscriberKey"),(0,l.kt)("td",{parentName:"tr",align:null},"A potential alternate identifier for subscribers."),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SubscriberType"),(0,l.kt)("td",{parentName:"tr",align:null},"The subscriber type for the affected subscriber"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Status"),(0,l.kt)("td",{parentName:"tr",align:null},"The status of the subscriber"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Locale"),(0,l.kt)("td",{parentName:"tr",align:null},"The locale code for the subscriber"),(0,l.kt)("td",{parentName:"tr",align:null},"Locale"),(0,l.kt)("td",{parentName:"tr",align:null},"X"))))),(0,l.kt)(i.Z,{value:"values",mdxType:"TabItem"},(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"Status")," possible values:"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"active"),(0,l.kt)("li",{parentName:"ul"},"held"),(0,l.kt)("li",{parentName:"ul"},"unsubscribed"),(0,l.kt)("li",{parentName:"ul"},"bounced")),(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"SubscriberType")," possible values:"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"ExactTarget"),(0,l.kt)("li",{parentName:"ul"},"Unknown External System\nIn most cases you will see only ",(0,l.kt)("inlineCode",{parentName:"li"},"Exact Target")," in your database.")),(0,l.kt)("hr",null)),(0,l.kt)(i.Z,{value:"sql",mdxType:"TabItem"},(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-sql"},"SELECT\n sub.SubscriberID\n , sub.DateUndeliverable\n , sub.DateJoined\n , sub.DateUnsubscribed\n , sub.Domain\n , sub.EmailAddress\n , sub.BounceCount\n , sub.SubscriberKey\n , sub.SubscriberType\n , sub.Status\n , sub.Locale\nFROM _Subscribers AS sub\n")))),(0,l.kt)("p",null,"When working with ",(0,l.kt)("inlineCode",{parentName:"p"},"_Subscribers")," Data View:"),(0,l.kt)("ol",null,(0,l.kt)("li",{parentName:"ol"},"If you are using the query in the child Business Unit, use ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-from#enterprise-data-extension"},(0,l.kt)("inlineCode",{parentName:"a"},"Ent."))," prefix, as the data is stored on Parent BU level."),(0,l.kt)("li",{parentName:"ol"},"If you need high-level data on your subscribers, this Data View might be enough. If you want to learn more (for example, why a subscriber bounced, where did he unsubscribe), you will need to ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-join"},(0,l.kt)("inlineCode",{parentName:"a"},"JOIN"))," other Data Views."),(0,l.kt)("li",{parentName:"ol"},"Use ",(0,l.kt)("inlineCode",{parentName:"li"},"SubscriberID")," to ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-join"},(0,l.kt)("inlineCode",{parentName:"a"},"JOIN"))," data from different engagement-based Data Views like ",(0,l.kt)("a",{parentName:"li",href:"#_sent"},(0,l.kt)("inlineCode",{parentName:"a"},"_Sent")),", ",(0,l.kt)("a",{parentName:"li",href:"#_open"},(0,l.kt)("inlineCode",{parentName:"a"},"_Open")),", ",(0,l.kt)("a",{parentName:"li",href:"#_click"},(0,l.kt)("inlineCode",{parentName:"a"},"_Click"))," or ",(0,l.kt)("a",{parentName:"li",href:"#_bounce"},(0,l.kt)("inlineCode",{parentName:"a"},"_Bounce")),"."),(0,l.kt)("li",{parentName:"ol"},"The ",(0,l.kt)("inlineCode",{parentName:"li"},"Status")," field is excellent for a quick check of your database quality. It is also nice to manage multiple records. Pull the selection of your subscribers with SQL Query, add a new status with ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-select#custom-values"},"custom value")," (for example, ",(0,l.kt)("inlineCode",{parentName:"li"},"'unsubscribed' AS Status"),") and leverage Automation to export-transfer-import the Data Extension to All Subscribers."),(0,l.kt)("li",{parentName:"ol"},"This Data View, along with ",(0,l.kt)("a",{parentName:"li",href:"#_enterpriseattribute"},(0,l.kt)("inlineCode",{parentName:"a"},"_EnterpriseAttribute")),", ",(0,l.kt)("a",{parentName:"li",href:"#_businessunitunsubscribes"},(0,l.kt)("inlineCode",{parentName:"a"},"_BusinessUnitUnsubscribes"))," and ",(0,l.kt)("a",{parentName:"li",href:"#_listsubscribers"},(0,l.kt)("inlineCode",{parentName:"a"},"_ListSubscribers")),", does not have six-month data retention.")),(0,l.kt)("hr",null),(0,l.kt)("h3",{id:"_enterpriseattribute"},"_EnterpriseAttribute"),(0,l.kt)("p",null,"Stores information about your Profile and Preference Attributes from Email Studio."),(0,l.kt)(r.Z,{defaultValue:"fields",values:[{label:"Fields",value:"fields"},{label:"SQL Query",value:"sql"}],mdxType:"Tabs"},(0,l.kt)(i.Z,{value:"fields",mdxType:"TabItem"},(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Data Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Nullable"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"_SubscriberID"),(0,l.kt)("td",{parentName:"tr",align:null},"The subscriber ID for the affected subscriber. This number represents the unique ID for each subscriber record stored."),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null}))))),(0,l.kt)(i.Z,{value:"sql",mdxType:"TabItem"},(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-sql"},"SELECT\n ea._SubscriberID AS SubscriberID\n , ea.ProfileAttributeWithoutSpaces\n , ea.[Profile Attribute With Spaces] AS ProfileAttributeWithSpace\n , ea.PreferenceAttributeWithoutSpaces\n , ea.[Preference Attribute With Spaces] AS PreferenceAttributeWithSpace\nFROM _EnterpriseAttribute AS ea\n")))),(0,l.kt)("p",null,"When working with ",(0,l.kt)("inlineCode",{parentName:"p"},"_EnterpriseAttribute")," Data View:"),(0,l.kt)("ol",null,(0,l.kt)("li",{parentName:"ol"},"If you are using the query in the child Business Unit, always use ",(0,l.kt)("inlineCode",{parentName:"li"},"ENT.")," prefix as it is enterprise-level only Data View."),(0,l.kt)("li",{parentName:"ol"},"When querying or joining ",(0,l.kt)("inlineCode",{parentName:"li"},"_EnterpriseAttribute"),", always include the underscore before SubscriberID - this is the only Data View that requires it."),(0,l.kt)("li",{parentName:"ol"},"Despite the ",(0,l.kt)("inlineCode",{parentName:"li"},"Email Address")," field is visible in the Salesforce Marketing Cloud UI when you go to Profile Attributes, it is not part of the ",(0,l.kt)("inlineCode",{parentName:"li"},"_EnterpriseAttribute")," Data View. To get the Email Address of your Subscriber, query the ",(0,l.kt)("inlineCode",{parentName:"li"},"_Subscribers")," Data View."),(0,l.kt)("li",{parentName:"ol"},"Unfortunately, the default Preference Attribute ",(0,l.kt)("inlineCode",{parentName:"li"},"HTML Email")," is not accessible via query."),(0,l.kt)("li",{parentName:"ol"},(0,l.kt)("inlineCode",{parentName:"li"},"_EnterpriseAttribute")," Data View is unique, as it might contain spaces in field names. You build it by creating the Profile Attributes in Email Studio. If your profile attribute name contains space, you will have to use the square bracket notation to capture it: ",(0,l.kt)("inlineCode",{parentName:"li"},"SELECT [Attribute With Spaces] FROM _EnterpriseAttribute"),"."),(0,l.kt)("li",{parentName:"ol"},"This Data View, along with ",(0,l.kt)("a",{parentName:"li",href:"#_subscribers"},(0,l.kt)("inlineCode",{parentName:"a"},"_Subscribers")),", ",(0,l.kt)("a",{parentName:"li",href:"#_businessunitunsubscribes"},(0,l.kt)("inlineCode",{parentName:"a"},"_BusinessUnitUnsubscribes"))," and ",(0,l.kt)("a",{parentName:"li",href:"#_listsubscribers"},(0,l.kt)("inlineCode",{parentName:"a"},"_ListSubscribers"))," , does not have six-month data retention.")),(0,l.kt)("hr",null),(0,l.kt)("h2",{id:"email-data-views"},"Email Data Views"),(0,l.kt)("h3",{id:"_job"},"_Job"),(0,l.kt)("p",null,"Stores information about your Email Sends Jobs. Great for capturing detailed data about your communication, especially when paired with Send Log. Must-have for extending your engagement-based Email Data Views."),(0,l.kt)(r.Z,{defaultValue:"fields",values:[{label:"Fields",value:"fields"},{label:"Field Picklist Values",value:"values"},{label:"SQL Query",value:"sql"}],mdxType:"Tabs"},(0,l.kt)(i.Z,{value:"fields",mdxType:"TabItem"},(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Data Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Nullable"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"JobID"),(0,l.kt)("td",{parentName:"tr",align:null},"The job ID number for the email send"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"EmailID"),(0,l.kt)("td",{parentName:"tr",align:null},"The email ID for the job"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AccountID"),(0,l.kt)("td",{parentName:"tr",align:null},"The ID number for the account that performed the job"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AccountUserID"),(0,l.kt)("td",{parentName:"tr",align:null},"The ID number for the account user that performed the job"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"FromName"),(0,l.kt)("td",{parentName:"tr",align:null},"The from name in the email send"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"FromEmail"),(0,l.kt)("td",{parentName:"tr",align:null},"The from email address in the email send"),(0,l.kt)("td",{parentName:"tr",align:null},"Email"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SchedTime"),(0,l.kt)("td",{parentName:"tr",align:null},"The time the job was scheduled"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"PickupTime"),(0,l.kt)("td",{parentName:"tr",align:null},"The time the Marketing Cloud application started the job"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"DeliveredTime"),(0,l.kt)("td",{parentName:"tr",align:null},"The time the email was delivered"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"EventID"),(0,l.kt)("td",{parentName:"tr",align:null},"The ID for the job event"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"IsMultipart"),(0,l.kt)("td",{parentName:"tr",align:null},"Whether the job was sent as multi-part MIME or not"),(0,l.kt)("td",{parentName:"tr",align:null},"Boolean"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"JobType"),(0,l.kt)("td",{parentName:"tr",align:null},"The type of job"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"JobStatus"),(0,l.kt)("td",{parentName:"tr",align:null},"The status of the job"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ModifiedBy"),(0,l.kt)("td",{parentName:"tr",align:null},"If modified, the user who modified the job"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ModifiedDate"),(0,l.kt)("td",{parentName:"tr",align:null},"The date the job was modified"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"EmailName"),(0,l.kt)("td",{parentName:"tr",align:null},"The name of the email sent by the job"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"EmailSubject"),(0,l.kt)("td",{parentName:"tr",align:null},"The subject of the email send"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"IsWrapped"),(0,l.kt)("td",{parentName:"tr",align:null},"Whether the links in the email were wrapped for tracking"),(0,l.kt)("td",{parentName:"tr",align:null},"Boolean"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"TestEmailAddr"),(0,l.kt)("td",{parentName:"tr",align:null},"The test email address used in the job"),(0,l.kt)("td",{parentName:"tr",align:null},"Email"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Category"),(0,l.kt)("td",{parentName:"tr",align:null},"The job category"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"BccEmail"),(0,l.kt)("td",{parentName:"tr",align:null},"Any email address send in the BCC field"),(0,l.kt)("td",{parentName:"tr",align:null},"Email"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"OriginalSchedTime"),(0,l.kt)("td",{parentName:"tr",align:null},"The initially scheduled time for the job"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"CreatedDate"),(0,l.kt)("td",{parentName:"tr",align:null},"The date the job was created"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"CharacterSet"),(0,l.kt)("td",{parentName:"tr",align:null},"The character set used in the job"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"IPAddress"),(0,l.kt)("td",{parentName:"tr",align:null},"This value will always be a null value."),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SalesForceTotalSubscriberCount"),(0,l.kt)("td",{parentName:"tr",align:null},"The total number of Salesforce subscribers included in the job"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SalesForceErrorSubscriberCount"),(0,l.kt)("td",{parentName:"tr",align:null},"The total number of Salesforce subscribers included in the job that received errors"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SendType"),(0,l.kt)("td",{parentName:"tr",align:null},"The type of send used in the job"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"DynamicEmailSubject"),(0,l.kt)("td",{parentName:"tr",align:null},"The dynamic email subject included in the job"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SuppressTracking"),(0,l.kt)("td",{parentName:"tr",align:null},"If tracking information for this job was suppressed"),(0,l.kt)("td",{parentName:"tr",align:null},"Boolean"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SendClassificationType"),(0,l.kt)("td",{parentName:"tr",align:null},"The type of send classification for the job"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SendClassification"),(0,l.kt)("td",{parentName:"tr",align:null},"The custom name of send classification for the job"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ResolveLinksWithCurrentData"),(0,l.kt)("td",{parentName:"tr",align:null},"If the job resolved links with current data"),(0,l.kt)("td",{parentName:"tr",align:null},"Boolean"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"EmailSendDefinition"),(0,l.kt)("td",{parentName:"tr",align:null},"The email send definition used in the job"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"DeduplicateByEmail"),(0,l.kt)("td",{parentName:"tr",align:null},"Whether the email addresses in the job are used to deduplicate subscribers"),(0,l.kt)("td",{parentName:"tr",align:null},"Boolean"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"TriggererSendDefinitionObjectID"),(0,l.kt)("td",{parentName:"tr",align:null},"The object ID for the triggered send definition"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"TriggeredSendCustomerKey"),(0,l.kt)("td",{parentName:"tr",align:null},"The customer key for the triggered send"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X"))))),(0,l.kt)(i.Z,{value:"values",mdxType:"TabItem"},(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"JobType")," possible values:"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},(0,l.kt)("inlineCode",{parentName:"li"},"null")),(0,l.kt)("li",{parentName:"ul"},"MULTIPLE_SEND")),(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"JobStatus")," possible values:"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"Deleted"),(0,l.kt)("li",{parentName:"ul"},"New")),(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"Category")," possible values:"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"Test Send Emails"),(0,l.kt)("li",{parentName:"ul"},"Triggered Sends"),(0,l.kt)("li",{parentName:"ul"},"Version XX (where XX is a number)"),(0,l.kt)("li",{parentName:"ul"},"GUID_VXX (36 character hyphen separated GUID followed by underscore and VXX where XX is a number)")),(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"CharacterSet")," possible values:"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"Unicode - UTF-8")),(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"SendType")," possible values:"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"ExactTargetSend")),(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"SendClassificationType")," possible values:"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"Default Commercial"),(0,l.kt)("li",{parentName:"ul"},"Default Transactional")),(0,l.kt)("hr",null)),(0,l.kt)(i.Z,{value:"sql",mdxType:"TabItem"},(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-sql"},"SELECT\n job.JobID\n , job.EmailID\n , job.AccountID\n , job.AccountUserID\n , job.FromName\n , job.FromEmail\n , job.SchedTime\n , job.PickupTime\n , job.DeliveredTime\n , job.EventID\n , job.IsMultipart\n , job.JobType\n , job.JobStatus\n , job.ModifiedBy\n , job.ModifiedDate\n , job.EmailName\n , job.EmailSubject\n , job.IsWrapped\n , job.TestEmailAddr\n , job.Category\n , job.BccEmail\n , job.OriginalSchedTime\n , job.CreatedDate\n , job.CharacterSet\n , job.IPAddress\n , job.SalesForceTotalSubscriberCount\n , job.SalesForceErrorSubscriberCount\n , job.SendType\n , job.DynamicEmailSubject\n , job.SuppressTracking\n , job.SendClassificationType\n , job.SendClassification\n , job.ResolveLinksWithCurrentData\n , job.EmailSendDefinition\n , job.DeduplicateByEmail\n , job.TriggererSendDefinitionObjectID\n , job.TriggeredSendCustomerKey\nFROM _Job AS job\n")))),(0,l.kt)("p",null,"When working with ",(0,l.kt)("inlineCode",{parentName:"p"},"_Job")," Data View:"),(0,l.kt)("ol",null,(0,l.kt)("li",{parentName:"ol"},(0,l.kt)("inlineCode",{parentName:"li"},"JobID")," field will be your bread and butter to ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-join"},(0,l.kt)("inlineCode",{parentName:"a"},"JOIN"))," with other engagement-based Data Views."),(0,l.kt)("li",{parentName:"ol"},(0,l.kt)("inlineCode",{parentName:"li"},"EmailName"),", ",(0,l.kt)("inlineCode",{parentName:"li"},"FromName"),", and ",(0,l.kt)("inlineCode",{parentName:"li"},"FromEmail")," are handy data points missing in the ",(0,l.kt)("a",{parentName:"li",href:"#_sent"},(0,l.kt)("inlineCode",{parentName:"a"},"_Sent")),", ",(0,l.kt)("a",{parentName:"li",href:"#_open"},(0,l.kt)("inlineCode",{parentName:"a"},"_Open")),", ",(0,l.kt)("a",{parentName:"li",href:"#_click"},(0,l.kt)("inlineCode",{parentName:"a"},"_Click")),", ",(0,l.kt)("a",{parentName:"li",href:"#_bounce"},(0,l.kt)("inlineCode",{parentName:"a"},"_Bounce"))," Data Views and are worth checking for reporting needs."),(0,l.kt)("li",{parentName:"ol"},"If you are performing A/B tests or want to analyse the subject line's impact on performance, be sure to pick ",(0,l.kt)("inlineCode",{parentName:"li"},"EmailSubject"),". Pair it with ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-select#conditional-values-with-case"},(0,l.kt)("inlineCode",{parentName:"a"},"CASE"))," to create a great knowledge source for your content team."),(0,l.kt)("li",{parentName:"ol"},"For debugging purposes, be sure to check out ",(0,l.kt)("inlineCode",{parentName:"li"},"IsWrapped")," and ",(0,l.kt)("inlineCode",{parentName:"li"},"SuppressTracking")," - if you are missing tracking data, ",(0,l.kt)("inlineCode",{parentName:"li"},"CharacterSet")," - if you have problems with formatting, ",(0,l.kt)("inlineCode",{parentName:"li"},"SendClassification")," - if you have issues with unsubscribers or spam complaints."),(0,l.kt)("li",{parentName:"ol"},(0,l.kt)("inlineCode",{parentName:"li"},"AccountUserID")," field is fantastic for ",(0,l.kt)("inlineCode",{parentName:"li"},"_Job"),"-based Audit Log creation. Unfortunately, there is no UI-based easy way to determine which user has which UserID. You can either use SOAP API or match based on these SQL results.")),(0,l.kt)("admonition",{title:"You Should Know",type:"note"},(0,l.kt)("p",{parentName:"admonition"},(0,l.kt)("inlineCode",{parentName:"p"},"_Job")," Data View is unique among other Email-focused Data Views, as it shows data limited to a specific Business Unit. Your parent Business Unit has access to ",(0,l.kt)("a",{parentName:"p",href:"#_sent"},(0,l.kt)("inlineCode",{parentName:"a"},"_Sent")),", ",(0,l.kt)("a",{parentName:"p",href:"#_open"},(0,l.kt)("inlineCode",{parentName:"a"},"_Open")),", ",(0,l.kt)("a",{parentName:"p",href:"#_click"},(0,l.kt)("inlineCode",{parentName:"a"},"_Click"))," and other data from all Business Units, but this is not the case with ",(0,l.kt)("inlineCode",{parentName:"p"},"_Job"),". You can query only those jobs that occurred in the Business Unit where you execute your SQL snippet."),(0,l.kt)("p",{parentName:"admonition"},"Always consider this when choosing Business Unit to execute the query and the type of ",(0,l.kt)("a",{parentName:"p",href:"/docs/sql/sfmc-sql-join"},(0,l.kt)("inlineCode",{parentName:"a"},"JOIN"))," statement.")),(0,l.kt)("hr",null),(0,l.kt)("h3",{id:"_sent"},"_Sent"),(0,l.kt)("p",null,"Stores information about your Email Sends. Great for understanding who had a chance to receive your message and whose communication did not leave your system."),(0,l.kt)(r.Z,{defaultValue:"fields",values:[{label:"Fields",value:"fields"},{label:"SQL Query",value:"sql"}],mdxType:"Tabs"},(0,l.kt)(i.Z,{value:"fields",mdxType:"TabItem"},(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Data Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Nullable"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AccountID"),(0,l.kt)("td",{parentName:"tr",align:null},"Your parent account ID (MID) number"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"OYBAccountID"),(0,l.kt)("td",{parentName:"tr",align:null},"The account ID (MID) number of the child Business Unit that owns the data. If queried on parent Business Unit, it will be ",(0,l.kt)("inlineCode",{parentName:"td"},"Null")),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"JobID"),(0,l.kt)("td",{parentName:"tr",align:null},"The job ID number for the email send"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ListID"),(0,l.kt)("td",{parentName:"tr",align:null},"The list ID number for the list used in the send"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"BatchID"),(0,l.kt)("td",{parentName:"tr",align:null},"The batch ID number for any batches used in the send"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SubscriberID"),(0,l.kt)("td",{parentName:"tr",align:null},"The subscriber ID for the affected subscriber. This number represents the unique ID for each subscriber record."),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SubscriberKey"),(0,l.kt)("td",{parentName:"tr",align:null},"The subscriber key for the affected subscriber"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"EventDate"),(0,l.kt)("td",{parentName:"tr",align:null},"The date the send took place"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Domain"),(0,l.kt)("td",{parentName:"tr",align:null},"The domain at which the send occurred"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"TriggererSendDefinitionObjectID"),(0,l.kt)("td",{parentName:"tr",align:null},"The object ID for the triggered send definition"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"TriggeredSendCustomerKey"),(0,l.kt)("td",{parentName:"tr",align:null},"The customer key for the triggered send"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X"))))),(0,l.kt)(i.Z,{value:"sql",mdxType:"TabItem"},(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-sql"},"SELECT\n sent.AccountID\n , sent.OYBAccountID\n , sent.JobID\n , sent.ListID\n , sent.BatchID\n , sent.SubscriberID\n , sent.SubscriberKey\n , sent.EventDate\n , sent.Domain\n , sent.TriggererSendDefinitionObjectID\n , sent.TriggeredSendCustomerKey\nFROM _Sent AS sent\n")))),(0,l.kt)("p",null,"When working with ",(0,l.kt)("inlineCode",{parentName:"p"},"_Sent")," Data View:"),(0,l.kt)("ol",null,(0,l.kt)("li",{parentName:"ol"},"Use ",(0,l.kt)("inlineCode",{parentName:"li"},"JobID"),", ",(0,l.kt)("inlineCode",{parentName:"li"},"ListID"),", ",(0,l.kt)("inlineCode",{parentName:"li"},"BatchID")," and ",(0,l.kt)("inlineCode",{parentName:"li"},"SubscriberId")," or ",(0,l.kt)("inlineCode",{parentName:"li"},"SubscriberKey")," to match various events from multiple Data Views like ",(0,l.kt)("a",{parentName:"li",href:"#_open"},(0,l.kt)("inlineCode",{parentName:"a"},"_Open")),", ",(0,l.kt)("a",{parentName:"li",href:"#_click"},(0,l.kt)("inlineCode",{parentName:"a"},"_Click")),", ",(0,l.kt)("a",{parentName:"li",href:"#_bounce"},(0,l.kt)("inlineCode",{parentName:"a"},"_Bounce"))," for a single engagement with a particular subscriber. Example: ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/snippets/sfmc-sql-debugging-email-sends#solution"},"Query for Debugging Email Sends"),"."),(0,l.kt)("li",{parentName:"ol"},"The most valuable data here is the ",(0,l.kt)("inlineCode",{parentName:"li"},"EventDate")," field that lets you know when the email was sent (and whether that happened at all)."),(0,l.kt)("li",{parentName:"ol"},"If you have triggered a send for an email and after a few minutes you don't see it here, in most cases, it means that the send was blocked and never left Marketing Cloud. Check ",(0,l.kt)("a",{parentName:"li",href:"/docs/config/sfmc-enhanced-send-log"},"enhanced Send Log"),", applied personalisation, data source, ",(0,l.kt)("inlineCode",{parentName:"li"},"RaiseError")," scripts.")),(0,l.kt)("hr",null),(0,l.kt)("h3",{id:"_open"},"_Open"),(0,l.kt)("p",null,"Stores information about your Email Opens. For when you need to know when someone opened your email. Kind of."),(0,l.kt)(r.Z,{defaultValue:"fields",values:[{label:"Fields",value:"fields"},{label:"SQL Query",value:"sql"}],mdxType:"Tabs"},(0,l.kt)(i.Z,{value:"fields",mdxType:"TabItem"},(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Data Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Nullable"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AccountID"),(0,l.kt)("td",{parentName:"tr",align:null},"Your parent account ID (MID) number"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"OYBAccountID"),(0,l.kt)("td",{parentName:"tr",align:null},"The account ID (MID) number of the child Business Unit that owns the data. If queried on parent Business Unit, it will be ",(0,l.kt)("inlineCode",{parentName:"td"},"Null")),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"JobID"),(0,l.kt)("td",{parentName:"tr",align:null},"The job ID number for the email send"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ListID"),(0,l.kt)("td",{parentName:"tr",align:null},"The list ID number for the list used in the send"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"BatchID"),(0,l.kt)("td",{parentName:"tr",align:null},"The batch ID number for any batches used in the send"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SubscriberID"),(0,l.kt)("td",{parentName:"tr",align:null},"The subscriber ID for the affected subscriber. This number represents the unique ID for each subscriber record."),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SubscriberKey"),(0,l.kt)("td",{parentName:"tr",align:null},"The subscriber key for the affected subscriber"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"EventDate"),(0,l.kt)("td",{parentName:"tr",align:null},"The date the open took place"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Domain"),(0,l.kt)("td",{parentName:"tr",align:null},"The domain at which the open occurred"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"IsUnique"),(0,l.kt)("td",{parentName:"tr",align:null},"Whether the event is unique or repeated"),(0,l.kt)("td",{parentName:"tr",align:null},"Boolean"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"TriggererSendDefinitionObjectID"),(0,l.kt)("td",{parentName:"tr",align:null},"The object ID for the triggered send definition"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"TriggeredSendCustomerKey"),(0,l.kt)("td",{parentName:"tr",align:null},"The customer key for the triggered send"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X"))))),(0,l.kt)(i.Z,{value:"sql",mdxType:"TabItem"},(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-sql"},"SELECT\n opened.AccountID\n , opened.OYBAccountID\n , opened.JobID\n , opened.ListID\n , opened.BatchID\n , opened.SubscriberID\n , opened.SubscriberKey\n , opened.EventDate\n , opened.Domain\n , opened.IsUnique\n , opened.TriggererSendDefinitionObjectID\n , opened.TriggeredSendCustomerKey\nFROM _Open AS opened\n")))),(0,l.kt)("p",null,"When working with ",(0,l.kt)("inlineCode",{parentName:"p"},"_Open")," Data View:"),(0,l.kt)("ol",null,(0,l.kt)("li",{parentName:"ol"},"Use ",(0,l.kt)("inlineCode",{parentName:"li"},"JobID"),", ",(0,l.kt)("inlineCode",{parentName:"li"},"ListID"),", ",(0,l.kt)("inlineCode",{parentName:"li"},"BatchID")," and ",(0,l.kt)("inlineCode",{parentName:"li"},"SubscriberId")," or ",(0,l.kt)("inlineCode",{parentName:"li"},"SubscriberKey")," to match various events from multiple Data Views like ",(0,l.kt)("a",{parentName:"li",href:"#_sent"},(0,l.kt)("inlineCode",{parentName:"a"},"_Sent")),", ",(0,l.kt)("a",{parentName:"li",href:"#_click"},(0,l.kt)("inlineCode",{parentName:"a"},"_Click")),", ",(0,l.kt)("a",{parentName:"li",href:"#_bounce"},(0,l.kt)("inlineCode",{parentName:"a"},"_Bounce"))," for a single engagement with a particular subscriber. Example: ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/snippets/sfmc-sql-debugging-email-sends#solution"},"Query for Debugging Email Sends"),"."),(0,l.kt)("li",{parentName:"ol"},"Use ",(0,l.kt)("inlineCode",{parentName:"li"},"_open.IsUnique = 1")," in ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-join"},(0,l.kt)("inlineCode",{parentName:"a"},"JOIN"))," or ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-where"},(0,l.kt)("inlineCode",{parentName:"a"},"WHERE"))," to focus on the the first occurence of each event. Example: ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/snippets/sfmc-sql-debugging-email-sends#solution"},"Query for Debugging Email Sends"),"."),(0,l.kt)("li",{parentName:"ol"},"The most valuable data here is the ",(0,l.kt)("inlineCode",{parentName:"li"},"EventDate")," field that lets you know when the email was opened (and whether that happened at all). But with email opens, it's not that easy. In many cases, the lack of open data in this Data View doesn't mean that your recipient for sure did not open the email. And in some instances, tracked open might not mean he did.")),(0,l.kt)("admonition",{title:"You Should Know",type:"note"},(0,l.kt)("p",{parentName:"admonition"},"There is ",(0,l.kt)("strong",{parentName:"p"},"no official engagement feedback loop")," that informs Marketing Cloud (or any other Marketing Automation Platform) that your recipient opened the email."),(0,l.kt)("p",{parentName:"admonition"},"All Marketing Automation Platforms put an ",(0,l.kt)("strong",{parentName:"p"},"invisible 1px wide image in the email")," body that is unique for every email you send. When someone opens an email, its images are downloaded from the server. SFMC treats the download of this 1px wide image as proof that the recipient opened the email. And in most cases, it is correct. But..."),(0,l.kt)("p",{parentName:"admonition"},"The ",(0,l.kt)("strong",{parentName:"p"},"images don't always render")," (that's why you should always use alt-text). Some recipients opt-in on a per-email basis to download email graphics. Government audiences might not even have this option. Because of the admin policy, the privacy concerns over engagement tracking or limited internet bandwidth. In such a case, even if the user opens an email, you won't have information about it."),(0,l.kt)("p",{parentName:"admonition"},"It might lead to weird data, like clicks visible for contacts that did not open. Marketing Automation Platforms track Clicks via a different, more confident approach."),(0,l.kt)("p",{parentName:"admonition"},"It can also lead to cases where a user has both click and open data, but click data is earlier than the open. Why? Your recipient clicked something in your email and only after that decided to allow his email program to load the images in it."),(0,l.kt)("p",{parentName:"admonition"},"There might be cases where the data is wrong the other way - when you see that email as opened, but in reality, the user didn't engage with it. It sometimes happens for B2B sends when your recipient's administrator uses bots that automatically check the emails for malicious or spammy content. You can recognise such things by checking the EventDate on ",(0,l.kt)("inlineCode",{parentName:"p"},"_Open")," and ",(0,l.kt)("inlineCode",{parentName:"p"},"_Click")," Data Views, as those bots will open the email and click all its links within a second. Something not possible for an actual human.")),(0,l.kt)("hr",null),(0,l.kt)("h3",{id:"_click"},"_Click"),(0,l.kt)(r.Z,{defaultValue:"fields",values:[{label:"Fields",value:"fields"},{label:"SQL Query",value:"sql"}],mdxType:"Tabs"},(0,l.kt)(i.Z,{value:"fields",mdxType:"TabItem"},(0,l.kt)("p",null,"Stores information about your Email Clicks. Detailed click reporting and behavioural logic are possible, thanks to this one."),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Data Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Nullable"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AccountID"),(0,l.kt)("td",{parentName:"tr",align:null},"Your parent account ID (MID) number"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"OYBAccountID"),(0,l.kt)("td",{parentName:"tr",align:null},"The account ID (MID) number of the child Business Unit that owns the data. If queried on parent Business Unit, it will be ",(0,l.kt)("inlineCode",{parentName:"td"},"Null")),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"JobID"),(0,l.kt)("td",{parentName:"tr",align:null},"The job ID number for the email send"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ListID"),(0,l.kt)("td",{parentName:"tr",align:null},"The list ID number for the list used in the send"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"BatchID"),(0,l.kt)("td",{parentName:"tr",align:null},"The batch ID number for any batches used in the send"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SubscriberID"),(0,l.kt)("td",{parentName:"tr",align:null},"The subscriber ID for the affected subscriber. This number represents the unique ID for each subscriber record."),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SubscriberKey"),(0,l.kt)("td",{parentName:"tr",align:null},"The subscriber key for the affected subscriber"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"EventDate"),(0,l.kt)("td",{parentName:"tr",align:null},"The date the click took place"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Domain"),(0,l.kt)("td",{parentName:"tr",align:null},"The domain at which the click occurred"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"URL"),(0,l.kt)("td",{parentName:"tr",align:null},"The URL for the link clicked. Dynamic elements are shown as code: ",(0,l.kt)("inlineCode",{parentName:"td"},"www.example.com?id=%%SubID%%")),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"LinkName"),(0,l.kt)("td",{parentName:"tr",align:null},"The link name assigned in the email send"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"LinkContent"),(0,l.kt)("td",{parentName:"tr",align:null},"The link content assigned in the email send. Dynamic elements are shown as result: ",(0,l.kt)("inlineCode",{parentName:"td"},"www.example.com?id=12345")),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"IsUnique"),(0,l.kt)("td",{parentName:"tr",align:null},"Whether the event is unique or repeated"),(0,l.kt)("td",{parentName:"tr",align:null}),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"TriggererSendDefinitionObjectID"),(0,l.kt)("td",{parentName:"tr",align:null},"The object ID for the triggered send definition"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"TriggeredSendCustomerKey"),(0,l.kt)("td",{parentName:"tr",align:null},"The customer key for the triggered send"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X"))))),(0,l.kt)(i.Z,{value:"sql",mdxType:"TabItem"},(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-sql"},"SELECT\n click.AccountID\n , click.OYBAccountID\n , click.JobID\n , click.ListID\n , click.BatchID\n , click.SubscriberID\n , click.SubscriberKey\n , click.EventDate\n , click.Domain\n , click.URL\n , click.LinkName\n , click.LinkContent\n , click.IsUnique\n , click.TriggererSendDefinitionObjectID\n , click.TriggeredSendCustomerKey\nFROM _Click AS click\n")))),(0,l.kt)("p",null,"When working with ",(0,l.kt)("inlineCode",{parentName:"p"},"_Click")," Data View:"),(0,l.kt)("ol",null,(0,l.kt)("li",{parentName:"ol"},"Use ",(0,l.kt)("inlineCode",{parentName:"li"},"JobID"),", ",(0,l.kt)("inlineCode",{parentName:"li"},"ListID"),", ",(0,l.kt)("inlineCode",{parentName:"li"},"BatchID")," and ",(0,l.kt)("inlineCode",{parentName:"li"},"SubscriberId")," or ",(0,l.kt)("inlineCode",{parentName:"li"},"SubscriberKey")," to match various events from multiple Data Views like ",(0,l.kt)("a",{parentName:"li",href:"#_sent"},(0,l.kt)("inlineCode",{parentName:"a"},"_Sent")),", ",(0,l.kt)("a",{parentName:"li",href:"#_open"},(0,l.kt)("inlineCode",{parentName:"a"},"_Open")),", ",(0,l.kt)("a",{parentName:"li",href:"#_bounce"},(0,l.kt)("inlineCode",{parentName:"a"},"_Bounce"))," for a single engagement with a particular subscriber. Example: ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/snippets/sfmc-sql-debugging-email-sends#solution"},"Query for Debugging Email Sends"),"."),(0,l.kt)("li",{parentName:"ol"},"Use ",(0,l.kt)("inlineCode",{parentName:"li"},"_click.IsUnique = 1")," in ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-join"},(0,l.kt)("inlineCode",{parentName:"a"},"JOIN"))," or ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-where"},(0,l.kt)("inlineCode",{parentName:"a"},"WHERE"))," to focus on the first occurence of each event. Example: ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/snippets/sfmc-sql-debugging-email-sends#solution"},"Query for Debugging Email Sends"),"."),(0,l.kt)("li",{parentName:"ol"},"The most valuable data here is the ",(0,l.kt)("inlineCode",{parentName:"li"},"EventDate")," field that lets you know when the email was clicked (and whether that happened at all)."),(0,l.kt)("li",{parentName:"ol"},"You can significantly improve the value of that information by checking the ",(0,l.kt)("inlineCode",{parentName:"li"},"LinkName")," and ",(0,l.kt)("inlineCode",{parentName:"li"},"LinkContent")," fields to understand which links proved interesting for your customers."),(0,l.kt)("li",{parentName:"ol"},"Suppose you want to create an extensive report on link clicks. In that case, you might want to use the ",(0,l.kt)("inlineCode",{parentName:"li"},"URL")," field instead of ",(0,l.kt)("inlineCode",{parentName:"li"},"LinkContent")," due to the former not showing final personalisation values. It will be much easier to group clicks or even cleanly delete all AMPScript from them.")),(0,l.kt)("admonition",{title:"You Should Know",type:"note"},(0,l.kt)("p",{parentName:"admonition"},"There might be cases where the click data is wrong - when you see that email as clicked, but in reality, the user didn't engage with it. It sometimes happens for B2B sends when your recipient's administrator uses bots that automatically check the emails for malicious or spammy content. You can recognise such things by checking the EventDate on ",(0,l.kt)("inlineCode",{parentName:"p"},"_Open")," and ",(0,l.kt)("inlineCode",{parentName:"p"},"_Click")," Data Views, as those bots will open the email and click all its links within a second. Something not possible for a actual human.")),(0,l.kt)("hr",null),(0,l.kt)("h3",{id:"_bounce"},"_Bounce"),(0,l.kt)(r.Z,{defaultValue:"fields",values:[{label:"Fields",value:"fields"},{label:"Field Picklist Values",value:"values"},{label:"SQL Query",value:"sql"}],mdxType:"Tabs"},(0,l.kt)(i.Z,{value:"fields",mdxType:"TabItem"},(0,l.kt)("p",null,"Stores information about your Email Bounces. Best place in Marketing Cloud to understand why your messages are not getting delivered."),(0,l.kt)("p",null,"This Data View, along with ",(0,l.kt)("a",{parentName:"p",href:"#_complaint"},(0,l.kt)("inlineCode",{parentName:"a"},"_Complaint")),", should be monitored regularly to assess the health of your email marketing."),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Data Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Nullable"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AccountID"),(0,l.kt)("td",{parentName:"tr",align:null},"Your parent account ID (MID) number"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"OYBAccountID"),(0,l.kt)("td",{parentName:"tr",align:null},"The account ID (MID) number of the child Business Unit that owns the data. If queried on parent Business Unit, it will be ",(0,l.kt)("inlineCode",{parentName:"td"},"Null")),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"JobID"),(0,l.kt)("td",{parentName:"tr",align:null},"The job ID number for the email send"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ListID"),(0,l.kt)("td",{parentName:"tr",align:null},"The list ID number for the list used in the send"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"BatchID"),(0,l.kt)("td",{parentName:"tr",align:null},"The batch ID number for any batches used in the send"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SubscriberID"),(0,l.kt)("td",{parentName:"tr",align:null},"The subscriber ID for the affected subscriber"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SubscriberKey"),(0,l.kt)("td",{parentName:"tr",align:null},"The subscriber key for the affected subscriber"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"EventDate"),(0,l.kt)("td",{parentName:"tr",align:null},"The date the bounce took place"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"IsUnique"),(0,l.kt)("td",{parentName:"tr",align:null},"Whether the event is unique or repeated - 1 for the first occurrence, 0 for subsequent"),(0,l.kt)("td",{parentName:"tr",align:null},"Boolean"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Domain"),(0,l.kt)("td",{parentName:"tr",align:null},"The domain at which the bounce occurred"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"BounceCategoryID"),(0,l.kt)("td",{parentName:"tr",align:null},"The ID number for the bounce category"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"BounceCategory"),(0,l.kt)("td",{parentName:"tr",align:null},"The category of the bounce"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"BounceSubcategoryID"),(0,l.kt)("td",{parentName:"tr",align:null},"The ID number for the bounce subcategory"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"BounceSubcategory"),(0,l.kt)("td",{parentName:"tr",align:null},"The subcategory of the bounce"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"BounceTypeID"),(0,l.kt)("td",{parentName:"tr",align:null},"The ID number for the bounce type"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"BounceType"),(0,l.kt)("td",{parentName:"tr",align:null},"The type of bounce that occurred"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SMTPBounceReason"),(0,l.kt)("td",{parentName:"tr",align:null},"The reason for the bounce relayed by the mail system"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SMTPMessage"),(0,l.kt)("td",{parentName:"tr",align:null},"The message regarding the bounce from the mail system"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SMTPCode"),(0,l.kt)("td",{parentName:"tr",align:null},"The error code for the bounce from the mail system"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"TriggererSendDefinitionObjectID"),(0,l.kt)("td",{parentName:"tr",align:null},"The object ID for the triggered send definition"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"TriggeredSendCustomerKey"),(0,l.kt)("td",{parentName:"tr",align:null},"The customer key for the triggered send"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"IsFalseBounce"),(0,l.kt)("td",{parentName:"tr",align:null},"Indicates a false bounce if ",(0,l.kt)("a",{parentName:"td",href:"https://help.salesforce.com/s/articleView?id=000390396&type=1"},"SFMC received delivery receipt after receiving bounce"),"."),(0,l.kt)("td",{parentName:"tr",align:null},"Boolean"),(0,l.kt)("td",{parentName:"tr",align:null},"X"))))),(0,l.kt)(i.Z,{value:"values",mdxType:"TabItem"},(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"BounceCategoryID")," possible values:"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Value"),(0,l.kt)("th",{parentName:"tr",align:null},"Meaning"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"1"),(0,l.kt)("td",{parentName:"tr",align:null},"Hard Bounce")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"2"),(0,l.kt)("td",{parentName:"tr",align:null},"Soft Bounce")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"3"),(0,l.kt)("td",{parentName:"tr",align:null},"Block Bounce")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"4"),(0,l.kt)("td",{parentName:"tr",align:null},"Unknown Bounce")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"5"),(0,l.kt)("td",{parentName:"tr",align:null},"Technical/Other Bounce")))),(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"BounceCategory")," possible values:"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"Hard Bounce"),(0,l.kt)("li",{parentName:"ul"},"Soft Bounce"),(0,l.kt)("li",{parentName:"ul"},"Block Bounce"),(0,l.kt)("li",{parentName:"ul"},"Unknown Bounce"),(0,l.kt)("li",{parentName:"ul"},"Technical/Other Bounce")),(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"BounceSubcategoryID")," possible values:"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Value"),(0,l.kt)("th",{parentName:"tr",align:null},"Meaning"),(0,l.kt)("th",{parentName:"tr",align:null},"Bounce Type"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"1001"),(0,l.kt)("td",{parentName:"tr",align:null},"Complaints"),(0,l.kt)("td",{parentName:"tr",align:null},"Block Bounce")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"1002"),(0,l.kt)("td",{parentName:"tr",align:null},"Blocked"),(0,l.kt)("td",{parentName:"tr",align:null},"Block Bounce")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"1004"),(0,l.kt)("td",{parentName:"tr",align:null},"Content"),(0,l.kt)("td",{parentName:"tr",align:null},"Block Bounce")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"1010"),(0,l.kt)("td",{parentName:"tr",align:null},"Authentication"),(0,l.kt)("td",{parentName:"tr",align:null},"Block Bounce")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"1999"),(0,l.kt)("td",{parentName:"tr",align:null},"Other"),(0,l.kt)("td",{parentName:"tr",align:null},"Soft Bounce, Block Bounce")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"2001"),(0,l.kt)("td",{parentName:"tr",align:null},"User Unknown"),(0,l.kt)("td",{parentName:"tr",align:null},"Hard Bounce")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"2002"),(0,l.kt)("td",{parentName:"tr",align:null},"Domain Unknown"),(0,l.kt)("td",{parentName:"tr",align:null},"Hard Bounce")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"2003"),(0,l.kt)("td",{parentName:"tr",align:null},"Bad Address Syntax"),(0,l.kt)("td",{parentName:"tr",align:null},"Hard Bounce")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"3001"),(0,l.kt)("td",{parentName:"tr",align:null},"Mailbox Full"),(0,l.kt)("td",{parentName:"tr",align:null},"Soft Bounce")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"3002"),(0,l.kt)("td",{parentName:"tr",align:null},"Inactive Account"),(0,l.kt)("td",{parentName:"tr",align:null},"Hard Bounce, Soft Bounce")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"4001"),(0,l.kt)("td",{parentName:"tr",align:null},"Server Too Busy"),(0,l.kt)("td",{parentName:"tr",align:null},"Technical/Other Bounce")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"4002"),(0,l.kt)("td",{parentName:"tr",align:null},"Data Format Error"),(0,l.kt)("td",{parentName:"tr",align:null},"Technical/Other Bounce")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"4003"),(0,l.kt)("td",{parentName:"tr",align:null},"Network Error"),(0,l.kt)("td",{parentName:"tr",align:null},"Technical/Other Bounce")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"4999"),(0,l.kt)("td",{parentName:"tr",align:null},"Other"),(0,l.kt)("td",{parentName:"tr",align:null},"Hard Bounce, Soft Bounce, Technical/Other Bounce")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"9999"),(0,l.kt)("td",{parentName:"tr",align:null},"Unknown"),(0,l.kt)("td",{parentName:"tr",align:null},"Hard Bounce, Soft Bounce, Block Bounce, Unknown Bounce, Technical/Other Bounce")))),(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"BounceSubcategory")," possible values:"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"Complaints"),(0,l.kt)("li",{parentName:"ul"},"Blocked"),(0,l.kt)("li",{parentName:"ul"},"Content"),(0,l.kt)("li",{parentName:"ul"},"Authentication"),(0,l.kt)("li",{parentName:"ul"},"User Unknown"),(0,l.kt)("li",{parentName:"ul"},"Domain Unknown"),(0,l.kt)("li",{parentName:"ul"},"Bad Address Syntax"),(0,l.kt)("li",{parentName:"ul"},"Mailbox Full"),(0,l.kt)("li",{parentName:"ul"},"Inactive Account"),(0,l.kt)("li",{parentName:"ul"},"Server Too Busy"),(0,l.kt)("li",{parentName:"ul"},"Data Format Error"),(0,l.kt)("li",{parentName:"ul"},"Network Error"),(0,l.kt)("li",{parentName:"ul"},"Other"),(0,l.kt)("li",{parentName:"ul"},"Unknown")),(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"BounceTypeId")," possible values:"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Value"),(0,l.kt)("th",{parentName:"tr",align:null},"Meaning"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"0"),(0,l.kt)("td",{parentName:"tr",align:null},"immediate")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"1"),(0,l.kt)("td",{parentName:"tr",align:null},"delayed")))),(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"BounceType")," possible values:"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"immediate"),(0,l.kt)("li",{parentName:"ul"},"delayed")),(0,l.kt)("hr",null)),(0,l.kt)(i.Z,{value:"sql",mdxType:"TabItem"},(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-sql"},"SELECT\n bounce.AccountID\n , bounce.OYBAccountID\n , bounce.JobID\n , bounce.ListID\n , bounce.BatchID\n , bounce.SubscriberID\n , bounce.SubscriberKey\n , bounce.EventDate\n , bounce.IsUnique\n , bounce.Domain\n , bounce.BounceCategoryID\n , bounce.BounceCategory\n , bounce.BounceSubcategoryID\n , bounce.BounceSubcategory\n , bounce.BounceTypeID\n , bounce.BounceType\n , bounce.SMTPBounceReason\n , bounce.SMTPMessage\n , bounce.SMTPCode\n , bounce.TriggererSendDefinitionObjectID\n , bounce.TriggeredSendCustomerKey\nFROM _Bounce AS bounce\n")))),(0,l.kt)("p",null,"When working with ",(0,l.kt)("inlineCode",{parentName:"p"},"_Bounce")," Data View:"),(0,l.kt)("ol",null,(0,l.kt)("li",{parentName:"ol"},"Use ",(0,l.kt)("inlineCode",{parentName:"li"},"JobID"),", ",(0,l.kt)("inlineCode",{parentName:"li"},"ListID"),", ",(0,l.kt)("inlineCode",{parentName:"li"},"BatchID")," and ",(0,l.kt)("inlineCode",{parentName:"li"},"SubscriberId")," or ",(0,l.kt)("inlineCode",{parentName:"li"},"SubscriberKey")," to match various events from multiple Data Views like ",(0,l.kt)("a",{parentName:"li",href:"#_sent"},(0,l.kt)("inlineCode",{parentName:"a"},"_Sent")),", ",(0,l.kt)("a",{parentName:"li",href:"#_open"},(0,l.kt)("inlineCode",{parentName:"a"},"_Open")),", ",(0,l.kt)("a",{parentName:"li",href:"#_click"},(0,l.kt)("inlineCode",{parentName:"a"},"_Click"))," for a single engagement with a particular subscriber. Example: ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/snippets/sfmc-sql-debugging-email-sends#solution"},"Query for Debugging Email Sends"),"."),(0,l.kt)("li",{parentName:"ol"},"Use ",(0,l.kt)("inlineCode",{parentName:"li"},"_bounce.IsUnique = 1")," in ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-join"},(0,l.kt)("inlineCode",{parentName:"a"},"JOIN"))," or ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-where"},(0,l.kt)("inlineCode",{parentName:"a"},"WHERE"))," to focus on the first occurence of each event. Example: ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/snippets/sfmc-sql-debugging-email-sends#solution"},"Query for Debugging Email Sends"),"."),(0,l.kt)("li",{parentName:"ol"},"The ",(0,l.kt)("inlineCode",{parentName:"li"},"Domain")," helps aggregate the bounce data to see any domain-specific problem with deliverability."),(0,l.kt)("li",{parentName:"ol"},(0,l.kt)("inlineCode",{parentName:"li"},"SMTPBounceReason")," is the most helpful information when you want to understand what happened to your send. Be careful - this value can be configured to a custom string by the server owner. Some administrators are using this to inform you about a specific issue. Some are even faking the information to limit the emails coming to their servers from selected sources."),(0,l.kt)("li",{parentName:"ol"},(0,l.kt)("inlineCode",{parentName:"li"},"SMTPCode")," is useful for getting additional data on the Bounce Reason. Watch especially for 541 and 554. In most cases, it means you are considered a spammer by the server or already blocklisted. I recommend you to create an Automation with Verification Activity to get an automated warning whenever there are more than a few occurrences. Triage immediately.")),(0,l.kt)("admonition",{title:"You Should Know",type:"note"},(0,l.kt)("p",{parentName:"admonition"},(0,l.kt)("inlineCode",{parentName:"p"},"SMTPBounceReason")," field is ",(0,l.kt)("inlineCode",{parentName:"p"},"nvarchar(max)")," SQL type, and due to that might be longer than the 4000 characters limit for the Data Extension string length in Salesforce Marketing Cloud. If you want to save this data outside of Data View, be sure to use ",(0,l.kt)("a",{parentName:"p",href:"/docs/sql/sfmc-sql-string-functions#left--right"},(0,l.kt)("inlineCode",{parentName:"a"},"LEFT(SMTPBounceReason, 4000)")),".")),(0,l.kt)("h3",{id:"_complaint"},"_Complaint"),(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"_Complaint")," Data View stores Email Service Providers Feedback Loop (FBL) data. It means that if someone clicks the ",(0,l.kt)("inlineCode",{parentName:"p"},"Report Spam")," button for your email and there is FBL in place, this information will be added to the Data View. It will also result in an unsubscribe event and be visible in the ",(0,l.kt)("a",{parentName:"p",href:"#_unsubscribe"},(0,l.kt)("inlineCode",{parentName:"a"},"_Unsubscribe")),"."),(0,l.kt)("p",null,"Currently, Salesforce Marketing Cloud ",(0,l.kt)("a",{parentName:"p",href:"https://help.salesforce.com/s/articleView?id=000353531&type=1"},"supports Feedback Loops")," for Bluetie (Excite), Comcast, Cox, Fastmail, Microsoft Hotmail, Italia Online, La Poste, Liberty Global, Locaweb, Mail.ru, OpenSRS (Tucows), Rackspace (Mailtrust), Seznam, Synacor, Telenor, Telstra, Terra, UOL (Brazil), USA.net, XS4ALL and Yandex."),(0,l.kt)("p",null,"You can additionally ",(0,l.kt)("a",{parentName:"p",href:"https://help.salesforce.com/s/articleView?id=000312472&type=1"},"register for the Yahoo Feedback Loop"),". Gmail also has a ",(0,l.kt)("a",{parentName:"p",href:"https://help.salesforce.com/s/articleView?id=000353530&type=1"},"Feedback Loop system"),", but it works differently and won't be in ",(0,l.kt)("inlineCode",{parentName:"p"},"_Complaint")," Data View."),(0,l.kt)("p",null,"This Data View, along with ",(0,l.kt)("a",{parentName:"p",href:"#_bounce"},(0,l.kt)("inlineCode",{parentName:"a"},"_Bounce")),", should be monitored regularly to assess the health of your email marketing."),(0,l.kt)(r.Z,{defaultValue:"fields",values:[{label:"Fields",value:"fields"},{label:"SQL Query",value:"sql"}],mdxType:"Tabs"},(0,l.kt)(i.Z,{value:"fields",mdxType:"TabItem"},(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Data Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Nullable"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AccountID"),(0,l.kt)("td",{parentName:"tr",align:null},"Your parent account ID (MID) number"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"OYBAccountID"),(0,l.kt)("td",{parentName:"tr",align:null},"The account ID (MID) number of the child Business Unit that owns the data. If queried on parent Business Unit, it will be ",(0,l.kt)("inlineCode",{parentName:"td"},"Null")),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"JobID"),(0,l.kt)("td",{parentName:"tr",align:null},"The job ID number for the email send"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ListID"),(0,l.kt)("td",{parentName:"tr",align:null},"The list ID number for the list used in the send"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"BatchID"),(0,l.kt)("td",{parentName:"tr",align:null},"The batch ID number for any batches used in the send"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SubscriberID"),(0,l.kt)("td",{parentName:"tr",align:null},"The subscriber ID for the affected subscriber"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SubscriberKey"),(0,l.kt)("td",{parentName:"tr",align:null},"The subscriber key for the affected subscriber"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"EventDate"),(0,l.kt)("td",{parentName:"tr",align:null},"The date the send took place"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"IsUnique"),(0,l.kt)("td",{parentName:"tr",align:null},"Whether the event is unique or repeated - 1 for the first occurrence, 0 for subsequent"),(0,l.kt)("td",{parentName:"tr",align:null},"Boolean"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Domain"),(0,l.kt)("td",{parentName:"tr",align:null},"The domain at which the send occurred"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null}))))),(0,l.kt)(i.Z,{value:"sql",mdxType:"TabItem"},(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-sql"},"SELECT\n complaint.AccountID\n , complaint.OYBAccountID\n , complaint.JobID\n , complaint.ListID\n , complaint.BatchID\n , complaint.SubscriberID\n , complaint.SubscriberKey\n , complaint.EventDate\n , complaint.IsUnique\n , complaint.Domain\nFROM _Complaint AS complaint\n")))),(0,l.kt)("p",null,"When working with ",(0,l.kt)("inlineCode",{parentName:"p"},"_Complaint")," Data View:"),(0,l.kt)("ol",null,(0,l.kt)("li",{parentName:"ol"},"Use ",(0,l.kt)("inlineCode",{parentName:"li"},"JobID"),", ",(0,l.kt)("inlineCode",{parentName:"li"},"ListID"),", ",(0,l.kt)("inlineCode",{parentName:"li"},"BatchID")," and ",(0,l.kt)("inlineCode",{parentName:"li"},"SubscriberId")," or ",(0,l.kt)("inlineCode",{parentName:"li"},"SubscriberKey")," to match various events from multiple Data Views like ",(0,l.kt)("a",{parentName:"li",href:"#_sent"},(0,l.kt)("inlineCode",{parentName:"a"},"_Sent")),", ",(0,l.kt)("a",{parentName:"li",href:"#_open"},(0,l.kt)("inlineCode",{parentName:"a"},"_Open")),", ",(0,l.kt)("a",{parentName:"li",href:"#_click"},(0,l.kt)("inlineCode",{parentName:"a"},"_Click"))," for a single engagement with a particular subscriber."),(0,l.kt)("li",{parentName:"ol"},"Use ",(0,l.kt)("inlineCode",{parentName:"li"},"_complaint.IsUnique = 1")," in ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-join"},(0,l.kt)("inlineCode",{parentName:"a"},"JOIN"))," or ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-where"},(0,l.kt)("inlineCode",{parentName:"a"},"WHERE"))," to focus on the first occurence of each event."),(0,l.kt)("li",{parentName:"ol"},"The ",(0,l.kt)("inlineCode",{parentName:"li"},"Domain")," helps aggregate the Complaint data to see any domain-specific problem with targeting your communication.")),(0,l.kt)("hr",null),(0,l.kt)("h2",{id:"subscription-data-views"},"Subscription Data Views"),(0,l.kt)("p",null,"Subscription management in Salesforce Marketing Cloud is complex. Very complex."),(0,l.kt)("p",null,"It starts with four levels of unsubscriptions:"),(0,l.kt)("ol",null,(0,l.kt)("li",{parentName:"ol"},"List unsubscribe = no more sends from a particular list or publication list."),(0,l.kt)("li",{parentName:"ol"},"Business Unit unsubscribe = no more sends from a particular business unit."),(0,l.kt)("li",{parentName:"ol"},"Master unsubscribe = no more sends from your Marketing Cloud."),(0,l.kt)("li",{parentName:"ol"},"Global unsubscribe = no more sends from Marketing Cloud. Any, globally.")),(0,l.kt)("p",null,"And it gets even more interesting when you consider that triggering specific unsubscription level depends on email configuration, Email Studio configuration, preference center configuration and subscriber's behaviour."),(0,l.kt)("p",null,"Oh, and there is no out-of-the-box unsubscription from Data Extensions, which are currently the most popular segmentation and targeting tool."),(0,l.kt)("p",null,"To give us at least a chance to make sense of that mess, Salesforce created multiple System Data Views related to (un)subscriptions."),(0,l.kt)("admonition",{title:"You Should Know",type:"note"},(0,l.kt)("p",{parentName:"admonition"},"Spam Complaint and List-Unsubscribe Header are pretty particular unsubscription use cases. They are added to ",(0,l.kt)("a",{parentName:"p",href:"#_unsubscribe"},(0,l.kt)("inlineCode",{parentName:"a"},"_Unsubscribe"))," and ",(0,l.kt)("a",{parentName:"p",href:"#_businessunitunsubscribe"},(0,l.kt)("inlineCode",{parentName:"a"},"_BusinessUnitUnsubscribe"))," as unsubscriptions from a list used in send (for example, ID of Publication List selected for the send). In reality, Marketing Cloud will perform automatic unsubscribe from the All Subscriber list (depending on Email Studio settings - Child BU's or Enterprise one), not the list mentioned in ",(0,l.kt)("inlineCode",{parentName:"p"},"ListID"),"."),(0,l.kt)("p",{parentName:"admonition"},"As a result, when querying, you will see the list-specific unsubscribe that doesn't result in unsubscription from the list but instead blocks all commercial communication as a Business Unit or Master unsubscribe."),(0,l.kt)("p",{parentName:"admonition"},"Custom solution (Automation with Query and Script Activities) will be necessary to perform the list-specific unsubscribe.")),(0,l.kt)("h3",{id:"_unsubscribe"},"_Unsubscribe"),(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"_Unsubscribe")," Data View stores data about unsubscribe events. The wording here is crucial, as it explains the difference from ",(0,l.kt)("a",{parentName:"p",href:"#_subscribers"},(0,l.kt)("inlineCode",{parentName:"a"},"_Subscribers"))," Data View unsubsrciption counts."),(0,l.kt)("p",null,"In ",(0,l.kt)("inlineCode",{parentName:"p"},"_Subscribers"),", you can check what is the ",(0,l.kt)("strong",{parentName:"p"},"current subscription status")," for the All Subscribers list. In ",(0,l.kt)("inlineCode",{parentName:"p"},"_Unsubscribe"),", you see the ",(0,l.kt)("strong",{parentName:"p"},"unsubscription events")," happening from List-Unsubscribe Header, ",(0,l.kt)("inlineCode",{parentName:"p"},"LogUnsubEvent")," API call, Reply Mail Management responses, Complaints and out-of-the-box Preference Center - all linked to a specific ",(0,l.kt)("a",{parentName:"p",href:"#_job"},(0,l.kt)("inlineCode",{parentName:"a"},"_Job")),". It is also not limited to All Subscribers but also covers unsubscribes from other types of lists."),(0,l.kt)("p",null,"It means that status changes like Import Activity, direct API change, manual change in the Email Studio (not Job-specific) will be reflected in the ",(0,l.kt)("inlineCode",{parentName:"p"},"_Subscribers")," Data View, but not in the ",(0,l.kt)("inlineCode",{parentName:"p"},"_Unsubscribe"),". On the other hand, ",(0,l.kt)("inlineCode",{parentName:"p"},"UnsubEvents")," does not necessarily change the Status in the ",(0,l.kt)("inlineCode",{parentName:"p"},"_Subscribers"),". For example, taking care of List-Unsubscribe Header clicks require dedicated Automation to get this data from ",(0,l.kt)("inlineCode",{parentName:"p"},"_Unsubscribe")," Data View and push it to other parts of your consent data model."),(0,l.kt)("p",null,"This Data View stores data only for six-months, so retention-less ",(0,l.kt)("inlineCode",{parentName:"p"},"_Subscribers")," Data View might show more unsubscribed records if you are not cleaning them from SFMC regularly."),(0,l.kt)("p",null,"All of this makes ",(0,l.kt)("inlineCode",{parentName:"p"},"_Unsubscribe")," a much better source of knowledge about unsubscription."),(0,l.kt)(r.Z,{defaultValue:"fields",values:[{label:"Fields",value:"fields"},{label:"SQL Query",value:"sql"}],mdxType:"Tabs"},(0,l.kt)(i.Z,{value:"fields",mdxType:"TabItem"},(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Data Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Nullable"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AccountID"),(0,l.kt)("td",{parentName:"tr",align:null},"Your account ID number"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"OYBAccountID"),(0,l.kt)("td",{parentName:"tr",align:null},"The account ID (MID) number of the child Business Unit that owns the data. If queried on parent Business Unit, it will be ",(0,l.kt)("inlineCode",{parentName:"td"},"Null")),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"JobID"),(0,l.kt)("td",{parentName:"tr",align:null},"The job ID number for the email send"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ListID"),(0,l.kt)("td",{parentName:"tr",align:null},"The list ID number for the list used in the send"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"BatchID"),(0,l.kt)("td",{parentName:"tr",align:null},"The batch ID number for any batches used in the send"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SubscriberID"),(0,l.kt)("td",{parentName:"tr",align:null},"The subscriber ID for the affected subscriber"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SubscriberKey"),(0,l.kt)("td",{parentName:"tr",align:null},"The subscriber key for the affected subscriber"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"EventDate"),(0,l.kt)("td",{parentName:"tr",align:null},"The date the unsubscribe took place"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"IsUnique"),(0,l.kt)("td",{parentName:"tr",align:null},"Whether the event is unique or repeated - 1 for the first occurrence, 0 for subsequent"),(0,l.kt)("td",{parentName:"tr",align:null},"Boolean"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Domain"),(0,l.kt)("td",{parentName:"tr",align:null},"The domain at which the unsubscribe occurred"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null}))))),(0,l.kt)(i.Z,{value:"sql",mdxType:"TabItem"},(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-sql"},"SELECT\n unsub.AccountID\n , unsub.OYBAccountID\n , unsub.JobID\n , unsub.ListID\n , unsub.BatchID\n , unsub.SubscriberID\n , unsub.SubscriberKey\n , unsub.EventDate\n , unsub.IsUnique\n , unsub.Domain\nFROM _Unsubscribe AS unsub\n")))),(0,l.kt)("p",null,"When working with ",(0,l.kt)("inlineCode",{parentName:"p"},"_Unsubscribe")," Data View:"),(0,l.kt)("ol",null,(0,l.kt)("li",{parentName:"ol"},"Use ",(0,l.kt)("inlineCode",{parentName:"li"},"JobID"),", ",(0,l.kt)("inlineCode",{parentName:"li"},"ListID"),", ",(0,l.kt)("inlineCode",{parentName:"li"},"BatchID")," and ",(0,l.kt)("inlineCode",{parentName:"li"},"SubscriberId")," or ",(0,l.kt)("inlineCode",{parentName:"li"},"SubscriberKey")," to match various events from multiple Data Views like ",(0,l.kt)("a",{parentName:"li",href:"#_job"},(0,l.kt)("inlineCode",{parentName:"a"},"_Job"))," and ",(0,l.kt)("a",{parentName:"li",href:"#_subscribers"},(0,l.kt)("inlineCode",{parentName:"a"},"_Subscribers"))," to check unsubscription context."),(0,l.kt)("li",{parentName:"ol"},"Use ",(0,l.kt)("inlineCode",{parentName:"li"},"_unsubscribe.IsUnique = 1")," in ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-join"},(0,l.kt)("inlineCode",{parentName:"a"},"JOIN"))," or ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-where"},(0,l.kt)("inlineCode",{parentName:"a"},"WHERE"))," to focus on the first occurence of each event."),(0,l.kt)("li",{parentName:"ol"},"If you query this Data View on the child Business Unit, it will return only unsubscribe events from that specific BU."),(0,l.kt)("li",{parentName:"ol"},"The most valuable data here are:",(0,l.kt)("ul",{parentName:"li"},(0,l.kt)("li",{parentName:"ul"},(0,l.kt)("inlineCode",{parentName:"li"},"EventDate")," field that lets you know when the unsubscription happened"),(0,l.kt)("li",{parentName:"ul"},(0,l.kt)("inlineCode",{parentName:"li"},"ListID")," field that tells you which list is impacted by the unsubscription")))),(0,l.kt)("admonition",{title:"You Should Know",type:"note"},(0,l.kt)("p",{parentName:"admonition"},'If the subscriber clicks "Unsubscribe from All" on the out-of-the-box unsubscription center, it will perform Master Unsubscribe from all Lists. As it is a single event, it will be stored as a single record in the ',(0,l.kt)("inlineCode",{parentName:"p"},"_Unsubscribe")," Data View with random ListID assigned to it. For a complete picture, you will need to check ",(0,l.kt)("a",{parentName:"p",href:"#_listsubscribers"},(0,l.kt)("inlineCode",{parentName:"a"},"_ListSubscribers"))," Data View.")),(0,l.kt)("hr",null),(0,l.kt)("h3",{id:"_businessunitunsubscribes"},"_BusinessUnitUnsubscribes"),(0,l.kt)("p",null,(0,l.kt)("a",{parentName:"p",href:"#_subscribers"},(0,l.kt)("inlineCode",{parentName:"a"},"_Subscribers"))," Data View might give you information about the current state of subscriptions on the All Subscribers list. But if in Email Studio you configure Business Unit Level unsubscribes, this information will not be helpful, as the data stored there will not reflect the subscription status in a specific Business Unit."),(0,l.kt)("p",null,"Here comes the fresh ",(0,l.kt)("inlineCode",{parentName:"p"},"_BusinessUnitUnsubscribes")," Data View. It shows you the only unsubscribed contacts for each Business Unit. If the contact resubscribes - it will disappear from this Data View."),(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"_BusinessUnitUnsubscribes")," Data View will work differently depending on your SFMC ",(0,l.kt)("a",{parentName:"p",href:"https://help.salesforce.com/s/articleView?id=sf.mc_es_unsubscribe_settings.htm&type=5"},"unsubscription configuration"),'. You will be able to query it from the Child BU level only for Business Units set to "unsubscribe from this business unit only".'),(0,l.kt)(r.Z,{defaultValue:"fields",values:[{label:"Fields",value:"fields"},{label:"Field Picklist Values",value:"values"},{label:"SQL Query",value:"sql"}],mdxType:"Tabs"},(0,l.kt)(i.Z,{value:"fields",mdxType:"TabItem"},(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Data Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Nullable"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"BusinessUnitID"),(0,l.kt)("td",{parentName:"tr",align:null},"The Account ID for the Business Unit"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SubscriberID"),(0,l.kt)("td",{parentName:"tr",align:null},"The subscriber ID for the affected subscriber"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SubscriberKey"),(0,l.kt)("td",{parentName:"tr",align:null},"The subscriber key for the affected subscriber"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"UnsubDateUTC"),(0,l.kt)("td",{parentName:"tr",align:null},"The date the subscriber unsubscribed on the BU."),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"UnsubReason"),(0,l.kt)("td",{parentName:"tr",align:null},"The reason listed is a custom value configured by your administrator."),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X"))))),(0,l.kt)(i.Z,{value:"values",mdxType:"TabItem"},(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"UnsubReason")," possible values:"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"Spam Complaint"),(0,l.kt)("li",{parentName:"ul"},"Unsubscribed from list details on subscriber properties dialog."),(0,l.kt)("li",{parentName:"ul"},"Unsubscribed by Salesforce Marketing Cloud RMM service based on subscriber Leave/Reply email."),(0,l.kt)("li",{parentName:"ul"},"Unsubscribed by subscriber edit API call."),(0,l.kt)("li",{parentName:"ul"},"Unsubscribed from the Subscription Center"),(0,l.kt)("li",{parentName:"ul"},"Unsubscribed via Import")),(0,l.kt)("hr",null)),(0,l.kt)(i.Z,{value:"sql",mdxType:"TabItem"},(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-sql"},"SELECT\n buUnsub.BusinessUnitID\n , buUnsub.SubscriberID\n , buUnsub.SubscriberKey\n , buUnsub.UnsubDateUTC\n , buUnsub.UnsubReason\nFROM _BusinessUnitUnsubscribes AS buUnsub\n")))),(0,l.kt)("p",null,"When working with ",(0,l.kt)("inlineCode",{parentName:"p"},"_BusinessUnitUnsubscribes")," Data View:"),(0,l.kt)("ol",null,(0,l.kt)("li",{parentName:"ol"},"Remember that it stores only currently unsubscribed contacts. Not unsubscribe event data (that's in ",(0,l.kt)("a",{parentName:"li",href:"#_unsubscribe"},(0,l.kt)("inlineCode",{parentName:"a"},"_Unsubscribe")),") and not other statuses (like bounced, held). It will also not show unsubscribed users after they resubscribed or got deleted."),(0,l.kt)("li",{parentName:"ol"},(0,l.kt)("inlineCode",{parentName:"li"},"SubscriberID")," or ",(0,l.kt)("inlineCode",{parentName:"li"},"SubscriberKey")," along with ",(0,l.kt)("inlineCode",{parentName:"li"},"UnsubDateUTC")," might fuzzy match the data in this data view with ",(0,l.kt)("a",{parentName:"li",href:"#_unsubscribe"},(0,l.kt)("inlineCode",{parentName:"a"},"_Unsubscribe")),"."),(0,l.kt)("li",{parentName:"ol"},(0,l.kt)("inlineCode",{parentName:"li"},"UnsubDateUTC"),", as name suggests, is in UTC instead of the SFMC-standard UTC-6. Remember to use ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-date-functions#dateadd"},(0,l.kt)("inlineCode",{parentName:"a"},"DATEADD"))," to normalize it before comparing to other system dates."),(0,l.kt)("li",{parentName:"ol"},"The real treat in this data view (apart from finally having an easy option to see Business Unit unsubscribes) is the ",(0,l.kt)("inlineCode",{parentName:"li"},"UnsubReason")," field that can tell you more about the unsubscribe."),(0,l.kt)("li",{parentName:"ol"},"This Data View, along with ",(0,l.kt)("a",{parentName:"li",href:"#_subscribers"},(0,l.kt)("inlineCode",{parentName:"a"},"_Subscribers")),", ",(0,l.kt)("a",{parentName:"li",href:"#_enterpriseattribute"},(0,l.kt)("inlineCode",{parentName:"a"},"_EnterpriseAttribute"))," and ",(0,l.kt)("a",{parentName:"li",href:"#_listsubscribers"},(0,l.kt)("inlineCode",{parentName:"a"},"_ListSubscribers")),", does not have six-month data retention.")),(0,l.kt)("admonition",{title:"You Should Know",type:"note"},(0,l.kt)("p",{parentName:"admonition"},(0,l.kt)("inlineCode",{parentName:"p"},"UnsubDateUTC")," not only uses a different timezone from the rest of the system dates. It differs by a few milliseconds from ",(0,l.kt)("a",{parentName:"p",href:"#_unsubscribe"},(0,l.kt)("inlineCode",{parentName:"a"},"_Unsubscribe"))," ",(0,l.kt)("inlineCode",{parentName:"p"},"EventDate"),". When querying (SFMC doesn't show seconds for date fields), you won't see it, but the comparison is using the full datetime value."),(0,l.kt)("p",{parentName:"admonition"},"Because of it, you cannot match it out-of-the-box. ",(0,l.kt)("a",{parentName:"p",href:"/docs/sql/sfmc-sql-date-functions#datediff"},(0,l.kt)("inlineCode",{parentName:"a"},"DATEDIFF"))," is here to save the day:"),(0,l.kt)("pre",{parentName:"admonition"},(0,l.kt)("code",{parentName:"pre",className:"language-sql",metastring:'title="DATEDIFF will allow you to compare despite the difference"',title:'"DATEDIFF',will:!0,allow:!0,you:!0,to:!0,compare:!0,despite:!0,the:!0,'difference"':!0},"DATEDIFF(MINUTE, _Unsubscribe.EventDate, DATEADD(HOUR, -6, _BusinessUnitUnsubscribes.UnsubDateUTC)) < 1\n"))),(0,l.kt)("hr",null),(0,l.kt)("h3",{id:"_listsubscribers"},"_ListSubscribers"),(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"_ListSubscribers")," Data View stores data about the current status of the subscription. It might sound similar to ",(0,l.kt)("a",{parentName:"p",href:"#_subscribers"},(0,l.kt)("inlineCode",{parentName:"a"},"_Subscribers"))," and ",(0,l.kt)("a",{parentName:"p",href:"#_businessunitunsubscribes"},(0,l.kt)("inlineCode",{parentName:"a"},"_BusinessUnitUnsubscribes")),", but there are significant differences:"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},(0,l.kt)("inlineCode",{parentName:"li"},"_Subscribers")," has data about All Subscribers list only. ",(0,l.kt)("inlineCode",{parentName:"li"},"_ListSubscribers")," shows status for all Lists available in Salesforce Marketing Cloud."),(0,l.kt)("li",{parentName:"ul"},(0,l.kt)("inlineCode",{parentName:"li"},"_BusinessUnitUnsubscribes")," has data about contacts unsubscribed from All Subscribers on every Business Unit. ",(0,l.kt)("inlineCode",{parentName:"li"},"_ListSubscribers")," doesn't show Business Unit information, but it covers all Lists and all Statuses.")),(0,l.kt)(r.Z,{defaultValue:"fields",values:[{label:"Fields",value:"fields"},{label:"Field Picklist Values",value:"values"},{label:"SQL Query",value:"sql"}],mdxType:"Tabs"},(0,l.kt)(i.Z,{value:"fields",mdxType:"TabItem"},(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Data Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Nullable"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AddedBy"),(0,l.kt)("td",{parentName:"tr",align:null},"The ID of the user who ran the process that added the subscriber (might also be ",(0,l.kt)("inlineCode",{parentName:"td"},"0")," or ",(0,l.kt)("inlineCode",{parentName:"td"},"-1000"),")"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AddMethod"),(0,l.kt)("td",{parentName:"tr",align:null},"The method by which the subscriber was added"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"CreatedDate"),(0,l.kt)("td",{parentName:"tr",align:null},"The date the subscriber was added to the specific list"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"DateUnsubscribed"),(0,l.kt)("td",{parentName:"tr",align:null},"The date the subscriber unsubscribed"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"EmailAddress"),(0,l.kt)("td",{parentName:"tr",align:null},"The subscriber's email address"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ListID"),(0,l.kt)("td",{parentName:"tr",align:null},"The list ID number for the list used in the send"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ListName"),(0,l.kt)("td",{parentName:"tr",align:null},"The name of the list containing the subscribers"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ListType"),(0,l.kt)("td",{parentName:"tr",align:null},"Shows whether the type is list or group"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"Status"),(0,l.kt)("td",{parentName:"tr",align:null},"The status of the subscriber"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SubscriberID"),(0,l.kt)("td",{parentName:"tr",align:null},"The subscriber ID for the affected subscriber"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SubscriberKey"),(0,l.kt)("td",{parentName:"tr",align:null},"The subscriber key for the affected subscriber"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"SubscriberType"),(0,l.kt)("td",{parentName:"tr",align:null},"The type of subscriber (it will be ",(0,l.kt)("inlineCode",{parentName:"td"},"ExactTarget"),")"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X"))))),(0,l.kt)(i.Z,{value:"values",mdxType:"TabItem"},(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"AddMethod")," possible values:"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"API"),(0,l.kt)("li",{parentName:"ul"},"Imported"),(0,l.kt)("li",{parentName:"ul"},"WebApplication"),(0,l.kt)("li",{parentName:"ul"},"DataExtensionSend"),(0,l.kt)("li",{parentName:"ul"},"Unknown")),(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"ListType")," possible values:"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"Publication List"),(0,l.kt)("li",{parentName:"ul"},"Suppression List"),(0,l.kt)("li",{parentName:"ul"},"List"),(0,l.kt)("li",{parentName:"ul"},"Group"),(0,l.kt)("li",{parentName:"ul"},"FTAF List"),(0,l.kt)("li",{parentName:"ul"},"Unknown")),(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"Status")," possible values:"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"active"),(0,l.kt)("li",{parentName:"ul"},"held"),(0,l.kt)("li",{parentName:"ul"},"unsubscribed"),(0,l.kt)("li",{parentName:"ul"},"bounced")),(0,l.kt)("hr",null)),(0,l.kt)(i.Z,{value:"sql",mdxType:"TabItem"},(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-sql"},"SELECT\n listSub.AddedBy\n , listSub.AddMethod\n , listSub.CreatedDate\n , listSub.DateUnsubscribed\n , listSub.EmailAddress\n , listSub.ListID\n , listSub.ListName\n , listSub.ListType\n , listSub.Status\n , listSub.SubscriberID\n , listSub.SubscriberKey\n , listSub.SubscriberType\nFROM _ListSubscribers AS listSub\n")))),(0,l.kt)("p",null,"When working with ",(0,l.kt)("inlineCode",{parentName:"p"},"_ListSubscribers")," Data View:"),(0,l.kt)("ol",null,(0,l.kt)("li",{parentName:"ol"},"Thanks to having ",(0,l.kt)("inlineCode",{parentName:"li"},"ListID"),", ",(0,l.kt)("inlineCode",{parentName:"li"},"ListName")," and ",(0,l.kt)("inlineCode",{parentName:"li"},"ListType")," fields, it allows you to make sense of the ",(0,l.kt)("inlineCode",{parentName:"li"},"ListID")," field available in all other engagement-based System Data Views."),(0,l.kt)("li",{parentName:"ol"},"This Data View, along with ",(0,l.kt)("a",{parentName:"li",href:"#_subscribers"},(0,l.kt)("inlineCode",{parentName:"a"},"_Subscribers")),", ",(0,l.kt)("a",{parentName:"li",href:"#_enterpriseattribute"},(0,l.kt)("inlineCode",{parentName:"a"},"_EnterpriseAttribute"))," and ",(0,l.kt)("a",{parentName:"li",href:"#_businessunitunsubscribes"},(0,l.kt)("inlineCode",{parentName:"a"},"_BusinessUnitUnsubscribes")),", does not have six-month data retention."),(0,l.kt)("li",{parentName:"ol"},"You can only query Lists available on the current Business Unit. It's not possible to check Child's List subscription status from the Parent BU. The exception is the All Subscribers list that is shared across all Business Units.")),(0,l.kt)("hr",null),(0,l.kt)("h2",{id:"mobile-connect-data-views"},"Mobile Connect Data Views"),(0,l.kt)("p",null,"Learn more about Mobile Connect ",(0,l.kt)("a",{parentName:"p",href:"/docs/config/sfmc-mobile-connect-data-views"},"SMS Data Views here"),"."),(0,l.kt)("hr",null),(0,l.kt)("h2",{id:"journey-data-views"},"Journey Data Views"),(0,l.kt)("h3",{id:"_journey"},"_Journey"),(0,l.kt)("p",null,"Stores information about your Journeys for when context matters."),(0,l.kt)(r.Z,{defaultValue:"fields",values:[{label:"Fields",value:"fields"},{label:"Field Picklist Values",value:"values"},{label:"SQL Query",value:"sql"}],mdxType:"Tabs"},(0,l.kt)(i.Z,{value:"fields",mdxType:"TabItem"},(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Data Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Nullable"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"VersionID"),(0,l.kt)("td",{parentName:"tr",align:null},"The unique identifier for the version of the Journey"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"JourneyID"),(0,l.kt)("td",{parentName:"tr",align:null},"The unique identifier for the Journey. There are one or more VersionID's associated to a JourneyID."),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"JourneyName"),(0,l.kt)("td",{parentName:"tr",align:null},"The name of the Journey"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"VersionNumber"),(0,l.kt)("td",{parentName:"tr",align:null},"The version number of the version of the Journey"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"CreatedDate"),(0,l.kt)("td",{parentName:"tr",align:null},"The date that the version of the Journey was created"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"LastPublishedDate"),(0,l.kt)("td",{parentName:"tr",align:null},"The date that the version of the Journey was last published"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ModifiedDate"),(0,l.kt)("td",{parentName:"tr",align:null},"The date that the version of the Journey was last edited"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"JourneyStatus"),(0,l.kt)("td",{parentName:"tr",align:null},"The current running mode of the Journey"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null}))))),(0,l.kt)(i.Z,{value:"values",mdxType:"TabItem"},(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"JourneyStatus")," possible values:"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"Draft"),(0,l.kt)("li",{parentName:"ul"},"Running"),(0,l.kt)("li",{parentName:"ul"},"Finishing"),(0,l.kt)("li",{parentName:"ul"},"Stopped"),(0,l.kt)("li",{parentName:"ul"},"Deleted")),(0,l.kt)("hr",null)),(0,l.kt)(i.Z,{value:"sql",mdxType:"TabItem"},(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-sql"},"SELECT\n journey.VersionID\n , journey.JourneyID\n , journey.JourneyName\n , journey.VersionNumber\n , journey.CreatedDate\n , journey.LastPublishedDate\n , journey.ModifiedDate\n , journey.JourneyStatus\nFROM _Journey AS journey\n")))),(0,l.kt)("p",null,"When working with ",(0,l.kt)("inlineCode",{parentName:"p"},"_Journey")," Data View:"),(0,l.kt)("ol",null,(0,l.kt)("li",{parentName:"ol"},(0,l.kt)("inlineCode",{parentName:"li"},"VersionID")," field is perfect to ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-join"},(0,l.kt)("inlineCode",{parentName:"a"},"JOIN"))," with ",(0,l.kt)("a",{parentName:"li",href:"#_journeyactivity"},(0,l.kt)("inlineCode",{parentName:"a"},"_JourneyActivity")),". It lets you map multi-channel engagement to a particular Journey (visible in ",(0,l.kt)("inlineCode",{parentName:"li"},"JourneyName"),") and its specific version (as shown in ",(0,l.kt)("inlineCode",{parentName:"li"},"VersionNumber"),")."),(0,l.kt)("li",{parentName:"ol"},"You can also connect it to SMS channel using ",(0,l.kt)("a",{parentName:"li",href:"/docs/config/sfmc-mobile-connect-data-views#_smsmessagetracking"},"_SMSMessageTracking")," Data View by making a ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-join"},(0,l.kt)("inlineCode",{parentName:"a"},"JOIN"))," ",(0,l.kt)("inlineCode",{parentName:"li"},"ON journey.VersionID = smsTracking.JBDefinitionID"),"."),(0,l.kt)("li",{parentName:"ol"},"Use ",(0,l.kt)("inlineCode",{parentName:"li"},"JourneyStatus")," to check what is the current Journey Status. It is fantastic for both the ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-where"},(0,l.kt)("inlineCode",{parentName:"a"},"WHERE"))," statement and a data point for engagement analysis. Think about scheduled Automation that finds all emails performing below expectations and checks which are in the Active Journeys. For all found, it sends you a notification to check and improve. For awful results, you can even use this data in Script Activity to automatically stop the Journey with the SFMC REST API."),(0,l.kt)("li",{parentName:"ol"},"The Date fields (",(0,l.kt)("inlineCode",{parentName:"li"},"CreatedDate"),", ",(0,l.kt)("inlineCode",{parentName:"li"},"LastPublishedDate"),", ",(0,l.kt)("inlineCode",{parentName:"li"},"ModifiedDate"),") are cool for automated cleanup of old Journeys, especially when paired with the ",(0,l.kt)("a",{parentName:"li",href:"#_sent"},(0,l.kt)("inlineCode",{parentName:"a"},"_Sent"))," data. For example, you can create monthly Automation that checks all Journeys that were last modified at least three months ago and, based on the send volume or performance, stop them and notify you about that."),(0,l.kt)("li",{parentName:"ol"},"You can query only Journeys that currently exists in your Business Unit.")),(0,l.kt)("admonition",{title:"You Should Know",type:"note"},(0,l.kt)("p",{parentName:"admonition"},(0,l.kt)("inlineCode",{parentName:"p"},"_Journey")," Data View shows data limited to a specific Business Unit. Your parent Business Unit has access to ",(0,l.kt)("a",{parentName:"p",href:"#_sent"},(0,l.kt)("inlineCode",{parentName:"a"},"_Sent")),", ",(0,l.kt)("a",{parentName:"p",href:"#_open"},(0,l.kt)("inlineCode",{parentName:"a"},"_Open")),", ",(0,l.kt)("a",{parentName:"p",href:"#_click"},(0,l.kt)("inlineCode",{parentName:"a"},"_Click"))," and other data from all Business Units, but this is not the case with ",(0,l.kt)("inlineCode",{parentName:"p"},"_Journey"),". You can query only those Journeys that were created in the Business Unit where you execute your SQL snippet."),(0,l.kt)("p",{parentName:"admonition"},"Always consider this when choosing Business Unit to execute the query and the type of ",(0,l.kt)("a",{parentName:"p",href:"/docs/sql/sfmc-sql-join"},(0,l.kt)("inlineCode",{parentName:"a"},"JOIN"))," statement.")),(0,l.kt)("hr",null),(0,l.kt)("h3",{id:"_journeyactivity"},"_JourneyActivity"),(0,l.kt)("p",null,"Stores information about Activities available in your Journeys. Must-have for joining Email data with Journey data."),(0,l.kt)(r.Z,{defaultValue:"fields",values:[{label:"Fields",value:"fields"},{label:"Field Picklist Values",value:"values"},{label:"SQL Query",value:"sql"}],mdxType:"Tabs"},(0,l.kt)(i.Z,{value:"fields",mdxType:"TabItem"},(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Data Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Nullable"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"VersionID"),(0,l.kt)("td",{parentName:"tr",align:null},"The unique identifier for the version of the Journey"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ActivityID"),(0,l.kt)("td",{parentName:"tr",align:null},"The unique identifier for the activity. There are one or more ActivityID's associated to a VersionID."),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ActivityName"),(0,l.kt)("td",{parentName:"tr",align:null},"The name of the activity"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ActivityExternalKey"),(0,l.kt)("td",{parentName:"tr",align:null},"The external key associated with the activity"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"JourneyActivityObjectID"),(0,l.kt)("td",{parentName:"tr",align:null},"Use this unique identifier to join to email tracking system Data Views to identify a Journey email's Triggered Send Definition."),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ActivityType"),(0,l.kt)("td",{parentName:"tr",align:null},"The type of activity"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X"))))),(0,l.kt)(i.Z,{value:"values",mdxType:"TabItem"},(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"ActivityType")," possible values:"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},(0,l.kt)("inlineCode",{parentName:"li"},"null")),(0,l.kt)("li",{parentName:"ul"},"APIEvent"),(0,l.kt)("li",{parentName:"ul"},"Audience"),(0,l.kt)("li",{parentName:"ul"},"AutomationAudience"),(0,l.kt)("li",{parentName:"ul"},"CloudPagesSmartCaptureSubmissionEvent"),(0,l.kt)("li",{parentName:"ul"},"ContactEvent"),(0,l.kt)("li",{parentName:"ul"},"EMAILAUDIENCE"),(0,l.kt)("li",{parentName:"ul"},"EMAILV2"),(0,l.kt)("li",{parentName:"ul"},"ENGAGEMENTDECISION"),(0,l.kt)("li",{parentName:"ul"},"Event"),(0,l.kt)("li",{parentName:"ul"},"ExitCriteria"),(0,l.kt)("li",{parentName:"ul"},"MULTICRITERIADECISION"),(0,l.kt)("li",{parentName:"ul"},"NOOP"),(0,l.kt)("li",{parentName:"ul"},"PUSHNOTIFICATIONACTIVITY"),(0,l.kt)("li",{parentName:"ul"},"RANDOMSPLIT"),(0,l.kt)("li",{parentName:"ul"},"SENDTOLINESYNC"),(0,l.kt)("li",{parentName:"ul"},"StartActivity"),(0,l.kt)("li",{parentName:"ul"},"STOWAIT"),(0,l.kt)("li",{parentName:"ul"},"transactional-api"),(0,l.kt)("li",{parentName:"ul"},"UPDATECONTACTDATA"),(0,l.kt)("li",{parentName:"ul"},"WAIT")),(0,l.kt)("hr",null)),(0,l.kt)(i.Z,{value:"sql",mdxType:"TabItem"},(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-sql"},"SELECT\n journeyActivity.VersionID\n , journeyActivity.ActivityID\n , journeyActivity.ActivityName\n , journeyActivity.ActivityExternalKey\n , journeyActivity.JourneyActivityObjectID\n , journeyActivity.ActivityType\nFROM _JourneyActivity AS journeyActivity\n")))),(0,l.kt)("p",null,"When working with ",(0,l.kt)("inlineCode",{parentName:"p"},"_JourneyActivity")," Data View:"),(0,l.kt)("ol",null,(0,l.kt)("li",{parentName:"ol"},"There are two key fields here: ",(0,l.kt)("inlineCode",{parentName:"li"},"VersionID")," and ",(0,l.kt)("inlineCode",{parentName:"li"},"JourneyActivityObjectID"),". ",(0,l.kt)("inlineCode",{parentName:"li"},"JourneyActivityObjectID")," lets you match Journey Activity with specific Email Send. Use ",(0,l.kt)("inlineCode",{parentName:"li"},"TriggererSendDefinitionObjectID")," available on either ",(0,l.kt)("a",{parentName:"li",href:"#_job"},(0,l.kt)("inlineCode",{parentName:"a"},"_Job")),", ",(0,l.kt)("a",{parentName:"li",href:"#_sent"},(0,l.kt)("inlineCode",{parentName:"a"},"_Sent")),", ",(0,l.kt)("a",{parentName:"li",href:"#_open"},(0,l.kt)("inlineCode",{parentName:"a"},"_Open")),", ",(0,l.kt)("a",{parentName:"li",href:"#_click"},(0,l.kt)("inlineCode",{parentName:"a"},"_Click")," ")," or ",(0,l.kt)("a",{parentName:"li",href:"#_bounce"},(0,l.kt)("inlineCode",{parentName:"a"},"_Bounce"))," Data View. It is handy when you later use the ",(0,l.kt)("inlineCode",{parentName:"li"},"VersionID")," field to ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-join"},(0,l.kt)("inlineCode",{parentName:"a"},"JOIN"))," ",(0,l.kt)("a",{parentName:"li",href:"#_journey"},(0,l.kt)("inlineCode",{parentName:"a"},"_Journey"))," Data View and with this connect specific Email engagement with particular Journey and its exact version. Fantastic for full scope reporting."),(0,l.kt)("li",{parentName:"ol"},"You can also connect it to SMS channel using ",(0,l.kt)("a",{parentName:"li",href:"/docs/config/sfmc-mobile-connect-data-views#_smsmessagetracking"},"_SMSMessageTracking")," Data View by making a ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-join"},(0,l.kt)("inlineCode",{parentName:"a"},"JOIN"))," ",(0,l.kt)("inlineCode",{parentName:"li"},"ON journeyActivity.ActivityID = smsTracking.JBActivityID"),"."),(0,l.kt)("li",{parentName:"ol"},"With the help of ",(0,l.kt)("a",{parentName:"li",href:"#_journey"},(0,l.kt)("inlineCode",{parentName:"a"},"_Journey"))," Data View, you can use the ",(0,l.kt)("inlineCode",{parentName:"li"},"ActivityType")," field for an excellent little report created with SQL that will show which Journeys use which channels and what types of logic. For a more in-depth understanding of what happens in Journey, you need to use Script Activity with REST API instead, but SQL is perfect for glancing at the multi-channel use."),(0,l.kt)("li",{parentName:"ol"},(0,l.kt)("inlineCode",{parentName:"li"},"_JourneyActivity")," Data View holds data about activities from deleted Journeys and Journey Versions, so if you want to see only activities currently in use, ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-join"},(0,l.kt)("inlineCode",{parentName:"a"},"JOIN"))," ",(0,l.kt)("a",{parentName:"li",href:"#_journey"},(0,l.kt)("inlineCode",{parentName:"a"},"_Journey"))," Data View.")),(0,l.kt)("admonition",{title:"You Should Know",type:"note"},(0,l.kt)("p",{parentName:"admonition"},(0,l.kt)("inlineCode",{parentName:"p"},"_JourneyActivity")," Data View shows data limited to a specific Business Unit. Your parent Business Unit has access to ",(0,l.kt)("a",{parentName:"p",href:"#_sent"},(0,l.kt)("inlineCode",{parentName:"a"},"_Sent")),", ",(0,l.kt)("a",{parentName:"p",href:"#_open"},(0,l.kt)("inlineCode",{parentName:"a"},"_Open")),", ",(0,l.kt)("a",{parentName:"p",href:"#_click"},(0,l.kt)("inlineCode",{parentName:"a"},"_Click"))," and other data from all Business Units, but this is not the case with ",(0,l.kt)("inlineCode",{parentName:"p"},"_JourneyActivity"),". You can query only those Journey Activities that were created in the Business Unit where you execute your SQL snippet."),(0,l.kt)("p",{parentName:"admonition"},"Always consider this when choosing Business Unit to execute the query and the type of ",(0,l.kt)("a",{parentName:"p",href:"/docs/sql/sfmc-sql-join"},(0,l.kt)("inlineCode",{parentName:"a"},"JOIN"))," statement.")),(0,l.kt)("hr",null),(0,l.kt)("h2",{id:"automation-data-views"},"Automation Data Views"),(0,l.kt)("h3",{id:"_automationinstance"},"_AutomationInstance"),(0,l.kt)("p",null,"Provides historical information about Automation runs."),(0,l.kt)(r.Z,{defaultValue:"fields",values:[{label:"Fields",value:"fields"},{label:"Field Picklist Values",value:"values"},{label:"SQL Query",value:"sql"}],mdxType:"Tabs"},(0,l.kt)(i.Z,{value:"fields",mdxType:"TabItem"},(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Data Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Nullable"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"MemberID"),(0,l.kt)("td",{parentName:"tr",align:null},"The Account ID for the Business Unit"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AutomationName"),(0,l.kt)("td",{parentName:"tr",align:null},"The name of the automation"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AutomationDescription"),(0,l.kt)("td",{parentName:"tr",align:null},"The description of the automation"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AutomationCustomerKey"),(0,l.kt)("td",{parentName:"tr",align:null},"The unique ID of the automation"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AutomationInstanceID"),(0,l.kt)("td",{parentName:"tr",align:null},"The unique ID of the specific automation run"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AutomationType"),(0,l.kt)("td",{parentName:"tr",align:null},"The type of starting source used in automation"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AutomationNotificationRecipient_Complete"),(0,l.kt)("td",{parentName:"tr",align:null},"Email(s) receiving notification about completed runs"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AutomationNotificationRecipient_Error"),(0,l.kt)("td",{parentName:"tr",align:null},"Email(s) receiving notification about errored runs"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AutomationNotificationRecipient_Skip"),(0,l.kt)("td",{parentName:"tr",align:null},"Email(s) receiving notification about skipped runs"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AutomationStepCount"),(0,l.kt)("td",{parentName:"tr",align:null},"The number of steps in the automation"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AutomationInstanceIsRunOnce"),(0,l.kt)("td",{parentName:"tr",align:null},"Was this specific automation run executed with Run Once? 1 for true, 0 for false in File Drop and Triggered automations. Null in Schedule automations"),(0,l.kt)("td",{parentName:"tr",align:null},"Boolean"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"FilenameFromTrigger"),(0,l.kt)("td",{parentName:"tr",align:null},"Name of the file that triggered the automation for Triggered and File Drop automations. Null for Schedule automations"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AutomationInstanceScheduledTime_UTC"),(0,l.kt)("td",{parentName:"tr",align:null},"Starting schedule datetime in UTC timezone for Schedule automations. Null for Triggered and File Drop automation"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AutomationInstanceStartTime_UTC"),(0,l.kt)("td",{parentName:"tr",align:null},"Automation run start datetime in UTC timezone. Null if run is skipped"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AutomationInstanceEndTime_UTC"),(0,l.kt)("td",{parentName:"tr",align:null},"Automation run end datetime in UTC timezone. Null if run is skipped or still running"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AutomationInstanceStatus"),(0,l.kt)("td",{parentName:"tr",align:null},"The status of the automation run at the time of querying"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AutomationInstanceActivityErrorDetails"),(0,l.kt)("td",{parentName:"tr",align:null},"The first error message encountered in the automation run"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X"))))),(0,l.kt)(i.Z,{value:"values",mdxType:"TabItem"},(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"AutomationType")," possible values:"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"Schedule"),(0,l.kt)("li",{parentName:"ul"},"File Drop"),(0,l.kt)("li",{parentName:"ul"},"Trigger")),(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"AutomationInstanceStatus")," possible values:"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"QueuedFile"),(0,l.kt)("li",{parentName:"ul"},"Initialized"),(0,l.kt)("li",{parentName:"ul"},"Executing"),(0,l.kt)("li",{parentName:"ul"},"Stopped"),(0,l.kt)("li",{parentName:"ul"},"Complete"),(0,l.kt)("li",{parentName:"ul"},"Error")),(0,l.kt)("hr",null)),(0,l.kt)(i.Z,{value:"sql",mdxType:"TabItem"},(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-sql"},"SELECT\n automation.MemberID\n , automation.AutomationName\n , automation.AutomationDescription\n , automation.AutomationCustomerKey\n , automation.AutomationInstanceID\n , automation.AutomationType\n , automation.AutomationNotificationRecipient_Complete\n , automation.AutomationNotificationRecipient_Error\n , automation.AutomationNotificationRecipient_Skip\n , automation.AutomationStepCount\n , automation.AutomationInstanceIsRunOnce\n , automation.FilenameFromTrigger\n , automation.AutomationInstanceScheduledTime_UTC\n , automation.AutomationInstanceStartTime_UTC\n , automation.AutomationInstanceEndTime_UTC\n , automation.AutomationInstanceStatus\n , automation.AutomationInstanceActivityErrorDetails\nFROM _AutomationInstance AS automation\n")))),(0,l.kt)("p",null,"When working with ",(0,l.kt)("inlineCode",{parentName:"p"},"_AutomationInstance")," Data View:"),(0,l.kt)("ol",null,(0,l.kt)("li",{parentName:"ol"},"This data view stores all Automation ",(0,l.kt)("strong",{parentName:"li"},"runs"),", so you will see here separte row for each execution of the Automation. This is great basic audit tool for logging changes to the automation as well as a nice way to counting the amount of automation executions against licence limits."),(0,l.kt)("li",{parentName:"ol"},"Key limitation of ",(0,l.kt)("inlineCode",{parentName:"li"},"_AutomationInstance")," is that it shows data with 24 hours delay. If you need real-time information about Automation Studio status, you will still need an API approach. But for not that urget use cases this new option will be much more performant."),(0,l.kt)("li",{parentName:"ol"},"If automation run errored out due to system or unclassified error, ",(0,l.kt)("inlineCode",{parentName:"li"},"AutomationInstanceActivityErrorDetails"),' will show "System Error occurred. Please contact support for details.". In other cases it will store the first error message. If there are more and you want to find them, you will need to leverage ',(0,l.kt)("a",{parentName:"li",href:"#_AutomationActivityInstance"},(0,l.kt)("inlineCode",{parentName:"a"},"_AutomationActivityInstance"))," Data View."),(0,l.kt)("li",{parentName:"ol"},"All date fields in this data view are UTC based (unlike most other Data Views) so when manipulating them with ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-date-functions"},"SQL Date Functions")," it might be best to use ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-date-functions#getdate--getutcdate"},(0,l.kt)("inlineCode",{parentName:"a"},"GETUTCDATE()"))," instead of system date from ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-date-functions#getdate--getutcdate"},(0,l.kt)("inlineCode",{parentName:"a"},"GETDATE()")),"."),(0,l.kt)("li",{parentName:"ol"},(0,l.kt)("inlineCode",{parentName:"li"},"AutomationInstanceID")," field is perfect to ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-join"},(0,l.kt)("inlineCode",{parentName:"a"},"JOIN"))," with ",(0,l.kt)("a",{parentName:"li",href:"#_AutomationActivityInstance"},(0,l.kt)("inlineCode",{parentName:"a"},"_AutomationActivityInstance")),". It lets you find information about execution of each activity within the Automation in the specific run.")),(0,l.kt)("admonition",{title:"You Should Know",type:"note"},(0,l.kt)("p",{parentName:"admonition"},(0,l.kt)("inlineCode",{parentName:"p"},"_AutomationInstance")," Data View shows data limited to a specific Business Unit. Your parent Business Unit has access to ",(0,l.kt)("a",{parentName:"p",href:"#_sent"},(0,l.kt)("inlineCode",{parentName:"a"},"_Sent")),", ",(0,l.kt)("a",{parentName:"p",href:"#_open"},(0,l.kt)("inlineCode",{parentName:"a"},"_Open")),", ",(0,l.kt)("a",{parentName:"p",href:"#_click"},(0,l.kt)("inlineCode",{parentName:"a"},"_Click"))," and other data from all Business Units, but this is not the case with ",(0,l.kt)("inlineCode",{parentName:"p"},"_AutomationInstance"),". You can query only those Automtion runs that were executed in the Business Unit where you execute your SQL snippet."),(0,l.kt)("p",{parentName:"admonition"},"Always consider this when choosing Business Unit to execute the query and the type of ",(0,l.kt)("a",{parentName:"p",href:"/docs/sql/sfmc-sql-join"},(0,l.kt)("inlineCode",{parentName:"a"},"JOIN"))," statement.")),(0,l.kt)("h3",{id:"_automationactivityinstance"},"_AutomationActivityInstance"),(0,l.kt)("p",null,"Provides historical information about Automation Studio Activity runs."),(0,l.kt)(r.Z,{defaultValue:"fields",values:[{label:"Fields",value:"fields"},{label:"Field Picklist Values",value:"values"},{label:"SQL Query",value:"sql"}],mdxType:"Tabs"},(0,l.kt)(i.Z,{value:"fields",mdxType:"TabItem"},(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Data Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Nullable"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"MemberID"),(0,l.kt)("td",{parentName:"tr",align:null},"The Account ID for the Business Unit"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AutomationName"),(0,l.kt)("td",{parentName:"tr",align:null},"The name of the automation"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AutomationCustomerKey"),(0,l.kt)("td",{parentName:"tr",align:null},"The unique ID of the automation"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"AutomationInstanceID"),(0,l.kt)("td",{parentName:"tr",align:null},"The unique ID of the specific automation run"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ActivityCustomerKey"),(0,l.kt)("td",{parentName:"tr",align:null},"The unique ID of the activity"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ActivityInstanceID"),(0,l.kt)("td",{parentName:"tr",align:null},"The unique ID of the specific activity execution"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ActivityType"),(0,l.kt)("td",{parentName:"tr",align:null},"The type of the activity (numeric ID)"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ActivityName"),(0,l.kt)("td",{parentName:"tr",align:null},"The name of the activity"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ActivityDescription"),(0,l.kt)("td",{parentName:"tr",align:null},"The description of the activity"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ActivityInstanceStep"),(0,l.kt)("td",{parentName:"tr",align:null},"The two-dimensional description where in automation the activity is located"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ActivityInstanceStartTime_UTC"),(0,l.kt)("td",{parentName:"tr",align:null},"Activity execution start datetime in UTC timezone. Null if run is skipped"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ActivityInstanceEndTime_UTC"),(0,l.kt)("td",{parentName:"tr",align:null},"Activity execution end datetime in UTC timezone. Null if run is skipped or still running"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},"X")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ActivityInstanceStatus"),(0,l.kt)("td",{parentName:"tr",align:null},"The status of the activity run at the time of querying"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ActivityInstanceStatusDetails"),(0,l.kt)("td",{parentName:"tr",align:null},"The error message encountered in the activity execution"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null},"X"))))),(0,l.kt)(i.Z,{value:"values",mdxType:"TabItem"},(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"ActivityType")," possible values:"),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Value"),(0,l.kt)("th",{parentName:"tr",align:null},"Meaning"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"33"),(0,l.kt)("td",{parentName:"tr",align:null},"SMS Activity")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"42"),(0,l.kt)("td",{parentName:"tr",align:null},"Send Email")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"43"),(0,l.kt)("td",{parentName:"tr",align:null},"Import File")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"45"),(0,l.kt)("td",{parentName:"tr",align:null},"Refresh Group")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"53"),(0,l.kt)("td",{parentName:"tr",align:null},"File Transfer")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"73"),(0,l.kt)("td",{parentName:"tr",align:null},"Data Extract")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"84"),(0,l.kt)("td",{parentName:"tr",align:null},"Report Definition")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"300"),(0,l.kt)("td",{parentName:"tr",align:null},"SQL Query")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"303"),(0,l.kt)("td",{parentName:"tr",align:null},"Filter")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"423"),(0,l.kt)("td",{parentName:"tr",align:null},"Script")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"425"),(0,l.kt)("td",{parentName:"tr",align:null},"Data Factory Utility Activity")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"426"),(0,l.kt)("td",{parentName:"tr",align:null},"Refresh Segment Template")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"427"),(0,l.kt)("td",{parentName:"tr",align:null},"Publish Audience")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"467"),(0,l.kt)("td",{parentName:"tr",align:null},"Wait")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"724"),(0,l.kt)("td",{parentName:"tr",align:null},"Refresh Mobile Filtered List")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"725"),(0,l.kt)("td",{parentName:"tr",align:null},"Send SMS")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"726"),(0,l.kt)("td",{parentName:"tr",align:null},"Import Mobile Contacts")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"733"),(0,l.kt)("td",{parentName:"tr",align:null},"Journey Builder Event Activity")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"736"),(0,l.kt)("td",{parentName:"tr",align:null},"Send Push")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"749"),(0,l.kt)("td",{parentName:"tr",align:null},"Fire Event")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"771"),(0,l.kt)("td",{parentName:"tr",align:null},"Salesforce Email Send")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"772"),(0,l.kt)("td",{parentName:"tr",align:null},"Mobile Connect Send Salesforce Sync Subscriber")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"783"),(0,l.kt)("td",{parentName:"tr",align:null},"Send GroupConnect")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"1000"),(0,l.kt)("td",{parentName:"tr",align:null},"Verification")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"1010"),(0,l.kt)("td",{parentName:"tr",align:null},"Interaction Studio Data")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"1101"),(0,l.kt)("td",{parentName:"tr",align:null},"Interactions")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"1701"),(0,l.kt)("td",{parentName:"tr",align:null},"Batch Personalization")),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"3700"),(0,l.kt)("td",{parentName:"tr",align:null},"Contact to Business Unit Mapping")))),(0,l.kt)("p",null,(0,l.kt)("inlineCode",{parentName:"p"},"ActivityInstanceStatus")," possible values:"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"Initialized"),(0,l.kt)("li",{parentName:"ul"},"Executing"),(0,l.kt)("li",{parentName:"ul"},"Complete"),(0,l.kt)("li",{parentName:"ul"},"Error"),(0,l.kt)("li",{parentName:"ul"},"NotSelected")),(0,l.kt)("hr",null)),(0,l.kt)(i.Z,{value:"sql",mdxType:"TabItem"},(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-sql"},"SELECT\n automationActivity.MemberID\n , automationActivity.AutomationName\n , automationActivity.AutomationCustomerKey\n , automationActivity.AutomationInstanceID\n , automationActivity.ActivityCustomerKey\n , automationActivity.ActivityInstanceID\n , automationActivity.ActivityType\n , automationActivity.ActivityName\n , automationActivity.ActivityDescription\n , automationActivity.ActivityInstanceStep\n , automationActivity.ActivityInstanceStartTime_UTC\n , automationActivity.ActivityInstanceEndTime_UTC\n , automationActivity.ActivityInstanceStatus\n , automationActivity.ActivityInstanceStatusDetails\nFROM _AutomationActivityInstance AS automationActivity\n")))),(0,l.kt)("p",null,"When working with ",(0,l.kt)("inlineCode",{parentName:"p"},"_AutomationActivityInstance")," Data View:"),(0,l.kt)("ol",null,(0,l.kt)("li",{parentName:"ol"},"This data view stores all Automation Activity ",(0,l.kt)("strong",{parentName:"li"},"runs"),", so you will see here separte row for each execution of each Activity. It is awesome tool for checking how optimised our Activities are and what errors are troubling our Automations."),(0,l.kt)("li",{parentName:"ol"},"Key limitation of ",(0,l.kt)("inlineCode",{parentName:"li"},"_AutomationActivityInstance")," is that it shows data with 24 hours delay."),(0,l.kt)("li",{parentName:"ol"},"If activity run errored out due to system or unclassified error, ",(0,l.kt)("inlineCode",{parentName:"li"},"ActivityInstanceStatusDetails"),' will show "System Error occurred. Please contact support for details.". In other cases it will store the error message.'),(0,l.kt)("li",{parentName:"ol"},"All date fields in this data view are UTC based (unlike most other Data Views) so when manipulating them with ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-date-functions"},"SQL Date Functions")," it might be best to use ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-date-functions#getdate--getutcdate"},(0,l.kt)("inlineCode",{parentName:"a"},"GETUTCDATE()"))," instead of system date from ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-date-functions#getdate--getutcdate"},(0,l.kt)("inlineCode",{parentName:"a"},"GETDATE()")),"."),(0,l.kt)("li",{parentName:"ol"},"The start and end dates in this data view can be leveraged with ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-date-functions#datediff"},(0,l.kt)("inlineCode",{parentName:"a"},"DATEDIFF"))," and ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-aggregate-functions#avg"},(0,l.kt)("inlineCode",{parentName:"a"},"AVG"))," to calculate average time needed for each activity to finish. This information is crucial to assess whether the current automation Schedule is correct and where the optimisation efforts are required to protect against 30 minutes autokill."),(0,l.kt)("li",{parentName:"ol"},(0,l.kt)("inlineCode",{parentName:"li"},"AutomationInstanceID")," field is perfect to ",(0,l.kt)("a",{parentName:"li",href:"/docs/sql/sfmc-sql-join"},(0,l.kt)("inlineCode",{parentName:"a"},"JOIN"))," with ",(0,l.kt)("a",{parentName:"li",href:"#_AutomationInstance"},(0,l.kt)("inlineCode",{parentName:"a"},"_AutomationInstance")),". It lets you find information about the Automation using this Activity.")),(0,l.kt)("admonition",{title:"You Should Know",type:"note"},(0,l.kt)("p",{parentName:"admonition"},(0,l.kt)("inlineCode",{parentName:"p"},"_AutomationActivityInstance")," Data View shows data limited to a specific Business Unit. Your parent Business Unit has access to ",(0,l.kt)("a",{parentName:"p",href:"#_sent"},(0,l.kt)("inlineCode",{parentName:"a"},"_Sent")),", ",(0,l.kt)("a",{parentName:"p",href:"#_open"},(0,l.kt)("inlineCode",{parentName:"a"},"_Open")),", ",(0,l.kt)("a",{parentName:"p",href:"#_click"},(0,l.kt)("inlineCode",{parentName:"a"},"_Click"))," and other data from all Business Units, but this is not the case with ",(0,l.kt)("inlineCode",{parentName:"p"},"_AutomationActivityInstance"),". You can query only those Automation Activities that were created in the Business Unit where you execute your SQL snippet."),(0,l.kt)("p",{parentName:"admonition"},"Always consider this when choosing Business Unit to execute the query and the type of ",(0,l.kt)("a",{parentName:"p",href:"/docs/sql/sfmc-sql-join"},(0,l.kt)("inlineCode",{parentName:"a"},"JOIN"))," statement.")),(0,l.kt)("hr",null),(0,l.kt)("h2",{id:"custom-data-views"},"Custom Data Views"),(0,l.kt)("p",null,"On top of all the built-in Data Views mentioned above, there is also a paid option for custom Data Views. As for the possibilities, the sky is the limit. Example? ",(0,l.kt)("a",{parentName:"p",href:"https://linkedin.com/in/lunow"},"Lukas Lunow")," ",(0,l.kt)("a",{parentName:"p",href:"https://salesforce.stackexchange.com/a/293395/91679"},"highlighted")," a fascinating one that solves the problem of knowing what is the current status of a Contact in a given Journey:"),(0,l.kt)("admonition",{title:"You Should Know",type:"note"},(0,l.kt)("p",{parentName:"admonition"},"As ",(0,l.kt)("a",{parentName:"p",href:"https://salesforce.stackexchange.com/a/293395/91679"},"shared")," by Lukas, since May 2021, there is longer no possibility to create Custom Data Views leveraging the Journey Builder.")),(0,l.kt)("table",null,(0,l.kt)("thead",{parentName:"table"},(0,l.kt)("tr",{parentName:"thead"},(0,l.kt)("th",{parentName:"tr",align:null},"Name"),(0,l.kt)("th",{parentName:"tr",align:null},"Description"),(0,l.kt)("th",{parentName:"tr",align:null},"Data Type"),(0,l.kt)("th",{parentName:"tr",align:null},"Nullable"))),(0,l.kt)("tbody",{parentName:"table"},(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"JourneyVersionNumber"),(0,l.kt)("td",{parentName:"tr",align:null},"The version number of the version of the Journey"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"JourneyName"),(0,l.kt)("td",{parentName:"tr",align:null},"The name of the Journey"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"JourneyStatus"),(0,l.kt)("td",{parentName:"tr",align:null},"Tells you whether the Journey is still Active"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ContactKey"),(0,l.kt)("td",{parentName:"tr",align:null},"The subscriber key for the affected subscriber"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ContactID"),(0,l.kt)("td",{parentName:"tr",align:null},"Global Contact ID (not Contact Key)"),(0,l.kt)("td",{parentName:"tr",align:null},"Number"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ContactStatus"),(0,l.kt)("td",{parentName:"tr",align:null},"Tell you whether the contact is still in the Journey (",(0,l.kt)("inlineCode",{parentName:"td"},"Active"),", ",(0,l.kt)("inlineCode",{parentName:"td"},"Exited")," or even more detailed like ",(0,l.kt)("inlineCode",{parentName:"td"},"DidNotMeetEntryCriteria"),", ",(0,l.kt)("inlineCode",{parentName:"td"},"ContactExitedByAPI"),")"),(0,l.kt)("td",{parentName:"tr",align:null},"Text"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"EntryDate"),(0,l.kt)("td",{parentName:"tr",align:null},"Date of Journey Entry"),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null})),(0,l.kt)("tr",{parentName:"tbody"},(0,l.kt)("td",{parentName:"tr",align:null},"ExitDate"),(0,l.kt)("td",{parentName:"tr",align:null},"Date of Journey Exit - including Goal / Exit Criteria. Null if still in Journey."),(0,l.kt)("td",{parentName:"tr",align:null},"Date"),(0,l.kt)("td",{parentName:"tr",align:null},"x")))),(0,l.kt)("p",null,"Yes, you can create a workaround to know whether the Contact is in a given Journey using standard Data Extension and Update Contact Journey Activities at the beginning and end of every Journey. Not only it requires you to remember always to add those additional steps. It also blocks you from using Goals and Exit Criteria."),(0,l.kt)("p",null,"Custom Data View allow you to eat a cookie and have a cookie."),(0,l.kt)("p",null,"You can certainly come up with other use cases that could be solved if only you had one additional data point. Now you can."))}b.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/runtime~main.7bf2f1a5.js b/assets/js/runtime~main.069343b6.js similarity index 99% rename from assets/js/runtime~main.7bf2f1a5.js rename to assets/js/runtime~main.069343b6.js index 79378423f..cd5f617b2 100644 --- a/assets/js/runtime~main.7bf2f1a5.js +++ b/assets/js/runtime~main.069343b6.js @@ -1 +1 @@ -(()=>{"use strict";var e,a,f,d,c={},b={};function t(e){var a=b[e];if(void 0!==a)return a.exports;var f=b[e]={id:e,loaded:!1,exports:{}};return c[e].call(f.exports,f,f.exports,t),f.loaded=!0,f.exports}t.m=c,t.c=b,e=[],t.O=(a,f,d,c)=>{if(!f){var b=1/0;for(i=0;i=c)&&Object.keys(t.O).every((e=>t.O[e](f[o])))?f.splice(o--,1):(r=!1,c0&&e[i-1][2]>c;i--)e[i]=e[i-1];e[i]=[f,d,c]},t.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return t.d(a,{a:a}),a},f=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,t.t=function(e,d){if(1&d&&(e=this(e)),8&d)return e;if("object"==typeof e&&e){if(4&d&&e.__esModule)return e;if(16&d&&"function"==typeof e.then)return e}var c=Object.create(null);t.r(c);var b={};a=a||[null,f({}),f([]),f(f)];for(var r=2&d&&e;"object"==typeof r&&!~a.indexOf(r);r=f(r))Object.getOwnPropertyNames(r).forEach((a=>b[a]=()=>e[a]));return b.default=()=>e,t.d(c,b),c},t.d=(e,a)=>{for(var f in a)t.o(a,f)&&!t.o(e,f)&&Object.defineProperty(e,f,{enumerable:!0,get:a[f]})},t.f={},t.e=e=>Promise.all(Object.keys(t.f).reduce(((a,f)=>(t.f[f](e,a),a)),[])),t.u=e=>"assets/js/"+({53:"935f2afb",130:"0ae20921",299:"6ef4e5a9",362:"75f11010",633:"fcb5ea75",770:"ba7840dc",800:"1328d02f",840:"5ee7ecad",924:"b39e9a29",927:"42b43273",945:"67a57efa",952:"a8b77297",998:"e5fc05e6",1074:"dfa9382d",1092:"7f9f5c99",1099:"407fe916",1247:"d164ef0a",1351:"7eaafb14",1441:"d4ed38e0",1572:"f564aeae",1654:"ecd0154e",1694:"9be7a4ef",1697:"7a40f54e",1706:"1ad5d13a",1837:"ce321ae3",1872:"20e039ae",1918:"81fb7942",2050:"1843ef45",2163:"ff6cdf17",2244:"8440116e",2618:"b463a77c",2640:"9944d2ae",2731:"15878b2f",2769:"beb9716f",2831:"655aa231",2907:"f881cc1a",3009:"8a538aec",3108:"612d51b5",3157:"772c8612",3207:"22145d1a",3265:"734af923",3275:"b33fbe49",3447:"cafad187",3466:"4d6aece4",3605:"ff324314",3637:"48b2f688",3664:"369b6fa3",3687:"30084dac",3751:"3720c009",3786:"c8a2287d",3864:"8e6f5683",3877:"05bf1b0a",4027:"fa7b3a47",4121:"55960ee5",4134:"6d83c2a5",4195:"c4f5d8e4",4200:"92cda9bf",4219:"7f3cd917",4331:"2e2f252f",4414:"66b75e7a",4502:"dc8b40ff",4507:"7827587b",4514:"d44a7d50",4650:"a6709703",4715:"8dfb128c",4799:"18f12793",4853:"7046da09",4941:"c792d462",5169:"9a63677c",5244:"240325d0",5295:"6f35f557",5354:"aeba84fb",5406:"9e4ad429",5413:"5ad68b42",5590:"81e44c7d",5605:"0cb3f831",5647:"99db9621",5811:"b84a6020",5831:"3b360413",6050:"f4b177ec",6091:"78bdd589",6167:"2cf43088",6440:"9177d15f",6576:"33ffb019",6583:"c0a0d864",6606:"09792c4b",6639:"c7794043",6795:"0b7df9a2",7008:"6a99b79c",7120:"ecbe7f2c",7207:"d5687ba7",7215:"14add631",7279:"420d9621",7531:"937990e1",7542:"b840d82f",7576:"ecf138d3",7670:"b8693892",7706:"ff2c7cca",7805:"fd9368c3",7873:"ec6dc5c4",7918:"17896441",7920:"1a4e3797",7921:"c64b8421",7983:"cb12d9b9",8421:"e5aa2e7b",8537:"13f9d961",8645:"3365a9e9",8693:"b52e5d8d",8700:"fe4d0c3d",8773:"bb5d57b6",8798:"2b07918c",8819:"edb10261",8833:"c60f9f65",8845:"06bea203",8847:"3b7e54b4",9021:"409b673b",9117:"e2615d27",9134:"509f2ea4",9379:"e3f02ea0",9449:"d2c975d1",9484:"5ee690fc",9514:"1be78505",9517:"139f0dd3",9817:"14eb3368",9855:"0e89a207",9865:"f3b2d393",9887:"45ce19ba",9922:"7e516c75",9924:"df203c0f"}[e]||e)+"."+{53:"fc80ed25",130:"c9e843a1",299:"cb5cf355",362:"669b6480",633:"49291732",770:"a5cbf57f",800:"94855e42",840:"7dfd9771",924:"8736aa8d",927:"37d4a00c",945:"7afccd58",952:"98a212dc",998:"eebfc85c",1074:"6fc496ec",1092:"78f31540",1099:"9f16b5e1",1247:"5dfdf68d",1351:"3ea7593f",1426:"71674b4b",1441:"4a5c20ff",1572:"7ebdc609",1654:"f2e5d890",1694:"8d8e7884",1697:"60f7c7e3",1706:"573648bd",1765:"bbf8e0e8",1837:"110e20cb",1872:"d0481e11",1918:"0b5c08e5",2050:"001f1829",2153:"ba5319f1",2163:"1c6a804c",2244:"c4f35040",2618:"2afc4922",2640:"7565d3dd",2731:"2e60eca3",2769:"3850ee5a",2831:"fc8c5aed",2907:"11f5b3c0",3009:"125cb74f",3108:"6e1d1434",3157:"e1066268",3207:"43f6683b",3265:"f5f662e0",3275:"bec08f3e",3447:"db005bf0",3466:"ad869df5",3605:"34bac101",3637:"f0eeff23",3664:"e8674569",3687:"ce88301b",3751:"465c883a",3786:"feb5464a",3864:"2ea92753",3877:"edf8973f",4027:"945299aa",4121:"d90f5bbc",4134:"0534db3b",4195:"8f51117e",4200:"c1740670",4219:"b05fc5c0",4248:"360e6c79",4331:"5cf41d20",4414:"8467bdee",4502:"885ab7e7",4507:"59bf63a4",4514:"d1e2179b",4650:"84b2269e",4715:"01423c01",4799:"eca4f6de",4853:"3aaf63ac",4941:"a0470937",5169:"4f4aa057",5244:"2d6dbe4f",5295:"0bd177a2",5354:"db0b222d",5406:"17fdd2f9",5413:"ef3c436d",5590:"eef205bf",5605:"0bbf7690",5647:"86977d30",5811:"1c18e841",5831:"da161dd4",6050:"d55e6b4d",6091:"4ea7e967",6167:"e4910f97",6316:"2009feb9",6440:"9dbda4fa",6576:"c602af21",6583:"e50fa5e0",6606:"6060a3e7",6639:"ba82b1ba",6795:"5f8000b0",6945:"a569def7",7008:"df1b5be0",7120:"13620c1b",7207:"6c478ae9",7215:"316e2c03",7279:"a7b1a4cb",7531:"64309f69",7542:"d2e54469",7576:"93a412ab",7670:"99126ef3",7706:"58ca14b1",7724:"4286755f",7805:"cd3f9f7b",7873:"60577ed4",7918:"957336a6",7920:"dcd342f8",7921:"ae233fe9",7983:"db528504",8421:"ef84462c",8537:"b940ac19",8645:"7010b386",8693:"ba7e203c",8700:"3a405712",8773:"0d958107",8798:"e2871f9b",8819:"87a0b6a3",8833:"7c0f6cf1",8845:"01f84522",8847:"19f43cb3",9021:"246861c2",9117:"c2585def",9134:"61b2f7a5",9379:"7d8a622b",9449:"00633d8b",9484:"579e0ecc",9487:"178ea76e",9514:"6fd0c9a9",9517:"86b16f74",9817:"96621dc4",9855:"ca99072c",9865:"dd9463de",9887:"938d0fd2",9922:"c476101a",9924:"6fd6f28b"}[e]+".js",t.miniCssF=e=>{},t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),t.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),d={},t.l=(e,a,f,c)=>{if(d[e])d[e].push(a);else{var b,r;if(void 0!==f)for(var o=document.getElementsByTagName("script"),n=0;n{b.onerror=b.onload=null,clearTimeout(l);var c=d[e];if(delete d[e],b.parentNode&&b.parentNode.removeChild(b),c&&c.forEach((e=>e(f))),a)return a(f)},l=setTimeout(u.bind(null,void 0,{type:"timeout",target:b}),12e4);b.onerror=u.bind(null,b.onerror),b.onload=u.bind(null,b.onload),r&&document.head.appendChild(b)}},t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.p="/",t.gca=function(e){return e={17896441:"7918","935f2afb":"53","0ae20921":"130","6ef4e5a9":"299","75f11010":"362",fcb5ea75:"633",ba7840dc:"770","1328d02f":"800","5ee7ecad":"840",b39e9a29:"924","42b43273":"927","67a57efa":"945",a8b77297:"952",e5fc05e6:"998",dfa9382d:"1074","7f9f5c99":"1092","407fe916":"1099",d164ef0a:"1247","7eaafb14":"1351",d4ed38e0:"1441",f564aeae:"1572",ecd0154e:"1654","9be7a4ef":"1694","7a40f54e":"1697","1ad5d13a":"1706",ce321ae3:"1837","20e039ae":"1872","81fb7942":"1918","1843ef45":"2050",ff6cdf17:"2163","8440116e":"2244",b463a77c:"2618","9944d2ae":"2640","15878b2f":"2731",beb9716f:"2769","655aa231":"2831",f881cc1a:"2907","8a538aec":"3009","612d51b5":"3108","772c8612":"3157","22145d1a":"3207","734af923":"3265",b33fbe49:"3275",cafad187:"3447","4d6aece4":"3466",ff324314:"3605","48b2f688":"3637","369b6fa3":"3664","30084dac":"3687","3720c009":"3751",c8a2287d:"3786","8e6f5683":"3864","05bf1b0a":"3877",fa7b3a47:"4027","55960ee5":"4121","6d83c2a5":"4134",c4f5d8e4:"4195","92cda9bf":"4200","7f3cd917":"4219","2e2f252f":"4331","66b75e7a":"4414",dc8b40ff:"4502","7827587b":"4507",d44a7d50:"4514",a6709703:"4650","8dfb128c":"4715","18f12793":"4799","7046da09":"4853",c792d462:"4941","9a63677c":"5169","240325d0":"5244","6f35f557":"5295",aeba84fb:"5354","9e4ad429":"5406","5ad68b42":"5413","81e44c7d":"5590","0cb3f831":"5605","99db9621":"5647",b84a6020:"5811","3b360413":"5831",f4b177ec:"6050","78bdd589":"6091","2cf43088":"6167","9177d15f":"6440","33ffb019":"6576",c0a0d864:"6583","09792c4b":"6606",c7794043:"6639","0b7df9a2":"6795","6a99b79c":"7008",ecbe7f2c:"7120",d5687ba7:"7207","14add631":"7215","420d9621":"7279","937990e1":"7531",b840d82f:"7542",ecf138d3:"7576",b8693892:"7670",ff2c7cca:"7706",fd9368c3:"7805",ec6dc5c4:"7873","1a4e3797":"7920",c64b8421:"7921",cb12d9b9:"7983",e5aa2e7b:"8421","13f9d961":"8537","3365a9e9":"8645",b52e5d8d:"8693",fe4d0c3d:"8700",bb5d57b6:"8773","2b07918c":"8798",edb10261:"8819",c60f9f65:"8833","06bea203":"8845","3b7e54b4":"8847","409b673b":"9021",e2615d27:"9117","509f2ea4":"9134",e3f02ea0:"9379",d2c975d1:"9449","5ee690fc":"9484","1be78505":"9514","139f0dd3":"9517","14eb3368":"9817","0e89a207":"9855",f3b2d393:"9865","45ce19ba":"9887","7e516c75":"9922",df203c0f:"9924"}[e]||e,t.p+t.u(e)},(()=>{var e={1303:0,532:0};t.f.j=(a,f)=>{var d=t.o(e,a)?e[a]:void 0;if(0!==d)if(d)f.push(d[2]);else if(/^(1303|532)$/.test(a))e[a]=0;else{var c=new Promise(((f,c)=>d=e[a]=[f,c]));f.push(d[2]=c);var b=t.p+t.u(a),r=new Error;t.l(b,(f=>{if(t.o(e,a)&&(0!==(d=e[a])&&(e[a]=void 0),d)){var c=f&&("load"===f.type?"missing":f.type),b=f&&f.target&&f.target.src;r.message="Loading chunk "+a+" failed.\n("+c+": "+b+")",r.name="ChunkLoadError",r.type=c,r.request=b,d[1](r)}}),"chunk-"+a,a)}},t.O.j=a=>0===e[a];var a=(a,f)=>{var d,c,b=f[0],r=f[1],o=f[2],n=0;if(b.some((a=>0!==e[a]))){for(d in r)t.o(r,d)&&(t.m[d]=r[d]);if(o)var i=o(t)}for(a&&a(f);n{"use strict";var e,a,f,d,c={},b={};function t(e){var a=b[e];if(void 0!==a)return a.exports;var f=b[e]={id:e,loaded:!1,exports:{}};return c[e].call(f.exports,f,f.exports,t),f.loaded=!0,f.exports}t.m=c,t.c=b,e=[],t.O=(a,f,d,c)=>{if(!f){var b=1/0;for(i=0;i=c)&&Object.keys(t.O).every((e=>t.O[e](f[o])))?f.splice(o--,1):(r=!1,c0&&e[i-1][2]>c;i--)e[i]=e[i-1];e[i]=[f,d,c]},t.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return t.d(a,{a:a}),a},f=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,t.t=function(e,d){if(1&d&&(e=this(e)),8&d)return e;if("object"==typeof e&&e){if(4&d&&e.__esModule)return e;if(16&d&&"function"==typeof e.then)return e}var c=Object.create(null);t.r(c);var b={};a=a||[null,f({}),f([]),f(f)];for(var r=2&d&&e;"object"==typeof r&&!~a.indexOf(r);r=f(r))Object.getOwnPropertyNames(r).forEach((a=>b[a]=()=>e[a]));return b.default=()=>e,t.d(c,b),c},t.d=(e,a)=>{for(var f in a)t.o(a,f)&&!t.o(e,f)&&Object.defineProperty(e,f,{enumerable:!0,get:a[f]})},t.f={},t.e=e=>Promise.all(Object.keys(t.f).reduce(((a,f)=>(t.f[f](e,a),a)),[])),t.u=e=>"assets/js/"+({53:"935f2afb",130:"0ae20921",299:"6ef4e5a9",362:"75f11010",633:"fcb5ea75",770:"ba7840dc",800:"1328d02f",840:"5ee7ecad",924:"b39e9a29",927:"42b43273",945:"67a57efa",952:"a8b77297",998:"e5fc05e6",1074:"dfa9382d",1092:"7f9f5c99",1099:"407fe916",1247:"d164ef0a",1351:"7eaafb14",1441:"d4ed38e0",1572:"f564aeae",1654:"ecd0154e",1694:"9be7a4ef",1697:"7a40f54e",1706:"1ad5d13a",1837:"ce321ae3",1872:"20e039ae",1918:"81fb7942",2050:"1843ef45",2163:"ff6cdf17",2244:"8440116e",2618:"b463a77c",2640:"9944d2ae",2731:"15878b2f",2769:"beb9716f",2831:"655aa231",2907:"f881cc1a",3009:"8a538aec",3108:"612d51b5",3157:"772c8612",3207:"22145d1a",3265:"734af923",3275:"b33fbe49",3447:"cafad187",3466:"4d6aece4",3605:"ff324314",3637:"48b2f688",3664:"369b6fa3",3687:"30084dac",3751:"3720c009",3786:"c8a2287d",3864:"8e6f5683",3877:"05bf1b0a",4027:"fa7b3a47",4121:"55960ee5",4134:"6d83c2a5",4195:"c4f5d8e4",4200:"92cda9bf",4219:"7f3cd917",4331:"2e2f252f",4414:"66b75e7a",4502:"dc8b40ff",4507:"7827587b",4514:"d44a7d50",4650:"a6709703",4715:"8dfb128c",4799:"18f12793",4853:"7046da09",4941:"c792d462",5169:"9a63677c",5244:"240325d0",5295:"6f35f557",5354:"aeba84fb",5406:"9e4ad429",5413:"5ad68b42",5590:"81e44c7d",5605:"0cb3f831",5647:"99db9621",5811:"b84a6020",5831:"3b360413",6050:"f4b177ec",6091:"78bdd589",6167:"2cf43088",6440:"9177d15f",6576:"33ffb019",6583:"c0a0d864",6606:"09792c4b",6639:"c7794043",6795:"0b7df9a2",7008:"6a99b79c",7120:"ecbe7f2c",7207:"d5687ba7",7215:"14add631",7279:"420d9621",7531:"937990e1",7542:"b840d82f",7576:"ecf138d3",7670:"b8693892",7706:"ff2c7cca",7805:"fd9368c3",7873:"ec6dc5c4",7918:"17896441",7920:"1a4e3797",7921:"c64b8421",7983:"cb12d9b9",8421:"e5aa2e7b",8537:"13f9d961",8645:"3365a9e9",8693:"b52e5d8d",8700:"fe4d0c3d",8773:"bb5d57b6",8798:"2b07918c",8819:"edb10261",8833:"c60f9f65",8845:"06bea203",8847:"3b7e54b4",9021:"409b673b",9117:"e2615d27",9134:"509f2ea4",9379:"e3f02ea0",9449:"d2c975d1",9484:"5ee690fc",9514:"1be78505",9517:"139f0dd3",9817:"14eb3368",9855:"0e89a207",9865:"f3b2d393",9887:"45ce19ba",9922:"7e516c75",9924:"df203c0f"}[e]||e)+"."+{53:"fc80ed25",130:"c9e843a1",299:"cb5cf355",362:"669b6480",633:"49291732",770:"a5cbf57f",800:"94855e42",840:"7dfd9771",924:"8736aa8d",927:"37d4a00c",945:"7afccd58",952:"98a212dc",998:"eebfc85c",1074:"6fc496ec",1092:"959d9312",1099:"9f16b5e1",1247:"5dfdf68d",1351:"3ea7593f",1426:"71674b4b",1441:"4a5c20ff",1572:"7ebdc609",1654:"f2e5d890",1694:"8d8e7884",1697:"60f7c7e3",1706:"573648bd",1765:"bbf8e0e8",1837:"110e20cb",1872:"d0481e11",1918:"0b5c08e5",2050:"001f1829",2153:"ba5319f1",2163:"1c6a804c",2244:"c4f35040",2618:"2afc4922",2640:"7565d3dd",2731:"2e60eca3",2769:"3850ee5a",2831:"fc8c5aed",2907:"11f5b3c0",3009:"125cb74f",3108:"6e1d1434",3157:"e1066268",3207:"43f6683b",3265:"f5f662e0",3275:"bec08f3e",3447:"db005bf0",3466:"ad869df5",3605:"34bac101",3637:"f0eeff23",3664:"e8674569",3687:"ce88301b",3751:"465c883a",3786:"feb5464a",3864:"2ea92753",3877:"edf8973f",4027:"945299aa",4121:"d90f5bbc",4134:"0534db3b",4195:"8f51117e",4200:"c1740670",4219:"b05fc5c0",4248:"360e6c79",4331:"5cf41d20",4414:"8467bdee",4502:"885ab7e7",4507:"59bf63a4",4514:"d1e2179b",4650:"84b2269e",4715:"01423c01",4799:"eca4f6de",4853:"3aaf63ac",4941:"a0470937",5169:"4f4aa057",5244:"2d6dbe4f",5295:"0bd177a2",5354:"db0b222d",5406:"17fdd2f9",5413:"ef3c436d",5590:"eef205bf",5605:"0bbf7690",5647:"86977d30",5811:"1c18e841",5831:"da161dd4",6050:"d55e6b4d",6091:"4ea7e967",6167:"e4910f97",6316:"2009feb9",6440:"9dbda4fa",6576:"c602af21",6583:"e50fa5e0",6606:"6060a3e7",6639:"ba82b1ba",6795:"5f8000b0",6945:"a569def7",7008:"df1b5be0",7120:"13620c1b",7207:"6c478ae9",7215:"316e2c03",7279:"a7b1a4cb",7531:"64309f69",7542:"d2e54469",7576:"93a412ab",7670:"99126ef3",7706:"58ca14b1",7724:"4286755f",7805:"cd3f9f7b",7873:"60577ed4",7918:"957336a6",7920:"dcd342f8",7921:"ae233fe9",7983:"db528504",8421:"ef84462c",8537:"b940ac19",8645:"7010b386",8693:"ba7e203c",8700:"3a405712",8773:"0d958107",8798:"e2871f9b",8819:"87a0b6a3",8833:"7c0f6cf1",8845:"01f84522",8847:"19f43cb3",9021:"246861c2",9117:"c2585def",9134:"61b2f7a5",9379:"7d8a622b",9449:"00633d8b",9484:"579e0ecc",9487:"178ea76e",9514:"6fd0c9a9",9517:"86b16f74",9817:"96621dc4",9855:"ca99072c",9865:"dd9463de",9887:"938d0fd2",9922:"c476101a",9924:"6fd6f28b"}[e]+".js",t.miniCssF=e=>{},t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),t.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),d={},t.l=(e,a,f,c)=>{if(d[e])d[e].push(a);else{var b,r;if(void 0!==f)for(var o=document.getElementsByTagName("script"),n=0;n{b.onerror=b.onload=null,clearTimeout(l);var c=d[e];if(delete d[e],b.parentNode&&b.parentNode.removeChild(b),c&&c.forEach((e=>e(f))),a)return a(f)},l=setTimeout(u.bind(null,void 0,{type:"timeout",target:b}),12e4);b.onerror=u.bind(null,b.onerror),b.onload=u.bind(null,b.onload),r&&document.head.appendChild(b)}},t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.p="/",t.gca=function(e){return e={17896441:"7918","935f2afb":"53","0ae20921":"130","6ef4e5a9":"299","75f11010":"362",fcb5ea75:"633",ba7840dc:"770","1328d02f":"800","5ee7ecad":"840",b39e9a29:"924","42b43273":"927","67a57efa":"945",a8b77297:"952",e5fc05e6:"998",dfa9382d:"1074","7f9f5c99":"1092","407fe916":"1099",d164ef0a:"1247","7eaafb14":"1351",d4ed38e0:"1441",f564aeae:"1572",ecd0154e:"1654","9be7a4ef":"1694","7a40f54e":"1697","1ad5d13a":"1706",ce321ae3:"1837","20e039ae":"1872","81fb7942":"1918","1843ef45":"2050",ff6cdf17:"2163","8440116e":"2244",b463a77c:"2618","9944d2ae":"2640","15878b2f":"2731",beb9716f:"2769","655aa231":"2831",f881cc1a:"2907","8a538aec":"3009","612d51b5":"3108","772c8612":"3157","22145d1a":"3207","734af923":"3265",b33fbe49:"3275",cafad187:"3447","4d6aece4":"3466",ff324314:"3605","48b2f688":"3637","369b6fa3":"3664","30084dac":"3687","3720c009":"3751",c8a2287d:"3786","8e6f5683":"3864","05bf1b0a":"3877",fa7b3a47:"4027","55960ee5":"4121","6d83c2a5":"4134",c4f5d8e4:"4195","92cda9bf":"4200","7f3cd917":"4219","2e2f252f":"4331","66b75e7a":"4414",dc8b40ff:"4502","7827587b":"4507",d44a7d50:"4514",a6709703:"4650","8dfb128c":"4715","18f12793":"4799","7046da09":"4853",c792d462:"4941","9a63677c":"5169","240325d0":"5244","6f35f557":"5295",aeba84fb:"5354","9e4ad429":"5406","5ad68b42":"5413","81e44c7d":"5590","0cb3f831":"5605","99db9621":"5647",b84a6020:"5811","3b360413":"5831",f4b177ec:"6050","78bdd589":"6091","2cf43088":"6167","9177d15f":"6440","33ffb019":"6576",c0a0d864:"6583","09792c4b":"6606",c7794043:"6639","0b7df9a2":"6795","6a99b79c":"7008",ecbe7f2c:"7120",d5687ba7:"7207","14add631":"7215","420d9621":"7279","937990e1":"7531",b840d82f:"7542",ecf138d3:"7576",b8693892:"7670",ff2c7cca:"7706",fd9368c3:"7805",ec6dc5c4:"7873","1a4e3797":"7920",c64b8421:"7921",cb12d9b9:"7983",e5aa2e7b:"8421","13f9d961":"8537","3365a9e9":"8645",b52e5d8d:"8693",fe4d0c3d:"8700",bb5d57b6:"8773","2b07918c":"8798",edb10261:"8819",c60f9f65:"8833","06bea203":"8845","3b7e54b4":"8847","409b673b":"9021",e2615d27:"9117","509f2ea4":"9134",e3f02ea0:"9379",d2c975d1:"9449","5ee690fc":"9484","1be78505":"9514","139f0dd3":"9517","14eb3368":"9817","0e89a207":"9855",f3b2d393:"9865","45ce19ba":"9887","7e516c75":"9922",df203c0f:"9924"}[e]||e,t.p+t.u(e)},(()=>{var e={1303:0,532:0};t.f.j=(a,f)=>{var d=t.o(e,a)?e[a]:void 0;if(0!==d)if(d)f.push(d[2]);else if(/^(1303|532)$/.test(a))e[a]=0;else{var c=new Promise(((f,c)=>d=e[a]=[f,c]));f.push(d[2]=c);var b=t.p+t.u(a),r=new Error;t.l(b,(f=>{if(t.o(e,a)&&(0!==(d=e[a])&&(e[a]=void 0),d)){var c=f&&("load"===f.type?"missing":f.type),b=f&&f.target&&f.target.src;r.message="Loading chunk "+a+" failed.\n("+c+": "+b+")",r.name="ChunkLoadError",r.type=c,r.request=b,d[1](r)}}),"chunk-"+a,a)}},t.O.j=a=>0===e[a];var a=(a,f)=>{var d,c,b=f[0],r=f[1],o=f[2],n=0;if(b.some((a=>0!==e[a]))){for(d in r)t.o(r,d)&&(t.m[d]=r[d]);if(o)var i=o(t)}for(a&&a(f);n