{"id":711,"date":"2020-04-13T19:18:22","date_gmt":"2020-04-13T19:18:22","guid":{"rendered":"http:\/\/puneetkhosla.com\/?p=711"},"modified":"2021-04-14T05:15:34","modified_gmt":"2021-04-14T05:15:34","slug":"create-a-dataset-salesforce-object-using-dataset-builder-and-dataflow","status":"publish","type":"post","link":"https:\/\/puneetkhosla.com\/?p=711","title":{"rendered":"Create a Dataset (Salesforce Object) using Dataset Builder and Dataflow"},"content":{"rendered":"\n<p>In my previous blog, I talked about creating a dataset from a csv file (<a rel=\"noreferrer noopener\" href=\"https:\/\/puneetkhosla.com\/?p=668\" target=\"_blank\">Click Here<\/a>). Now we would be talking about another approach on creating a dataset using dataset builder and dataflow. <\/p>\n\n\n\n<p>A big question &#8211; what is a dataflow ?<\/p>\n\n\n\n<p>A Dataflow in simple terms is just a way in which you can start with a particular set of data and then change it, build on it, combine with other data,  derive new columns based on some values in other columns, etc. to come up with your final data. So simply it a set of steps or instructions to be performed on a data to use it for further analytics and insights.<\/p>\n\n\n\n<p>Here we would be creating a dataset for Accounts and its owner information (Full Name and Photo)<\/p>\n\n\n\n<p><strong><span class=\"has-inline-color has-bright-blue-color\">STEP 1 : Click on Create Button &amp; Select Dataset<\/span><\/strong><\/p>\n\n\n\n<p>There are multiple ways to start creating a dataset. After entering Analytics Studio, you can either click on the &#8220;<strong><span class=\"has-inline-color has-bright-blue-color\">Create<\/span><\/strong>&#8221; button (on the top right corner) or you can go into your Einstein Analytics app and click the button, etc. Select Dataset.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized is-style-default img-border\"><img fetchpriority=\"high\" decoding=\"async\" src=\"http:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADataset-1024x193.png\" alt=\"Create a dataset\" class=\"wp-image-671\" width=\"529\" height=\"99\" srcset=\"https:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADataset-1024x193.png 1024w, https:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADataset-300x56.png 300w, https:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADataset-768x144.png 768w, https:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADataset-1536x289.png 1536w, https:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADataset-1200x226.png 1200w, https:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADataset.png 1563w\" sizes=\"(max-width: 529px) 100vw, 529px\" \/><\/figure>\n\n\n\n<p><strong><span class=\"has-inline-color has-bright-blue-color\">STEP 2 : Choose Data Source<\/span><\/strong><\/p>\n\n\n\n<p>Choose <span class=\"has-inline-color has-bright-blue-color\">Salesforce Data<\/span> as the datasource.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized is-style-default img-border\"><img decoding=\"async\" src=\"http:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADataset2.png\" alt=\"Data Source\" class=\"wp-image-675\" width=\"390\" height=\"304\" srcset=\"https:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADataset2.png 961w, https:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADataset2-300x234.png 300w, https:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADataset2-768x599.png 768w\" sizes=\"(max-width: 390px) 100vw, 390px\" \/><\/figure>\n\n\n\n<p><strong>STEP 3 : Add New Dataset Details<\/strong><\/p>\n\n\n\n<p>Add the new dataset name and whether you want to create a new dataflow or add it to an existing dataflow. Lets name the dataset as Accounts and choose a new dataflow &#8211; Account with Owner Details.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized is-style-default img-border\"><img decoding=\"async\" src=\"https:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADatasetWithDataflow1.png\" alt=\"New Dataset\" class=\"wp-image-715\" width=\"509\" height=\"384\" srcset=\"https:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADatasetWithDataflow1.png 951w, https:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADatasetWithDataflow1-300x226.png 300w, https:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADatasetWithDataflow1-768x580.png 768w\" sizes=\"(max-width: 509px) 100vw, 509px\" \/><\/figure>\n\n\n\n<p><strong>STEP 4 : Select the objects and Fields<\/strong><\/p>\n\n\n\n<p>Select the root or base object to start building the dataflow.  This is the object from which we will start building our dataflow. Ideally you should choose the base or the main object from which you want to create further associations.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized is-style-default img-border\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADatasetWithDataflow2.png\" alt=\"Choose Base Object\" class=\"wp-image-716\" width=\"417\" height=\"441\" srcset=\"https:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADatasetWithDataflow2.png 583w, https:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADatasetWithDataflow2-283x300.png 283w\" sizes=\"(max-width: 417px) 100vw, 417px\" \/><\/figure>\n\n\n\n<p>We will choose Account as the Base object.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized is-style-default img-border\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADatasetWithDataflow3.png\" alt=\"Base Object\" class=\"wp-image-717\" width=\"417\" height=\"149\" srcset=\"https:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADatasetWithDataflow3.png 475w, https:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADatasetWithDataflow3-300x107.png 300w\" sizes=\"(max-width: 417px) 100vw, 417px\" \/><\/figure>\n\n\n\n<p>Click on the plus symbol which will allow you to add fields for the Account object that you want to be included in your dataset. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized is-style-default img-border\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADatasetWithDataflow4.png\" alt=\"Account Fields\" class=\"wp-image-718\" width=\"335\" height=\"460\" srcset=\"https:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADatasetWithDataflow4.png 449w, https:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADatasetWithDataflow4-218x300.png 218w\" sizes=\"(max-width: 335px) 100vw, 335px\" \/><\/figure>\n\n\n\n<p>We wanted Account with Owner Details. Click on the Relationship Tab to Associate with Owner fields.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized is-style-default img-border\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADatasetWithDataflow4_1.png\" alt=\"Relationship Tab\" class=\"wp-image-719\" width=\"448\" height=\"267\" srcset=\"https:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADatasetWithDataflow4_1.png 814w, https:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADatasetWithDataflow4_1-300x179.png 300w, https:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADatasetWithDataflow4_1-768x458.png 768w\" sizes=\"(max-width: 448px) 100vw, 448px\" \/><\/figure>\n\n\n\n<p>Click on the User (Owner ID) node (plus symbol) and select the fields. In case the list is long, you can even search for the field. We will search for Full Name field. When finished, click on the Next Button.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized is-style-default img-border\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADatasetWithDataflow4_2.png\" alt=\"Choose Fields\" class=\"wp-image-721\" width=\"375\" height=\"546\" srcset=\"https:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADatasetWithDataflow4_2.png 541w, https:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADatasetWithDataflow4_2-206x300.png 206w\" sizes=\"(max-width: 375px) 100vw, 375px\" \/><\/figure>\n\n\n\n<p><strong><span class=\"has-inline-color has-bright-blue-color\">STEP 5 : Select the App<\/span><\/strong><\/p>\n\n\n\n<p>Select the App where you want to save your dataset.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized is-style-default img-border\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADatasetWithDataflow5.png\" alt=\"Select App\" class=\"wp-image-722\" width=\"355\" height=\"306\" srcset=\"https:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADatasetWithDataflow5.png 532w, https:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADatasetWithDataflow5-300x259.png 300w\" sizes=\"(max-width: 355px) 100vw, 355px\" \/><\/figure>\n\n\n\n<p>Einstein now does the magic of creating the dataflow and also running the dataflow in the background. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized is-style-default img-border\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADatasetWithDataflow6.png\" alt=\"Dataset Creation\" class=\"wp-image-723\" width=\"501\" height=\"279\" srcset=\"https:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADatasetWithDataflow6.png 773w, https:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADatasetWithDataflow6-300x168.png 300w, https:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADatasetWithDataflow6-768x429.png 768w\" sizes=\"(max-width: 501px) 100vw, 501px\" \/><\/figure>\n\n\n\n<p>You can now see the dataflow that has been created. In case you choose not to perform the above steps, you can directly create the dataflow as well. I will cover the dataflow in the upcoming blogs. <\/p>\n\n\n\n<p>However to give an idea, the dataflow created the following :-<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>2 SFDCDigest Node &#8211; These nodes represent that data is coming from Salesforce Objects<\/li><li>1 Augment Node &#8211; This node is to join the Account and the user object i.e. based on the User Id in the Owner field, join the Account data with other user information.<\/li><li>1 SFDCRegister &#8211; This is the node for creating the dataset.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large is-resized is-style-default img-border\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADatasetWithDataflow7.png\" alt=\"Dataflow\" class=\"wp-image-724\" width=\"553\" height=\"223\" srcset=\"https:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADatasetWithDataflow7.png 934w, https:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADatasetWithDataflow7-300x121.png 300w, https:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADatasetWithDataflow7-768x311.png 768w\" sizes=\"(max-width: 553px) 100vw, 553px\" \/><\/figure>\n\n\n\n<p>You can check the &#8220;<span class=\"has-inline-color has-bright-blue-color\">Monitor<\/span>&#8221; tab and see your dataflow running with stats of every step.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized is-style-default img-border\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADatasetWithDataflow8-1024x378.png\" alt=\"Dataflow Monitor\" class=\"wp-image-725\" width=\"566\" height=\"209\" srcset=\"https:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADatasetWithDataflow8-1024x378.png 1024w, https:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADatasetWithDataflow8-300x111.png 300w, https:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADatasetWithDataflow8-768x283.png 768w, https:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADatasetWithDataflow8-1536x567.png 1536w, https:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADatasetWithDataflow8-1200x443.png 1200w, https:\/\/puneetkhosla.com\/wp-content\/uploads\/2020\/04\/CreateADatasetWithDataflow8.png 1677w\" sizes=\"(max-width: 566px) 100vw, 566px\" \/><\/figure>\n\n\n\n<p>You can edit the dataflow directly, if required. I will cover that in the upcoming blogs.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In my previous blog, I talked about creating a dataset from a csv file (Click Here). Now we would be talking about another approach on creating a dataset using dataset builder and dataflow. A big question &#8211; what is a dataflow ? A Dataflow in simple terms is just a way in which you can [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[7,21],"tags":[11,12,13,16,22],"class_list":["post-711","post","type-post","status-publish","format-standard","hentry","category-einstein","category-tableau-crm","tag-einstein","tag-einstein-analytics","tag-einstein-discovery","tag-salesforce","tag-tableau-crm"],"_links":{"self":[{"href":"https:\/\/puneetkhosla.com\/index.php?rest_route=\/wp\/v2\/posts\/711","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/puneetkhosla.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/puneetkhosla.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/puneetkhosla.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/puneetkhosla.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=711"}],"version-history":[{"count":4,"href":"https:\/\/puneetkhosla.com\/index.php?rest_route=\/wp\/v2\/posts\/711\/revisions"}],"predecessor-version":[{"id":726,"href":"https:\/\/puneetkhosla.com\/index.php?rest_route=\/wp\/v2\/posts\/711\/revisions\/726"}],"wp:attachment":[{"href":"https:\/\/puneetkhosla.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=711"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/puneetkhosla.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=711"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/puneetkhosla.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=711"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}