Co-Author

Hitesh Patel, Senior Principal Product Manager, Analytics Apps for CX

Validation

Content validated on 04/14/2023 with

  • ADW Version Oracle Database 19c Enterprise Edition Release – Production Version 19.11.0.0.0

  • Oracle Cloud Application 22C (11.13.22.07.0)

  • Fusion Analytics Warehouse Application Version  23.R1

  • Salesforce Developer Edition

 Background

Oracle Fusion Analytics provides analytics for Oracle Cloud applications, powered by Autonomous Data Warehouse and Oracle Analytics. More specifically:

  • Fusion ERP Analytics provides accounting data sourced from ERP Cloud in a warehouse designed to support broad set of analytics use cases. 
  • Fusion HCM Analytics provides comprehensive workforce, turnover data sourced from Fusion HCM Cloud.
  • Fusion SCM Analytics give customers the ability to gain visibility into Supply Chain performance, correlate Supply Chain processes with business goals and detect, understand and predict Supply Chain issues.

Making the right business decisions is intrinsinclty tied to the system of records data accuracy of a company. In many specific use cases, Fusion Analytics data can be complemented with additional data from external source such as On Premise, Legacy applications, Non Fusion SaaS application, OCI source, Third party cloud applications, and so on…

To support these data enrichment and consilidation requirements, Fusion Analytics is introducing a new Connectors to leverage the Fusion Analytics Oracle data pipeline infrastructure to extract data (full and incremental) from these external sources following a defined schedule, potentially reducing custom data extraction code, infrastructure and platform costs.

We have cover in this previous blog how to use Oracle Analytics Cloud (OAC) to extract data from Salesforce to Autonomous Data Warehouse (ADW)  and in this one how to use Oracle Data Integrator (ODI) to achieve the same goal.

This blog describes how to utilize Fusion Analytics (FAW) Data Augmentation feature to replicate transaction data from Salesforce Cloud Applications into ADW to extend the Data Layer of FAW. This blog will also covers the high level steps to extend the semantic model to ultimately allow customers to answer business questions and gaining business insight such as :

  • Opportunity conversion: As open sales opportunities move through the stages of sales, a sales executive wants to track the progress so that he/she can guide their team members
  • Bookings and Revenue by Customers and/or Channels or Regions
  • Forecast accuracy : As a sales/business executive, compute and manage open opportunities to bookings
  • Average resolution time : Compute and manage/improve resolution of customer issues 
  • Customer retention: An executive in customer support or customer experience organization needs to track and manage customer satisfaction leading to customer retention, in many industries such as retail, banking, financial services, etc.
  • Lead generation : Gaining the interest of potential customers in order to increase future sales

For more details on Salesforce Data Augmentation and Semantic Model Extensions, please refer to my previous blog here.

This blog also share the artefacts that Fusion Analytics and Salesforce users can use as a starting point to analyze Salesforce data, that is :

  • Data Augmentation Bundles
  • SQL Views (to allow snowflake modeling)
  • Semantic Model Extensions Bundles
  • OAC Visualization Bundles

To conclude, this blog will walk through how to deploy these artefacts into a target environment.

Suggested Prerequisite Reading Material:

* Data Augmentation with FAW 

* Data Replication with OAC 

* FAW Semantic Model Customization

Overall prerequisites

* Have access to an Fusion Analytics Instance (OAC, ADW) with Administrative privileges

* Have access to a Salesforce Instance

* Have done the following Salesforce configuration

Enabled and Configured Currency

Enabled and Configured Territory Management and defined a Territory Model

Set up Campaign Influence

Enabled Quotes

Set up Invidiual – Leads relationship by exposing the Indiviual field on Lead page layouts  

* Have configured SQL level access to Fusion Analytics ADW, as described in Krithika and Gunaranjan blog post here.

* Have the Salesforce connector enabled for your Fusion Analytics tenant through Service Request with Oracle Support

 Architecture Overview

FAW Data Augmentation allows customers to leverage the FAW data pipeline to augment reports with datasets created :

  1. By adding a new dimension in the target instance,
  2. By adding a new fact in the target instance.

The diagram below details the architecture for the Connectors :

architeccture

Figure 1: FAW Data Augmentation flow with Salesforce Connectors

The high level configuration flow is as follow:

  • FAW Data Augmentation

    • Create the Salesforce connection

    • Create Dimensions and Fact Data Augmentation on Salesforce source tables

    • Choose Attributes for the Data Augmentation

    • Select dimensions to be mapped with Fact columns

    • Save and Schedule the data augmentation pipeline jobs

  • FAW Data Pipeline processes the data augmentation pipeline jobs, extract the data from Salesforce tables and load it into ADW, queryable via synonyms starting with DW_SAR_X

  • Augmented data can be then queried directly using OAC Data set or a SQL client like SQL developer, through the database synonym named after the table name give in the first step 

  • Semantic model can be extended by customizing an existing subject area or addition of a new subject area to allow reporting on augmented data extracted in ADW. This will require the creation of database objects (views and grants). We will cover the basics here to be able to build a visualization against the extracted Salesforce Data.

 Star Schemas

The Salesforce bundles are covering seven subject areas. This section describes the star schemas for each for these subject areas

Salesforce Opportunity

The Opportunity Subject Area contains the necessary facts and dimensions that will allow an analysis of opportunities in the current pipeline. 

By exposing key related objects, namely, Opportunity, Customer, Contact, Sales Resource (Employee) and Competitor, the subject area makes it possible to build reports for comprehensive analysis around these contexts. All key metrics, are exposed at a opportunity header level and a separate subject area will be exposed to analyze revenue line details. Win-loss analysis against competition is a key area of interest to sales executives and this subject area supports it with a focus on product performance.

The Business Questions it allows to answer are:

  • What is the Pipeline for the Current Quarter and how is the closed pipeline trend for the last three quarters?
  • What is the Pipeline by Sales stage?
  • What are the Opportunities in the same stage for more than a month and who is the owner of that Opportunity?
  • What are the most likely reasons the Opportunities are lost against our key competitors?
  • Who has won and lost the most number of Opportunities in the last 4 quarters?

Below star schema details the Opportunity fact

OpptySA

Figure 2: Opportunity Fact Star Schema

Salesforce Opportunity Revenue Line

The Opportunity Revenue Line Subject Area contains the necessary facts and dimensions that will allow an analysis of opportunities in the current pipeline. 

The Business Questions it allows to answer are:

  • What Products have the most number of Won Opportunities?
  • What is the Quantity of Products won in the last quarter vs Current quarter?
  • What Product revenue is increasing QoQ at the highest rate?

Below star schema details the Opportunity Revenue Line fact

OpptyRevenueLine

Figure 3: Opportunity Revenue Line Fact Star Schema

Salesforce Activity

The Activities in Salesforce are of two types : Events and Tasks.

Below star schema details the Event fact

ActivityEvent

Figure 4: Activity Event Fact Star Schema

 

Below star schema details the Task fact

 

ActivityTask

Figure 5: Activity Task Fact Star Schema

 

Salesforce Leads

Below star schema details the Leads fact

Leads

Figure 6: Leads Fact Star Schema

 

Salesforce Opportunity Activity

Below star schema details the Opportunity Event Fact: 

Opportunity Event

Figure 7: Opportunity Event Fact Star Schema

 

Below star schema details the Opportunity Task Fact: 

Opportunity Task

Figure 8: Opportunity Task Fact Star Schema

 

Salesforce Campaign Opportunity

Below star schema details the Campaign Opportunity fact

CampaignOppty

Figure 9: Campaign Opportunity Fact Star Schema

 

Salesforce Campaign Member

Below star schema details the Campaign Member fact

CampaignMember

Figure 10: Campaign Member Fact Star Schema

 

 Let’s watch the Video, download and deploy the bundles

The Youtube Video the Semantic model

Download the artefacts

Below are the download link to the Data Augmentation Bundle, the SQL Views, the Semantic Model Extensions and 

Deploy the artefacts

The artefact deployments steps are :

  1. Ensure the Salesforce REST connection is enabled in Fusion Analytics
  2. Ensure the Salesforce REST connection test is successfull
  3. Ensure Salesforce REST metadata are extracted
  4. Import the Data Augmentation, Semantic Model Extension and Content bundles and wait for deploying
  5. Deploy the Data Augmentation and choose “Import the data pipelines, but do not activate” option
  6. Activate each Data Augmentation one by one, once the Data Augmentation bundle is deployed
  7. Execute the SQL to create the views in the OAX_USER schema and grant proper access to views to OAX$OAC user
  8. Deploy the Semantic Model Extension bundle
  9. (publish the Salesforce branch)
  10. Deploy the Content Bundle and validate the Salesforce catalog folder is created

To deploy the artefact, watch the video below:

 Accessing an OAC Workbook to Gain Business Insight with Salesforce Data

Now that we have imported and deployed the bundles,  we can open Salesforce visualization in OAC. 

VM-922-SFDC-OAC-Viz.png

Figure 11: Salesforce visualization

This concludes the activities in the blog.

 Want to Learn More?

Click here to sign up to the RSS feed to receive notifications for when new A-team blogs are published.

 Summary

This blog described how to utilize Fusion Analytics (FAW) Data Augmentation Connector to replicate transactions data from Salesforce Cloud Applications into Autonomous Data Warehouse (ADW) to extend the Data Layer of FAW. This blog also detailed the steps to extend the semantic model to ultimate allow customers to answer business questions and gaining business insight such as :

  • Opportunity conversion: As open sales opportunities move through the stages of sales, a sales executive wants to track the progress so that he/she can guide their team members
  • Bookings and Revenue by Customers and/or Channels or Regions
  • Forecast accuracy : As a sales/business executive, compute and manage open opportunities to bookings
  • Average resolution time : Compute and manage/improve resolution of customer issues 
  • Customer retention: An executive in customer support or customer experience organization needs to track and manage customer satisfaction leading to customer retention, in many industries such as retail, banking, financial services, etc.
  • Lead generation : Gaining the interest of potential customers in order to increase future sales

This blog also shared the artefacts that Fusion Analytics and Salesforce users can use as a starting point to analyze Salesforce data, that is :

  • Data Augmentation Bundles
  • SQL Views (to allow snowflake modeling)
  • Semantic Model Extensions Bundles
  • OAC Visualization Bundles

To conclude, this blog walked through how to deploy these artefacts into a target environment.

Bookmark this post to stay up-to-date on changes made to this blog as our products evolve.