Tuesday, July 7, 2015

Salesforce Certification Changes

SalesforceU


You may have heard about new Salesforce certifications.  If you are curious about what it coming, I will break down the details.  In summary, new certifications are on the way in the Marketing and Developer areas.  Let’s start with the changes in the Developer area first.

Current Developer Certifications

When I first started working with Salesforce, I found the concept of a Developer somewhat confusing.  When working with other technologies, Java, Microsoft.Net, Oracle, etc., a Developer was always someone who programmed by writing code.  While this is true in the Salesforce world, there is also the ability to create something new without programming.  Other platforms do not have the concept of declarative development, so this is unique.  

Looking across other platforms, Administration universally refers to the process of running a system.  It does not refer to creating something new, as declarative development enables.  So declarative development would not fall under Administration. 

From the Salesforce perspective, it makes perfect sense to combine both declarative and programmatic development under the Developer umbrella.  Looking at the current certification tracks, becoming a Certified Developer exam covers the declarative aspect of the platform and does not include any programming. This certainly creates confusion for those outside the Salesforce world, and even some within.

While Advanced Developer does cover the programmatic aspects of the platform, it presents its own challenge.  First, Advanced Developer is not a widely held certification, yet is the only representation of programmatic development skills.  One of the hurdles to certification is the programming exam, which is only offered four times a year for up to 200 participants as the assignment is hand scored by multiple evaluators.  This leads to a significant backlog of candidates and multiple months of wait time. 

Compounding the problem, Salesforce has not even offered the programming assignment since December 2014. (Yes, I am keeping track as I passed the exam in early December and have been waiting ever since.)  All of these factors creates confusion in the marketplace around what is a Developer and the skills they posses. 

New Developer Certifications

With three new certifications, Salesforce is acting to remove all confusion.  First, Salesforce Certified App Builder bridges the gap between an Administrator and a programmer.  It covers designing, building and implementing new custom applications using the declarative aspects of the platform. 

Next, two programmatic certifications cover basic and advanced levels of programming skills.  Salesforce Certified Platform Developer I is meant to show ability to extend the platform through Apex and Visualforce.  Salesforce Certified Platform Developer II is all about going deep with the programming on the platform, including advanced topics.

More details on each can be found at on Salesforce’s site.  App Builder and Developer I are currently going through beta testing and should wrap up around July 10.  Unfortunately the beta program is full for these exams.  Certified Platform Developer II will have beta exams starting at the end of July.  It appears invitations are going to those who currently hold Advanced Developer Certification.  Hopefully, we will hear more details on general availability in August or Dreamforce ‘15 at the latest.

Marking Cloud Certifications

At the end of last year, Salesforce introduced Pardot Consultant certification.  While Pardot has since been moved under Sales Cloud, it still is all about Business to Business Marketing Automation.  Now Salesforce is expanding certifications to the Marketing Cloud.  Two new certification tracks have been announced within the Marketing Cloud, focused on users that build, manage and analyze either Emails or Social within the Marketing Cloud.  While there are overview details on the certification site, the study guides and recommend online trainings have yet to be announced.

Future Certifications Predictions (Safe Harbor)

If I look into my crystal ball, I don’t think this is the end of the new certifications from Salesforce.  Based on my Analytics Cloud Brown Belt Accreditation training in April, there were indications of a future certification in this area.  I would also not be surprised to see a user focused certification within Pardot, just like with the Marketing Cloud. 

Finally, the Certificated Technical Architect track has similar obstacles as the Advanced Developer.  A low number of certified individuals, long wait times for review boards and from what I have heard relatively low pass rates.  If we apply the changes from Advanced Developer to Platform Developer, a Technical Architect certification path with multiple levels and steps along the way would make sense and resonate with the market.

Personally, I look forward to putting my skills to the test with these new certifications once they are available and will be sure to share my test taking experiences.

Wednesday, June 24, 2015

Salesforce Analytics Cloud Explained

Salesforce made a splash at Dreamforce ‘14 with Wave and there has been a lot of excitement on topic since then. Couple frequent releases of new Analytics Cloud innovations with limited access to a developer environment means confusion still persists.

 

Analytics Cloud vs. Wave

A good place to start is the difference between Analytics Cloud and Wave. While many times, these terms have been used interchangeable, there are key differences. Wave is the platform while Analytics cloud is the product. A good analogy to draw is Sales Cloud and Service Cloud are products that run on the Salesforce 1 Platform. So let’s take a look at the features of each.

 

Wave

As the underlying technology platform, Wave is a schema free, non-relational database. Consisting of columnar based key-value pairs, Wave relies on search based technologies and inverted indexes to quickly deliver results. While that’s a lot of big data buzz words, what it means is Wave it not like your traditional data warehouse. It is built to handle large volumes of structured and unstructured data to quickly provide results based on search queries. If you would like to learn more, take a look at Redis, which a data structure server that will help you better understand Wave.

 

Analytics Cloud

As the flagship product on Wave, Salesforce Analytics Cloud is a mobile-first solution that allows data to be sourced from multiple locations, manipulated in real-time, and shared with other users. The key elements the Analytics Cloud delivers are the following:

  • Explore – allows everyone, not just data analysts, to find answers in data
  • Collaborate – one place for users to get and share answers on the business
  • Cloud – as a native cloud solution, it is up and running quickly, easily scales and one source of the truth
  • Mobile – all the answers you need in the palm of your hand

 

Learning More

To learn more about the Salesforce Analytics Cloud, check out the following resources. As part of a recent Lehigh Valley Salesforce Developer User Group, I explained the Salesforce Analytics Cloud, including a demonstration of the technologies. The presentation can be found on Slide Share while a recording  of the session is available on YouTube.

Monday, June 15, 2015

Setting Up Lightning Connect in Salesforce

Salesforce Lightning Connect
Now it's time for the fun part of trying to get Microsoft Dynamics AX 2012 data into Salesforce.  My previous post covered the details of setting up the OData Service In Dyanmics AX.  With an external, https URL to our Dynamics demo environment in hand, it only takes a couple of clicks, and no code, to setup the connection.

External Data Source

First an external data source needs to be setup in Salesforce.  This is done from Setup with the following steps.  If you would like to learn more on Lightning, check out the Lightning Webinar Series.
  • Go to Setup | Develop | External Data Sources and click New Data Source.
  • Provide a label and a name.  I used DynamicsAX for both values
  • From Type, select Lightning Connect: OData 2.0
    • Take note of the 2.0, as this is the minimum OData version that Lightning Connect supports
    • There may additional options, especially if in a Summer '15 or higher org, which introduced the ability to create Lightning Connect Custom Adapters
  • After selecting this option, additional Parameters are available
    • URL - the Dynamics OData Source in the form of https://<host>.<domain>:8101/DynamicsAx/Services/ODataQueryService/
    • A series of options, which the default values are okay
    • Format - our source is AtomPub
    • Special Compatibility - Default is appropriate
  • Authentication details for our source must be specified
    • Identity Type - Name Principal to specify a static username/password to Dynamics AX
    • Authentication Protocol - Password Authentication
      • Supply the Username and Password to use to connect
      • As we are providing credentials, our URL must be https
  • After Saving, there is an option to Validate and Sync
    • Salesforce has made quite a few improvements between Spring '15 and Summer '15 in this area. 
      • When testing in Spring '15, I had cases where no error messages were displayed or only generic messages.  
      • After the Summer upgrade, I saw more consistent messages with additional details to help troubleshoot.
    • Ensure you have a valid SSL certificate, or you will not be able to validate and sync
  • A list of OData tables is presented to sync.  In my case, I selected ListofUSStates.  This is a simple listing of the US States and Names used in Dynamics. 

External Objects

    Now, the selected External Objects can be modified.  In order to make the object more useful within Salesforce, a few properties can be adjusted.  A meaningful label, like US State and plural version can be specified.  I kept the other options at default values until I proved out the concept.

    Custom Tab

    The only task standing in the way of viewing the Dynamics AX data is creating a custom tab to view the list of records.  Go to Setup | Create | Tabs and click New.  From the Object tab, select US States, pick a Tab Style.  Select the Profiles to show the tab in as well as the app. Save the new tab and its time to see our data.

    Success…?

    Now navigate to the newly created tab.  Then, simply click Go next to the All view and voila.....wait a minute what is this error message?
    Here is another case where I received more detailed error messages with Summer ‘15.  Spring ‘15 simply told me there was an error and to contact my admin.  The DataServiceProtocolVersion of v1 does not look promising, time for some more research.

    We Have a Problem

    First stop, was OData.org to check out the spec.  DataServiceVersion is defined in the Service Metadata Document and indicates the version of OData used.  So now to inspect the metadata for our Dynamics AX source.  This can be done by adding /$metadata to the end of our base URL.
    metadata
    Hmm…DataServiceVersion = “1.0”, which does not look good.  Let’s try a few of the OData URI Conventions that should be supported like $select to specify columns to return. This can be done by adding ?$select=<column> name to the end of the ListOfUSState URL - https://<host>.<domain>:8101/DynamicsAx/Services/ODataQueryService/ListofUSStates?$select=LogisticsAddressState_1_Name.  Unfortunately, we run into the same error as before.
    error2

    Conclusion

    At this point, I am reasonably certain Dynamics AX 2012 is OData version 1.0 and Lightning Connect requires 2.0.  Just to leave no stone uncovered, time to call in the big guns and verify with Salesforce Product Management.  After taking a look at my setup, they reached the same conclusion that Dynamics AX 2012’s OData 1.0 version was not supported.

    What I did learn from the Product Management team is that Summer ‘15 loosened some of the restrictions on OData 1.0 implementations.  Rather than immediately excluding the service based on the version, Lightning Connect will attempt to use the service. Only if the service does not support the necessary conventions, like $select, will it fail.  This can be useful in cases where DataServiceVersion is not specified, as the OData spec indicates that version 1.0 should be assumed.

    While I did not end up with Dynamics data available in Salesforce via Lightning Connect, I did learn a lot along the way.  Once you have an OData source available, setup in Salesforce is fast and easy.  I am looking forward to the next attempt to use Lightning Connect.  Besides, there are a lot of other ways to get Dynamics data into Salesforce.

    Monday, June 8, 2015

    Dynamics AX Setup for OData Integration with Salesforce

    Microsoft Dynamics AX
    In an attempt to access Microsoft Dynamics AX 2012 data in Salesforce through Lightning Connect, much of my effort went towards getting the OData service in AX setup correctly.  Here is an overview of my steps to get the environment up and running.

    Environment Setup

    Obtaining a Dynamic AX demo environment was easy.  With Microsoft Lifecycle Services, it was just a few steps to be up and running.
    1. Log into Life Cycle Services
    2. Create a project
    3. Connect to an Azure subscription (I used a 30 day free trial)
    4. Deploy an Dynamics AX demo environment on Azure
    5. Log in via Remote Desktop and open the Dynamic AX Client
    The AX demo environment is setup with a demo organization, including out of the box setting, data, etc.and is ready to go.

    DYNAMICS AX and ODATA Service

    With Dyanmics AX, OData service is available out of the box with access to the queries setup in AX.  It is accessible via http://<host>.<domain>:8101/.   This provides a list of the available queries that can be called, by adding the name to the end of the URL.  For example, get a list of all US states via https://<host>.<domain>:8101/DynamicsAX/Services/ODataQueryService/ListofUSStates.

    Dynamics AX OData Query Service Tables


    You are required to authenticate to the service first to ensure you are authorized to access the specified resources.  Now the astute reader may notice the issue we will have with Salesforce.  As we are authenticating to the AX OData Service, we must specify a secure URL when setting up our External Data Source within Salesforce

    ENABLING HTTPS for Dynamics AX Odata

    As you will see the actual changes needed to enable HTTPS are not that extensive.  However, I could not find a clear set of instructions, so good old fashion research and trial and error lead to to the following setup tasks.

    First some background, the AX OData Services is a Windows Communication Foundation (WCF) app that runs as a service - the Ax32Serv.exe.  While some WCF apps run inside of  Internet Information Services (IIS), this one is stand alone.  As such, the setup is not done inside of IIS.

    SSL Certificate

    A SSL certificate is needed in order to communicate on HTTPS.  If you have a certificate that matches the final domain you will deploy the OData Service to, use it now.  If not, you can create a self-signed certificate.  There instructions are for IIS7 and a quick web search will bring up other options.  When attempting to configure Lightning Connect in Salesforce, a self-signed certificate will not be trusted and the connection will not work, but it gets us through the first step.

    Port Binding

    Once you have your SSL cert, we need to configure port 8101 to use it.  Full details on how to do this can be found in this article - Configure a Port with an SSL Certificate.  The summary is:

    • Check the port configuration from command line 
      • netsh http show sslcert ipport=0.0.0.0:8101
      • No results indicates nothing is bound 
    • Get the SSL certificate's thumbprint from MMC
    • Bind the SSL cert to the port from command line
      • netsh http add sslcert ipport=0.0.0.0:8101 certhash=<tumbprint> appid={00112233-4455-6677-8899-AABBCCDDEEFF}
    • Use the check command again to verify the bound cert

    Setup URL Reservation

    A reservation is needed to allow the WCF service to listen on the assigned portion of the URL.  Full details can be found in this article - Configuring HTTP and HTTPS.  The summary is:
    • Check the existing reservation.  There is likely a HTTP reservation already in place
      • netsh http show urlacl url=https://+:8101/DynamicsAx/Services/
      • Be sure to include the trailing /
      • No results means there is not a reservations.  
    • Delete any existing reservation
      • netsh http delete urlacl url=https://+:8101/DynamicsAx/Services/
    • Add a new reservation with HTTPS
      • netsh http add urlacl url=https://+:8101/DynamicsAx/Services/ user=CONTOSO\admin
        • Be sure to change the user to the user that runs the service
    • Use the check command to verify the reservation

    Ax32Serv.exe Config File Changes

    Now it is time to update the config file for the AX Service, which handles the WCF OData service.  The Ax32Serv.exe.config file can be found in C:\Program Files\Microsoft Dynamics AX\60\Server\MicrosoftDynamicsAX\bin (change to your install drive).  You may want to create a backup before you change.  The Service Endpoint, Service Behavior and Binding Method all need to be changed.

    Service Endpoint
    • Find the <services> section and look for the service name="Microsoft.Dynamics.AX.Framework.Services.ODataQueryService.ODataQueryService"
    • Update the address of the endpoint to be https instead of http
    Service Behavior
    • The service definition references a behaviorConfiguration="ODataQueryServiceBehavior"
    • Locate this behavior name in the <behaviors> section
    • Change httpGetEnabled to httpsGetEnabled
    • Change httpGetURL to httpsGetURL and modify the address to be https instead of http
    Binding Method
    • The service definition references a binding="webHttpBinding" and binding configuration="ODataQueryServiceBinding"
    • Location this binding in the <bindings> section
    • Change the mode in <security> from "TransportCredenialOnly" to "Transport"
    • Change the clientCredentialType from "Windows" to "Basic"
    • I removed the proxyCredentialType="Windows" attribute as well
    My updated config file:

    Updated Config File with OData on HTTPS


    Save your updated config file and restart the Microsoft Dynamics AX Object Server 6.3 service from Services in MMC.

    Firewall and Azure Endpoint Management 

    Although I did not run into an restrictions with Windows Firewall in my Dynamics AX demo environment, keep in mind that access to port 8101 will be needed for this solution to work.  As Dynamics AX is deployed to a virtual machine within Azure, you need to setup an endpoint for the VM to communicate with the rest of the world.  You can review all the details of Setting Up Endpoints for a Virtual Machine.  Essentially, you need to go to Virtual Machines in Azure Management Portal, click Endpoints, Add a new endpoint, and link a public port of 8101 to the private port of 8101 with the TCP protocol.

    Verifying Locally

    You can now browse locally to the OData service on HTTPS - https://localhost:8101/DynamicsAx/Services/ODataQueryService/  You will likely receive a certificate error if using a self-signed cert and be prompted for a login.  You will see a list of "tables" that you can then query for results.  

    You can also verify by pulling the data into Excel on your own machine.  You will need to use the URL from Azure - 
    https://<instance>.cloudapp.net:8101/DynamicsAx/Services/ODataQueryService/ Again, you will need to click through the certificate error and supply credentials.  You can also add the self-signed certificate to your local trusted certificate authority certificate store.

    Open a new Excel workbook, go to Data -> From Other Sources -> From OData Data Feed.  Supply the URL, credentials and click next.  Pick your table, I used ListofUSStates to keep it simple.  Finish to save the data source, select a location in the sheet and your Dynamics AX data is now in Excel.  Here is an example list of states from Dynamics pulled in Excel.

    Microsoft Dynamic AX Data in Excel through OData Query

    Lightning Connect Preparation

    In order to setup the OData Connection in Salesforce, we need to have a trusted certificate.  As we supply credentials to connect to Dynamics, the URL must be HTTPS, with a valid cert.  Since we do not own *.cloudapp.net we cannot purchase a certificate for it.  Instead, we must setup a custom domain with Azure Cloud Services and secure an application in Azure Cloud Services. There are two knowledge base entries with the details of each of these steps - Associating a custom domain and securing communication with Microsoft Azure.  Use a custom domain that you own and have a valid SSL certificate for.

    Now with this final, external URL and valid SSL certificate, we are ready to try and connect from Salesforce, which I will discuss in another post.  To add a little foreshadowing, things did not go as planned.

    Thursday, May 14, 2015

    Trailhead: New Modules and Guided Learning

    New options for learning Salesforce emerge all the time.  As an update to my earlier article on How to Learn Salesforce, Trailhead has been recently updated with new modules.  There is now a set of modules covering the new Lightning technologies – Connect, App Builder, Components and Process Builder.

    These are a great set of modules if you want to get your hands dirty with guided practice.  I especially liked the Lightning Connect module.  The idea of being able to connect to external sources with OData is intriguing.  However, from a practice standpoint without an OData source, it is hard to try it out.  This module solves that issue by giving you a source to connect with.  The best part is once you finish the exercises, you can experiment on your own.

    Another new module, is Reports and Dashboards.  I have always had an affinity for reporting and analytics, as it is where I started my professional career.  One of the challenges with trying to learn reporting, is that of context.  You can learn the mechanics of a tool, but without business requirements it lacks substance.  The Reports and Dashboard module helps provide background, making the learning more meaningful.

    Perhaps the most exciting development is guided learning paths to blaze your own trail.  When Trailhead was just a few modules, it was easy to pick and choose what you want.  Now with more content, finding what you are looking for can be more difficult.  If you are a new admin, sifting through the more advanced developer options can be a challenge.  Now there’s no worries, as Guided Paths exists for the following:

    With each track you get an overview of the course time remaining and the points you have earned.  Personally, I have made it through most content with a couple of modules left in the Intermediate Developer track.  I am also excited about what may come.  Looking and the track naming and interjecting a little bit of speculation, I am looking forward to the advanced topics for Admins and Developers.  What have you enjoyed most about Trailhead?

    Sunday, May 10, 2015

    Loading Analytics Cloud Directly from Excel

    Since my previous post on Combining Salesforce and External Data, it is now even easier to load the example sales data.  With the release of Salesforce Wave Connector for Excel, no longer do you need to export data to a comma separated value (csv) file first.  Let’s take a look at using the connector to directly populate Salesforce Analytics Cloud from our Excel file.

    Salesforce Wave Connector foe Excel Installation

    First, you want to add the Salesforce Wave Connector for Excel from the Office store, which is a free install.  Alternatively, you can install from directly within Excel.  Using Excel 2013, my steps were the following:

    • Go to the Insert tab
    • Click Apps for Office, See All, then Featured Apps
    • Search for Wave Connector, Select the result and click Trust It
    • A side-bar opens, and you supply your Microsoft account details

    With the Wave Connector installed, it’s time to specify the Salesforce credentials to your Analytics Cloud environment.  You must also grant permission to the Wave Connector, like any OAuth app.  You can check out the help page if you need additional details on installing the connector.

    image

    Uploading Data from Excel

    Now we need to specify the Excel data to load.  Simply select a range of columns and rows and provide a name to use in Analytics Cloud for your dataset. You can also review the number of Columns and Rows (32,767 is the row limit per import) as well as preview the Column Names and Data types. 

    If you want to change a data type, look for a column that is hyperlinked.  Clicking on it will cycle through the supported data types (text and date for dimensions and numeric for measures)

    image

    Then simply click submit data and the magic happens.  The upload progress will be reported and a summary of columns and rows displayed.  You can then jump to Analytics cloud or Import Another Dataset.

    image

    Success

    Head over to your Analytics Cloud environment and look for your new dataset.  You may have to refresh the page if it takes a few minutes for the import to complete.  Our new SalesDataGenerator dataset is now ready to be analyzed through lenses and dashboards.

    image

    Additional Notes

    • If you need to change Analytics Cloud environment, use the drop down next to your login in the Wave Connector for Excel to Log Out and supply new credentials
    • Administrators, take note of additional steps if you are using Office 365, outlined in the help files
    • Use the ? next to Get Started in the Wave Connector for Excel for additional details and troubleshooting tips.  Excel in Office 365 users need to remember to Bind Current Selection when uploading data
    • Remember you are limited to 20 datasets per day from external sources, and each upload from the Wave Connector for Excel counts towards this limit

    Sunday, May 3, 2015

    How to Combine Salesforce and External Data in Analytics Cloud

    It is easy to build a dataset from Salesforce data in the Analytic Cloud. It is also rather easy to create a data set from an external file, as long as you don’t have to change the metadata file. How to combine two sets of data together in the Analytics Cloud is less obvious. With a little bit of dataflow manipulation, you can create a new, composite dataset of both sources.  Here is a guide to help you through the process.

    External Data

    First, you want to load your external data from a CSV (comma-separated value) file by creating a new dataset. I have created a sample Sales Data file that contains sales by account broken down by product and time period. I have also included my Sales Data.json metadata file for reference. 

    In this case, I did not have to make any changes from the system generated mappings. It is always a good idea to check your date format and values, as this is a common source of error. Now select Create Dataset and your Sales Data is in the Analytics Cloud.

    You can then start exploring the data by creating Lenses and Dashboards. What if you want to see this data linked with your Account details from Salesforce in order to analyze by state or account type?

     

    Salesforce Data

    Loading Salesforce data is a snap using the Dataset Builder user interface. In this example, I am only interested in pulling Account information, to keep it simple. I am going to add just the Account object and a select fields to my dataset (Account ID, Account Name, Account Type, Industry and Region). 

    Next, select Create Dataset, provide a Dataset Name and use Create to save. This will add the associate JSON entries to the dataflow for this dataset. The data will not be loaded until the next schedule run of the dataflow, currently set for once a day, or a manual run. Don’t start the dataflow yet, as we are going to have some fun first.

     

    Dataflow JSON

    We have avoided JSON manipulation so far, that that is about to change. You cannot combine external data with Salesforce data in the UI, but we can use previously loaded datasets in the dataflow. Start by downloading the dataflow json definition (SalesEdgeEltWorkflow.json) and open it in your preferred editor. I use JSON Editor, but would be willing to switch if you have suggestions on a better tool.

    Here is my dataflow JSON that shows the Account load.
      "101_Load_Account": {
        "action": "sfdcDigest",
        "parameters": {
          "object": "Account",
          "fields": [
            {
              "name": "Id"
            },
            {
              "name": "Name"
            },
            {
              "name": "Type"
            },
            {
              "name": "Industry"
            },
            {
              "name": "Region__c"
            }
          ]
        }
      },
      "102_Register_Account": {
        "action": "sfdcRegister",
        "parameters": {
          "source": "101_Load_Account",
          "alias": "Account",
          "name": "Account"
        }
      }

    For simplicity, I have removed other flows for this example.  By default, the workflow steps are labeled with numbers.  I have added additional text to the name to help distinguish. Your dataflow JSON may look different, what is important is to find the Account load from Salesforce.

    This will be a sfdcDigest, with an Object of Account and the fields we select.  My is named 101_Load_Account.  sfdcDigest will pull the data from Salesforce.  Next, find the step with sfdcRegister action that takes has the same source name as the Account load.  Mine is named 102_Register_Account, which makes the dataset accessible in the Analytics Cloud based on the name supplied.

    Now, we are going to add a couple of additional steps. First, we need to add an edgemart transformation. This allows us to load a previously created dataset into the dataflow.
      "200_Sales_Data": {
        "action": "edgemart",
        "parameters": {
          "alias": "Sales_Data"
        }
      }

    If you don’t recall the alias name of your dataset, you can always use the lens.apexp page in your org for reference - https://<pod>.salesforce.com/analytics/wave/web/lens.apexp. My step is 200_Sales_Data and my alias was Sales_Data.  Now, the Sales Data file we loaded earlier is available within our data flow.

    With the external data available, we can use an augment transformation to combine it with the account data. This is my step 201_Combine_Sales_Account with an augment action.  We are going to make the Sales Data our left object and Account the right, specifying the join condition via left key (Account from the Sales file) and right key (Name from the Account file). 

    All of the columns from the Sales Data data set are automatically included, and we need to specify the columns to include from the right (Account data set) as well as specify the the relationship prefix name to use, Sales in this case.

      "201_Combine_Sales_Account": {
        "action": "augment",
        "parameters": {
          "relationship": "Sales",
          "left_key": [
            "Account"
          ],
          "right_key": [
            "Name"
          ],
          "left": "200_Sales_Data",
          "right": "101_Load_Account",
          "right_select": [
            "Id",
            "Name",
            "Type",
            "Industry",
            "Region__c"
          ]
        }
      },
      "202_Register_Account_Sales_Dataset": {
        "action": "sfdcRegister",
        "parameters": {
          "source": "201_Combine_Sales_Account",
          "alias": "SalesWithAccounts",
          "name": "Sales With Accounts"
        }
      }

    Save the dataflow json file and go back to Data Monitor.  Before you upload, you may want to save a backup of the previous dataflow in case you want to revert to your original dataflow.  Then, Upload the dataflow json file and start the data flow. Once the dataflow finishes without errors, you have a brand new dataset of external and Salesforce Data.

     


    Final Touches


    With our new dataset, we can put together lenses and dashboards of sales activity, over time by various account attributes such as account type, key status, etc.

    image

    With the ability to load edgemarts into dataflows, we are not limited to combining Salesforce and external data. We could also load two sets of external data, load both into the dataflow and combine them into one final dataset. A very powerful feature of Analytics Cloud.

     


    External Data Generation Notes


    The Account Names are specific to my environment and may not match yours. I created a simple Sales Data Generator Excel Template that will generate random, sample data. Simply replace the Account Name on the Account tab. If you want to match on a different key to Salesforce, replace the values in Account Name with the desired data. Adding additional columns to the right of Account Name is fine.

    The Dynamic tab uses a random number between one and the number of rows with a Row ID to find an Account. You can add more or fewer Accounts, just be sure to have Row ID values for valid rows. The same approach is used for Product.
    The period is generated as a random date between a Start and End date specified on the Control Tab. To change the date range, simply enter the desired start and end date. Similarly, Price is selected between the Low and High Price on the control tab. Change the Control values for a different price range.

    Finally, as the Dynamic tab changes on each change, you will want to create a static copy of the data for repeatability. Copy the columns from Dynamic and then head to the Sales tab. Perform a Paste Special of Values with Number Formatting. Now you can save the tab as Sales_Data.CSV and you are ready to go with your own custom data.