<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Bharadwaj Tanikella on Medium]]></title>
        <description><![CDATA[Stories by Bharadwaj Tanikella on Medium]]></description>
        <link>https://medium.com/@bharadwaj-tanikella?source=rss-b6bda83e9b86------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*q_QiningWCOhiEN6L9YsJQ.jpeg</url>
            <title>Stories by Bharadwaj Tanikella on Medium</title>
            <link>https://medium.com/@bharadwaj-tanikella?source=rss-b6bda83e9b86------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 07:13:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bharadwaj-tanikella/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Introducing Einstein Discovery for Reports]]></title>
            <link>https://bharadwaj-tanikella.medium.com/introducing-einstein-discovery-for-reports-c601c8267d9b?source=rss-b6bda83e9b86------2</link>
            <guid isPermaLink="false">https://medium.com/p/c601c8267d9b</guid>
            <category><![CDATA[salesforce-einstein]]></category>
            <category><![CDATA[salesforce-reports]]></category>
            <category><![CDATA[tableau]]></category>
            <category><![CDATA[einstein-discovery]]></category>
            <category><![CDATA[salesforce]]></category>
            <dc:creator><![CDATA[Bharadwaj Tanikella]]></dc:creator>
            <pubDate>Fri, 04 Jun 2021 18:09:18 GMT</pubDate>
            <atom:updated>2021-06-04T18:09:18.859Z</atom:updated>
            <content:encoded><![CDATA[<p><em>What are the key drivers of my business goals? How might these change over time? How can I get the most out of Salesforce Reports?</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tGEGbvIp2vzb1IE03RAerA.png" /><figcaption>The Answer: Einstein Discovery for Reports</figcaption></figure><p>Einstein Discovery for Reports is the answer! With Einstein Discovery for Reports, previously known as Einstein Data Insights, you can quickly unravel hidden insights within your Salesforce Reports and identify key factors that can help drive your business more efficiently.</p><h4>What is Einstein Discovery?</h4><p>Einstein Discovery allows users to explore patterns, trends, and correlations in business data using clicks not code. That’s not all, Einstein Discovery is also known for its Machine Learning <a href="https://help.salesforce.com/articleView?id=bi_edd_story_setup_type.htm&amp;type=5">capabilities</a> powering organizations with embedded AI. Learn more about Einstein Discovery <a href="https://www.salesforceblogger.com/all-about-stories/">here</a>.</p><h3>What can you do with the Einstein Discovery for Reports?</h3><ul><li>Understand the frequency of <strong>Occurrences</strong> of values in your Report Data [Example: “How often does a particular region (AMER) show up in my opportunities?”]</li><li>Analyze <strong>business goals</strong> and understand how columns in your Report Data are impacting them. [Example: “I want to maximize my Profits/Revenues”]</li><li>How did my data change over time to affect my Business goals [Example: “Why did my Win Rate drop 10% since last month?”]</li></ul><p><strong>Let’s start off with a normal Salesforce Report</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9m3RAN9emdWrRLtNZDVUHg.png" /><figcaption>Salesforce Lightning Report on Opportunities</figcaption></figure><p><strong>About the Report:</strong></p><ul><li>Report Type: <a href="https://admin.salesforce.com/blog/2017/ultimate-guide-report-types">Opportunity with Accounts</a></li><li>Filters: Opportunity.isClosed = True &amp; Opportunity.CloseDate = Last Quarter</li></ul><h4>Occurrences Analysis</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*fRnQmqRAXVWyhDAZYiGAxw.gif" /><figcaption>Occurrences Analysis on the Report</figcaption></figure><p>The first time you click on the “<strong>Analyze</strong>” button on any report, Einstein Discovery will perform an Occurrence Analysis, which is a second-order statistical analysis and provides useful insights based on how columns are interacting with one another.</p><p><strong>Let’s look into the insights in detail</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qN177zsF7HSElRzVmfHVKA.png" /><figcaption>First-order Insights Card</figcaption></figure><p><strong><em>First Order Insights Card</em></strong><em> — Exploratory Insights about a specific column in the report.</em></p><p>For the Column <strong>Won</strong> in my report, the value <em>False</em> occurred more often than <em>True</em>. So it seems like I am losing more opportunities.</p><p>Column: <strong>Won</strong></p><p>False[73.7%], True[26.3%]</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7O2lKMmHLStMafJj7cVK7Q.png" /><figcaption>Second-order Insights Card</figcaption></figure><p><strong><em>Second-Order Insights Card</em></strong><em> —Exploratory Insights for interactions between a column and a specific value of a different column. “Occurrences of Stage </em><strong><em>when</em></strong><em> Region is AMER”</em></p><p>This insight will be a combination of two columns, <strong>Won</strong> and <strong>Lead Source</strong>. Specifically when the <strong>Lead Source</strong> is of value <em>Field Sales</em>.</p><p>When <strong>Lead Source</strong> is <em>Field Sales</em></p><p>Column: <strong>Won</strong></p><p>False[82%], True[18%]</p><p>Note: <em>While overall 73.7% of the deals were lost, when we focus on a specific Lead Source: Field Sales stands out with 82% of deals being lost.</em></p><p><strong>General Questions that can be answered by Occurrences Analysis</strong></p><ul><li>What is the rate of occurrence of the column values in <strong>Lead Source</strong>?</li><li>When <strong>Lead Source</strong> is of some value, what is the rate of occurrence of <strong>Amount</strong>?</li><li>How different is my rate of occurrence of a column value compared to the average?</li><li>How different is the rate of occurrence of a column value compared to every other column value in the same category?</li><li>…</li></ul><p>Within a couple of clicks, I can delve into details about my report data and try to understand how my opportunities performed. Further, I could use the powerful search insights bar to pinpoint insights about a specific column or a combination.</p><h4>Business Goal Analysis</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*Ln2rJNXv7fXbGilvnYqiKw.gif" /><figcaption>Maximize Win Rate Analysis</figcaption></figure><p>From the Occurrences Analysis, I understand that the Win rate for my Opportunities is around <em>26.3%</em>. For my Business Goal, I would like to understand what are the important factors that can allow me to <strong>Maximize</strong> my <strong>Win Rate. </strong>By defining the goal a regression analysis is kicked off.</p><p>Note: <em>Einstein Discovery can work for both Binary and Measure Fields. For example: {Amount, isClosed, isWon, Profit.. etc}</em></p><p><strong>Let’s look into the insights in detail</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*URK2A9ngQGbnf88kxIIP6A.png" /><figcaption>Analysis Home Screen</figcaption></figure><p>As soon as the analysis is complete we see a screen with three main components.</p><ol><li><strong>Overview Panel</strong> — Provides an overview of the Outcome chosen. Usually is the Average of the Numeric Outcome or Rate of Occurrence for Binary Outcome. Additionally, this panel will also include the rate of change in the outcome over time.</li><li><strong>Correlation Panel</strong> — Gives you information about the most impactful columns for the chosen outcome. This is populated by calculating the <a href="https://en.wikipedia.org/wiki/Coefficient_of_determination">R²</a> for each of the columns.</li><li><strong>Sorted Insights</strong> — Insights are sorted based on the column’s impact on outcome and their relevance. As you can see from the screenshot above, the first few insights are related to the Amount since it has the highest <a href="https://en.wikipedia.org/wiki/Coefficient_of_determination">correlation</a>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-1Dp7bE8jHXbnv-OtVJIew.png" /><figcaption>First Order Insights Card</figcaption></figure><p>The first order insight provided me information that the <strong>Amount</strong> column has the highest impact for me to <strong>Win</strong> my <strong>Opportunities</strong>. In this case, I can see that my organization is performing well for smaller deals and performing spectacularly well for the largest deals. This can be caused because the focus of the organization might be on maximizing Amount among others.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UrSCfg3x-PTx103XEg3QWg.png" /><figcaption>Second-Order Insights Card</figcaption></figure><p>Similar to the Occurrences Second-Order Insights Card, I will get insights for a combination of two columns. In this case, the insights are about how the Win Rate is spread across <strong>Lead Source</strong> When the <strong>Amount</strong> is between <em>0–5,587</em>. In Layman’s terms, Which Lead Source is winning more opportunities for smaller deals?.</p><p><strong>General Questions that can be answered by Business Goal Analysis</strong></p><ul><li>What columns are driving my Business Goals?</li><li>How much impact do they have on my set Goals?</li><li>What are the low-performing categories in my columns that are impacting my Business?</li><li>….</li></ul><p>With less than three clicks, I can conduct a regression analysis that can provide me information about my data and how it’s affecting my Goals. Investigate details into your data easily and consume Salesforce Reports like never before with <strong>EDR</strong>.</p><h4>What Changed?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*KNhAIA27IRe3bPFgqOebAg.gif" /><figcaption>What Changed Analysis</figcaption></figure><p>My favorite feature on Einstein Discovery for Reports. In this instance, I have my Business Goal defined and I realized that new data has been entered. I can simply click on the refresh button for me to create a new version of the analysis and automatically run a <strong>What Changed? Analysis</strong>.</p><p><strong>What’s In What Changed? Analysis?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y2bTJ1N5_UA-kICHP1XZqQ.png" /><figcaption>What Changed Modal</figcaption></figure><p>A modal with a comparison between the current version of the analysis and a previous version of the analysis is displayed.</p><p><strong>General Questions that can be answered by What Changed? analysis</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/776/1*pkhrqlfVaZcyIaS_HdZAFw.png" /><figcaption>Column Impact</figcaption></figure><ul><li>How did the impact of the columns on my outcome change over time?</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/782/1*Ym38k4jRs8klPJ6wgeyVfA.png" /><figcaption>Column: Value Impact</figcaption></figure><ul><li>How did the data change across all the columns and were there any significant changes in their impact on the outcome?</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/492/1*L3NVhUNRB_eZIKjiwtocTA.png" /><figcaption>New Values</figcaption></figure><ul><li>Are there any new values added or are missing from the recent data refresh?</li><li>….</li></ul><p>The goal of <strong>What Changed?</strong> analysis is to provide easy-to-consume trend insights. With this analysis, one can easily understand how their report data has changed over time and is impacting the defined business goals within the analyses.</p><p>Not only that, we have amazing other features that can allow you to easily traverse through the insights, filter on the insights, and overall embellish your experience with Salesforce Reports.</p><h3>Considerations</h3><p>Here are some general Considerations while using Einstein Discovery for Reports:</p><ul><li><a href="https://help.salesforce.com/articleView?id=ri_limits_considerations_allocations.htm&amp;type=5"><strong>Limits</strong></a>: Columns [Minimum of 2 and a Maximum of 50]</li><li><a href="https://help.salesforce.com/articleView?id=ri_limits_considerations_allocations.htm&amp;type=5"><strong>Limits</strong></a>: Rows [Minimum of 50 and a Maximum of 500,000]</li><li>Avoid using report columns that contain unique ID columns, data with high cardinality (over 100 unique values), and data with high correlations (greater than 90%) to the selected analytical outcome.</li><li>Exclude rows that haven’t yet reached an outcome. For example, use closed opportunities or cases only.</li><li>Find out more Tips: <a href="https://help.salesforce.com/articleView?id=sf.ri_report_tips.htm&amp;type=5"><strong>Here</strong></a></li></ul><h3>Helpful Resources</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FTAsGCH0nJYM%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DTAsGCH0nJYM&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FTAsGCH0nJYM%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/6a85eb1b4b12c04c82d2b2ac9935a053/href">https://medium.com/media/6a85eb1b4b12c04c82d2b2ac9935a053/href</a></iframe><p><a href="https://help.salesforce.com/articleView?id=sf.reports_intelligent_overview.htm&amp;type=5">Documentation for Einstein Discovery for Reports</a></p><p><a href="https://trailhead.salesforce.com/en/content/learn/modules/einstein_data_insights_quick_look?trail_id=wave_analytics_einstein_discovery">Trailhead for Einstein Discovery for Reports</a></p><p><a href="https://www.youtube.com/watch?v=mhyXLM2BY8c">Summer ’21 Release Video</a></p><p><a href="https://www.salesforce.com/video/19792278/">Release Readiness</a> Summer ‘21</p><p>One final request, if you do have any feedback for Einstein Discovery for Reports or Einstein Discovery in general, I would love to hear from you. Please feel free to reach out to me on <a href="https://www.linkedin.com/in/btanikella/"><strong>LinkedIn</strong></a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c601c8267d9b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Supercharge your Automated Business Processes with Einstein Discovery]]></title>
            <link>https://bharadwaj-tanikella.medium.com/supercharge-your-automated-business-processes-with-einstein-discovery-2d8307b191dc?source=rss-b6bda83e9b86------2</link>
            <guid isPermaLink="false">https://medium.com/p/2d8307b191dc</guid>
            <category><![CDATA[einstein-discovery]]></category>
            <category><![CDATA[salesforce-admin]]></category>
            <category><![CDATA[einstein-analytics]]></category>
            <category><![CDATA[salesforce-developer]]></category>
            <category><![CDATA[salesforce]]></category>
            <dc:creator><![CDATA[Bharadwaj Tanikella]]></dc:creator>
            <pubDate>Thu, 29 Oct 2020 00:16:55 GMT</pubDate>
            <atom:updated>2020-10-29T16:36:08.701Z</atom:updated>
            <content:encoded><![CDATA[<p>Businesses have evolved to a point where their processes could be condensed to a precise operational flow. To automate these flows and processes, Salesforce offers <a href="https://www.salesforce.com/ca/products/platform/solutions/automate-business-processes/">Lightning Flows and Process Automation Tools</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cju9Nz9bgRYwpCvj-k2N6g.gif" /></figure><p>Lightning Flow is a Lightning Platform service that empowers any business to create and extend the power of process automation to customer or employee experience. The lightning flow offers low-code, easy drag-and-drop functionality to drive innovative customer experiences and help drive efficient business workflows. Anyone can declaratively build and embed component-based processes, Lightning fast.</p><p><strong>But wait</strong>, Why stop there? Why not supercharge these business processes with <strong>Einstein Discovery</strong> Predictions?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*na7zDEKIqxsGulR0jSxmRQ.gif" /><figcaption>Introducing <strong>Predict Function</strong> in the Winter ’21 Release</figcaption></figure><h3>The All-New Predict Function!</h3><p>In the Winter ’21 Release, we made the new <a href="https://releasenotes.docs.salesforce.com/en-us/winter21/release-notes/rn_bi_edd_predict_function_formula.htm"><strong>Predict Function</strong></a><strong> Generally Available</strong>! With this all-new Predict Function, one can embed predictive intelligence into the Business Process Automation declaratively!</p><h4><strong>What is Einstein Discovery?</strong></h4><p>Einstein Discovery allows users to understand and analyze their data through clicks. From a dataset, a user can create a <a href="https://trailhead.salesforce.com/content/learn/modules/understand_einstein_discovery_stories">Story</a>, which allows the user to understand their data through statistical analysis combined with detailed explanations. A Story with <a href="https://help.salesforce.com/articleView?id=bi_edd_story_setup_type.htm&amp;type=5">Predictive Analysis</a> creates a Machine Learning model with the story. Users can easily deploy this model to enable their Salesforce organization with AI-powered predictions. The model could be used for predictions across Salesforce, either as predictions on record pages or using the amazing <a href="https://help.salesforce.com/articleView?id=bi_edd_prediction_service.htm&amp;type=5">Prediction Service</a> to take these predictions elsewhere. Through the seamless process of understanding data, the robust pipeline to deploy Machine Learning Models, and have it be visible, actionable Einstein Discovery can add immense value to any organization.</p><h4><strong>Where can I use the Einstein Discovery Predictions?</strong></h4><p>The predictions are currently available across multiple Products in Salesforce.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gfY0_ZJuYj2SZReG_LGTvQ.png" /><figcaption>All the products listed above are GA and can be used with EA Plus License.</figcaption></figure><h4><strong>Where can I use the Predict Function?</strong></h4><p>The new Predict Function can be used in the following <a href="https://help.salesforce.com/articleView?id=bi_edd_prediction_process_automation_formula.htm&amp;type=5">Products</a>:</p><ul><li>Next Best Actions</li><li>Validation Rules</li><li>Screen, Headless, and Invocable Flows</li><li>Workflows + Process Builders</li><li>Approval Processes</li><li>Predefined Field Values</li><li>Field Update Actions</li><li>Default Values</li></ul><h4>How does it work?</h4><p>Einstein Discovery Prediction requires <em>two</em> main components to calculate a prediction, a Model, and an Input row. In this case, Predict Function will take in the following inputs:</p><ol><li><strong>Prediction Definition</strong> — Prediction Definition deployed from the Story.</li><li><strong>Input Rows</strong> — Input Row to get the Prediction. [Record Id OR Key/Value Pairs]</li></ol><pre>PREDICT(PredDefId, [recordId] | [field, value, ...])</pre><pre>PredDefId   --&gt; Required --&gt; Prediction Definition Id<br>recordId    --&gt; Optional --&gt; Salesforce Record Id<br>field,value --&gt; Optional --&gt; Field Value Pairs. </pre><pre>====================================================================<br>Valid Pairs:</pre><pre>PredDefId + recordId<br>PredDefId + [field,value, ..]</pre><p><strong><em>Find out More:</em></strong></p><p><a href="https://help.salesforce.com/articleView?id=bi_edd_prediction_process_automation_formula.htm&amp;type=5">Help | Training | Salesforce</a></p><h4>Sample Usage of the Predict Function:</h4><p>Here are a couple of instances of the usage of the Predict Function.</p><p><strong>Predict Function on Approval Process:</strong></p><p>With Predict Function on the Approval Process, we easily integrate Predictive Intelligence in the way Salesforce records get approved.</p><p><em>Sample Function:</em></p><pre>PREDICT( $SmartDataDiscovery.PredictionDefinitions.Predicted_Likelihood_to_Close.Id , Id) &gt; 80</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xyUBaXWBvBSh5H0-b0BvQw.gif" /><figcaption>Approval Process with the Predict Function on a Step</figcaption></figure><p><strong>Predict Function with Process Builder:</strong></p><p><em>Sample Function:</em></p><pre>PREDICT( $SmartDataDiscovery.PredictionDefinitions.Predicted_Likelihood_to_Close.Id , [Opportunity].Id) &lt; 60</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yoUgER6AsrAMvm_KodID5A.gif" /><figcaption>Process Builder with Predict Function as a Criteria</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2d8307b191dc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automate your ML Pipeline with Scheduled Model Refresh — Einstein Discovery]]></title>
            <link>https://bharadwaj-tanikella.medium.com/automate-your-ml-pipeline-with-scheduled-model-refresh-einstein-discovery-392fdc360f1f?source=rss-b6bda83e9b86------2</link>
            <guid isPermaLink="false">https://medium.com/p/392fdc360f1f</guid>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[einstein-discovery]]></category>
            <category><![CDATA[einstein-analytics]]></category>
            <dc:creator><![CDATA[Bharadwaj Tanikella]]></dc:creator>
            <pubDate>Mon, 21 Sep 2020 16:15:37 GMT</pubDate>
            <atom:updated>2020-09-21T16:15:37.021Z</atom:updated>
            <content:encoded><![CDATA[<h3>Automate your ML Pipeline with Scheduled Model Refresh — Einstein Discovery</h3><p><a href="https://marktossell.com/2018/07/07/what-is-einstein-discovery-and-what-can-it-do-for-your-business/"><em>Einstein Discovery</em></a><em> is an Augmented Analytics tool that enables business users to automatically discover valuable patterns in their data declaratively. </em><a href="https://help.salesforce.com/articleView?id=bi_edd_about.htm&amp;type=5"><em>Learn more</em></a><em>.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*Ey-oQ1wlM2oLStxQdow74g.gif" /><figcaption>ML Lifecycle of Einstein Discovery</figcaption></figure><h4>What is Einstein Discovery?</h4><p>Einstein Discovery allows users to understand and analyze their data through clicks. From a dataset, a user can create a <a href="https://trailhead.salesforce.com/content/learn/modules/understand_einstein_discovery_stories">Story</a>, which allows the user to understand their data through statistical analysis combined with detailed explanations. A Story with <a href="https://help.salesforce.com/articleView?id=bi_edd_story_setup_type.htm&amp;type=5">Predictive Analysis</a> creates a Machine Learning model with the story. Users can easily deploy this model to enable their Salesforce organization with AI-powered predictions. The model could be used for predictions across Salesforce, either as predictions on record pages or using the amazing <a href="https://help.salesforce.com/articleView?id=bi_edd_prediction_service.htm&amp;type=5">Prediction Service</a> to take these predictions elsewhere. Through the seamless process of understanding data, the robust pipeline to deploy Machine Learning Models, and have it be visible, actionable Einstein Discovery can add immense value to any organization.</p><h4>Problem: Machine Learning Models Overtime.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oRhVB2GNv963FjIU0URyRw.png" /><figcaption>Model Performance of One Model vs Multiple Models refreshed overtime.</figcaption></figure><p>The general definition of a Machine Learning model is that it is a Mathematical representation of real-world data. Though these Models are quite powerful, there is an inherent issue with them, <strong>Time</strong>. We all know that the real world data continues to grow and change on a daily nay second-by-second basis. With the constant updates/changing nature of data over time, the models are in a battle with time, which most end up losing. The model performance tends to deteriorate as the data changes, this is natural. Hence, the recommended best practice is to make sure that users keep their ML Models up to date. This is to ensure the prediction’s performance does not tumble.</p><h4><strong>Introducing Scheduled Model Refresh!</strong></h4><p>Since we know Models need to be refreshed, why manually deploy the models every time? Why not automate it?</p><p>That&#39;s exactly what Einstein Discovery did for Winter ’21 with the all-new <a href="https://releasenotes.docs.salesforce.com/en-us/winter21/release-notes/rn_bi_edd_model_refresh_automated.htm"><strong>Scheduled Model Refresh</strong></a>!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*7VLlFxZqAQMWz62MrBOrqQ.gif" /><figcaption>New Flow with Scheduled Model Refresh</figcaption></figure><p>With this amazing feature, you can automate the task of refreshing your model on a scheduled basis. This can be achieved by not impacting or affecting the enabled predictions across your org. With this feature, you can have the confidence any predictions that are consumed in your Salesforce org are up to date. Internally, a new <a href="https://help.salesforce.com/articleView?id=bi_edd_story_version.htm&amp;type=5">Story Version</a> and a Model Version are created as per the schedule set by the user.</p><p><em>Capabilities</em>:</p><ul><li>Allow Einstein Discovery to refresh your model on a Monthly/Weekly cadence.</li><li>Automatically run Bulk Score on all the records once the Model is Refreshed.</li><li>Get Notifications on the progress on the Model Refresh.</li><li>Set a Threshold to let Einstein Discovery catch any data changes warnings and block Auto-Deploy.</li></ul><h3>How?</h3><p>In three easy steps, one can automate their ML pipeline with Einstien Discovery.</p><p><strong>Prerequisites</strong>:</p><ul><li>Permissions: <a href="https://trailhead.salesforce.com/en/users/ea-trails/trailmixes/learn-einstein-analytics-plus">Einstein Analytics Plus License</a></li><li><a href="https://trailhead.salesforce.com/content/learn/modules/understand_einstein_discovery_stories?trailmix_creator_id=ea-trails&amp;trailmix_slug=learn-einstein-analytics-plus">Create a Story</a> with the desired Dataset</li><li><a href="https://help.salesforce.com/articleView?id=bi_edd_model_deploy_new_existing.htm&amp;type=5">Deploy the Story</a> to enable Predictions</li></ul><h4>I. Navigate to Model Manager and the Prediction deployed.</h4><p><em>Select the prediction deployed and click on Model Refresh Tab.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*49FarDb-dtss6j3U4Mo__g.png" /><figcaption>Model Manager → Prediction [Example: Recommended Discount]</figcaption></figure><h4>II. Select Enable Automatic Refresh Option</h4><p><em>In the Model Refresh Tab, we see if the refresh has been enabled or not. Click on the “Enable Automatic Refresh” button.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mGrnt-zTWyb-aV4SYkaQ5Q.png" /><figcaption>Model Refresh Page.</figcaption></figure><h4>III. Select the Options for your Model Refresh</h4><p><em>Select the Options to enable your Model Refresh.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j7jltGs7SddIWcshhqeylQ.gif" /><figcaption>Configuring Model Refresh</figcaption></figure><p><strong>Options </strong><a href="https://help.salesforce.com/articleView?id=bi_edd_model_manager_refresh.htm&amp;type=5"><strong>Explained</strong></a><strong>:</strong></p><p><strong>Schedule</strong></p><ul><li><strong>Refresh Frequency</strong> — [Monthly, Weekly], At this time the Refresh Frequency options are Monthly and Weekly, please choose this according to your data refresh cycle.</li><li><strong>Date</strong> — [Calendar Date, Relative Date] Day of the Week/Month</li><li><strong>Start Time</strong> — Start Time for the Automated Process to Kick-Off</li></ul><p><strong>Refresh Settings</strong></p><ul><li><strong>Models to Refresh</strong> — Einstein Discovery provides a checkbox list containing all the models under the given Prediction Definition. A Prediction Definition can contain multiple models, so this Automatic Refresh can be applied to multiple models at once.</li><li><strong>Refresh Warnings Threshold</strong> — Einstein Discovery provides warnings while predicting a record. These warnings are a sign of any <a href="https://www.salesforceblogger.com/2020/05/11/managing-einstein-discovery-models-in-the-wild/">data related issues</a> with the training data and records. With this Warnings Threshold, Einstein Discovery is allowing users to block Auto-Deployment if there is a certain percentage of warnings per predicted rows. For example: Let’s assume Model Version # 1 has predicted on 100 records and has 10 records with Performance Warnings. In the above image, the threshold is set at 5%, so Model Version #2 will be blocked from auto-deployment. However, the user will have the ability to see the new Story Version created and then manually deploy it themselves.</li><li><strong>Re-score records after Refresh</strong> — Bulk scores all the records with the Prediction field automatically as soon as this model is refreshed.</li></ul><p><strong>Notification</strong></p><ul><li><strong>Email Recipients</strong> — Edit the recipients to get an email about the progress on Model Refresh.</li></ul><p><strong>That Easy</strong>! You have automated your Models used in Production!</p><h4>Resources</h4><p><a href="https://help.salesforce.com/articleView?id=bi_edd_model_manager_refresh.htm&amp;type=5">Documentation for Scheduled Model Refresh<br></a><a href="https://releasenotes.docs.salesforce.com/en-us/winter21/release-notes/rn_bi_edd_model_refresh_automated.htm">Release Notes</a></p><p><a href="https://trailhead.salesforce.com/content/learn/modules/wave_exploration_smart_data_discovery_basics"><em>The trailhead for Einstein Discovery</em></a><em><br></em><a href="https://help.salesforce.com/articleView?id=bi_edd_about.htm&amp;type=5"><em>Help and Support Pages</em></a><em><br></em><a href="https://www.salesforceblogger.com/blog-overview-by-category/"><em>Other Blogs</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=392fdc360f1f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Einstein Discovery Prediction Service on Postman — 3 Easy Steps]]></title>
            <link>https://bharadwaj-tanikella.medium.com/einstein-discovery-prediction-service-on-postman-3-easy-steps-f008a89b5e2e?source=rss-b6bda83e9b86------2</link>
            <guid isPermaLink="false">https://medium.com/p/f008a89b5e2e</guid>
            <category><![CDATA[salesforce-productivity]]></category>
            <category><![CDATA[salesforce-development]]></category>
            <category><![CDATA[salesforce-analytics]]></category>
            <category><![CDATA[einstein-analytics]]></category>
            <category><![CDATA[salesforce]]></category>
            <dc:creator><![CDATA[Bharadwaj Tanikella]]></dc:creator>
            <pubDate>Thu, 12 Mar 2020 19:52:49 GMT</pubDate>
            <atom:updated>2020-05-03T05:41:33.943Z</atom:updated>
            <content:encoded><![CDATA[<h3>Einstein Discovery Prediction Service on Postman — 3 Easy Steps</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mtmLUkv-shxnt32oAFxrLw.png" /><figcaption>Using Einstein Discovery Predict on Postman API tool</figcaption></figure><p>While I’m getting used to the <strong>#remoteworking</strong> lifestyle by sorting out and setting up tools to be more productive in my work. I thought I would share one of the tools I use every day for development and testing.</p><p><strong>What are Einstein Discovery and Postman?<br></strong><a href="https://marktossell.com/2018/07/07/what-is-einstein-discovery-and-what-can-it-do-for-your-business/">Einstein Discovery</a> is an Augmented Analytics tool that enables business users to automatically discover valuable patterns in their data. Everything in Einstein Discovery is accomplished through simple clicks, rather than building complex AI models from scratch. Postman, on the other hand, is an API collaboration tool that allows users to easily work with public APIs.</p><p>Einstein Discovery is a comprehensive CRM Analytics product, which offers various features, such as Einstein Data Insights on Salesforce Reports, Stories in Einstein Analytics, Predictions on Salesforce Records, and Automated Scoring on Records. Einstein Prediction Service is Einstein Discovery’s collection of public APIs that allows users to get predictions on their data by making an API call from any external environment or platform. Through Einstein Prediction Service, the power of Einstein Discovery can be exported anywhere. And we know answering the “What will happen” questions in a business setting can be quite powerful. Because it provides publicly available APIs, we are not limited to working within just the Salesforce Ecosystem.</p><h4>Prerequisites:</h4><ul><li>Permissions: <a href="https://trailhead.salesforce.com/en/users/ea-trails/trailmixes/learn-einstein-analytics-plus">Einstein Analytics Plus License</a> + Ability to Create a Salesforce <a href="https://help.salesforce.com/articleView?id=connected_app_overview.htm&amp;type=5">Connected App</a> [Manage Connected App Permission]</li><li><a href="https://trailhead.salesforce.com/content/learn/modules/understand_einstein_discovery_stories?trailmix_creator_id=ea-trails&amp;trailmix_slug=learn-einstein-analytics-plus">Create a Story</a> with the desired Dataset</li><li>Deploy the Story to enable Predictions</li></ul><h4>How can I use Einstein Prediction Service APIs on Postman?</h4><p><em>Three Easy Steps:</em></p><ol><li>Set up a Connected Application.</li><li>Set up Postman with Connected App Credentials.</li><li>Use Einstein Discovery APIs.</li></ol><p><strong>I. Connected Application Setup</strong></p><p><em>This allows Postman to connect to your Salesforce Org securely.</em></p><p><strong>Trailhead:</strong> <a href="https://trailhead.salesforce.com/en/content/learn/modules/connected-app-basics">Connected App Basics</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6wTdO87cl2oQg1Ix10Y37A.png" /><figcaption>Click on the Setup icon on the Top Right of the Page</figcaption></figure><p>From your home screen, please make your way to the <strong>Setup </strong>page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x3IN0FoAXTwM_MbK2LL34w.png" /><figcaption>In the Search Bar, type App to Filter for the <strong>App Manager</strong></figcaption></figure><p>From the <strong>Setup </strong>Page, use the toolbar on the left to navigate to the <strong>App Manager</strong> page</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8P9Ciiv6PWYN9krgb93gow.png" /><figcaption>Click the <strong>New Connected App</strong> Button</figcaption></figure><p>In the <strong>App Manager</strong> page, click the <strong>New Connected App</strong> button</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f5WwG1KEFsl36cLoG1GzXA.png" /><figcaption>Enter the relevant information for the Connected App</figcaption></figure><ul><li>Set<strong> Connected App Name</strong>: Add a Name that is descriptive and easily distinguishable</li><li>Set<strong> API Name</strong>: Follow the <a href="https://help.salesforce.com/articleView?id=000336537&amp;language=en_US&amp;type=1&amp;mode=1">Salesforce API Name</a> structure</li><li>Set<strong> Contact Email</strong>: Email</li><li>Click<strong> Enable OAuth Settings</strong>: Enabled</li><li>Set<strong> Callback URL</strong>: I have used <a href="https://login.salesforce.com/"><em>https://login.salesforce.com</em></a><em>, Use the URL associated with your Salesforce org (for example, </em><a href="https://test.salesforce.com/">https://test.salesforce.com/</a>)</li><li>Set<strong> Selected OAuthScopes</strong>: Access and manage your data (api) &amp; Access and manage your wave data (wave_api)</li></ul><p>After completing the form, go ahead and create the Connected Application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T4UWTefm62Kz6DqUMsDSyg.png" /><figcaption>The result of the Connected Application</figcaption></figure><p>A Connected Application is created with the <strong>Consumer Key</strong> and <strong>Secret</strong>.</p><p><em>You have completed the hardest part of the setup.</em></p><p><strong>II. Set up Postman with Connected App Credentials</strong></p><p><em>This step will set up the Postman tool with the Connected App credentials. You need this to get the </em><strong><em>Access Token</em></strong><em> to perform the API calls.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YYhfdhRtrgAPEGDN54-O5g.png" /><figcaption>**Optional** Create a New Collection</figcaption></figure><p>I created a New Collection to make sure that I have all the Einstein Discovery APIs I work within one place. **<em>Optional</em>**</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tv6DbExFoSvwi9l574F62g.png" /><figcaption>Create a New Request</figcaption></figure><p>Click <strong>+ New</strong> on the left-hand corner of the application and create a <strong>New Request</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/992/1*0L66mrRiiYxoHRF1Ippgbw.png" /><figcaption>Provide the Name of the Request</figcaption></figure><p>I usually create a new <strong>Request</strong> under the collection I have created and then associate them with each other.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CM3YWsc4Ru1NS6iTbK8mLg.png" /><figcaption>Complete the Request Form.</figcaption></figure><ul><li>Change the<strong> Type of Request</strong>: from GET to POST</li><li>Provide the <strong>URL</strong>: <a href="https://login.salesforce.com/services/oauth2/token">https://login.salesforce.com/services/oauth2/token</a></li><li>Select <strong>Body</strong></li><li>Select Body Type as <strong>x-www-form-urlencoded</strong></li><li>Enter the following <strong>KEYS</strong> and <strong>VALUES</strong></li></ul><blockquote><strong>grant_type</strong> : password</blockquote><blockquote><strong>client_id</strong> : Consumer Key from the created Connected App from <strong>Step I</strong></blockquote><blockquote><strong>client_secret</strong> : Consumer Secret from the created Connected App from <strong>Step I</strong></blockquote><blockquote><strong>username</strong> : Salesforce User Name</blockquote><blockquote><strong>password</strong> : Salesforce Password</blockquote><ul><li><strong>Save</strong> the Request</li><li>Click <strong>SEND</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uE3BdxLYYK46Vkx6usxeDA.png" /><figcaption>Once Executed, this is what we see</figcaption></figure><p>Once we have executed the above request, the response will be similar to the above example.</p><p>Copy <strong>access_token</strong> Information <strong>&lt;IMPORTANT&gt;</strong></p><p><em>Authentication with Salesforce is complete and we are now able to use Salesforce APIs using Postman.</em></p><p><strong>III. Use Einstein Discovery API’s [Prediction Service]</strong></p><blockquote><strong>Expected Flow: <br></strong>Create New Request → Apply Authorization with Access Token → Provide Request Payload → Consume Response</blockquote><p>Helpful Documentation for Einstein Discovery APIs:</p><p><a href="https://help.salesforce.com/articleView?id=bi_edd_prediction_service.htm&amp;type=5">Help | Training | Salesforce</a></p><p>The following are an example of how to execute <strong>GET</strong> Prediction Definitions and <strong>POST</strong> Predict API calls.</p><p><strong>[GET] PredictionDefinitions</strong></p><p>URL: <a href="https://salesforce.com/services/data/v48.0/smartdatadiscovery/predictionDefintions"><strong>/services/data/v48.0/smartdatadiscovery/predictionDefinitions</strong></a></p><blockquote>Note: API Version v48.0 will be incremented as Salesforce has new releases.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JlLB0lnrM-743-3j_CgYaA.png" /><figcaption>Create a New Request for Prediction Definitions Call</figcaption></figure><ul><li>Similar to Step II, we are going to create a <strong>New Request</strong> for Prediction Definitions.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*73CsSoIoK4tKG3TWBTZaJA.png" /><figcaption>Prediction Definition API</figcaption></figure><ul><li>Set <strong>Request Type</strong>: GET</li><li>Set <strong>URL</strong>: <a href="https://salesforce.com/services/data/v48.0/smartdatadiscovery/predictionDefintions">&lt;yourSalesforceURL&gt;<strong>/services/data/v48.0/smartdatadiscovery/predictionDefinitions</strong></a></li><li>Click <strong>Authorization</strong></li><li>Set <strong>Authorization type</strong>: OAuth2.0</li><li>Set <strong>Access Token</strong>: Retrieved from Step II of this article.</li><li><strong>Save</strong> the Request</li><li><strong>Send</strong> the Request</li></ul><p><em>You should see a Response with Prediction Definitions.</em></p><p><strong>[POST] Predict API</strong></p><p>URL: <a href="https://salesforce.com/services/data/v48.0/smartdatadiscovery/predictionDefintions"><strong>/services/data/v48.0/smartdatadiscovery/predict</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xQehavg1eFL4W9B_lOm27A.png" /><figcaption>New Request For Predict API</figcaption></figure><p>Create a <strong>new Request</strong> for the Predict API call</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fX6MQOPpeSfycx6SJs-PFw.png" /><figcaption>Authorization Stage of the Request</figcaption></figure><p>Every Request for an API call requires us to set up the <strong>Authorization</strong>.</p><ul><li>Set <strong>Request Type</strong>: POST</li><li>Set <strong>URL</strong>: <a href="https://salesforce.com/services/data/v48.0/smartdatadiscovery/predictionDefintions">&lt;yourSalesforceURL&gt;<strong>/services/data/v48.0/smartdatadiscovery/predict</strong></a></li><li>Set <strong>Authorization Type</strong>: OAuth 2.0</li><li>Set <strong>Access Token</strong>: Access Token from Step II of this article.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_68oDhLbfJqzoYgd9iM2tA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yQl-W02gssbLcw2-nYbBlw.png" /><figcaption>Because this is a POST call. We need to specify an associated request BODY.</figcaption></figure><ul><li>Select <strong>Body</strong> Option</li><li>Select <strong>Body Type</strong>: raw</li><li>Select <strong>Body Type Request</strong>: JSON</li><li>Add the <strong>JSON Request</strong>.</li></ul><p><em>For Example:</em></p><blockquote>{<br> “predictionDefinition”: “&lt;PredictionDefinitionId&gt;”,<br> “type”: “Records”,<br> “records”: [“RecordId1”,”RecordId2”]<br>}</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J9_l0ZiP1CyhvMqw8z2vyA.png" /></figure><p><strong>Congratulations</strong>! You have the ED Prediction Service working with Postman. :)</p><h4>Most common error messages:</h4><p><em>Note: This is not a complete list, but something I faced while setting up.</em></p><blockquote>‘<strong>predict’ must be specified</strong> Error.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gQl5juIMYazt2WJpZfSbXg.png" /></figure><p>This usually happens when there is a mismatch between the Header Value <strong>Content-Type </strong>and the request body. We need to make sure the <strong>Content-Type</strong>: application/json, since we are using a Request Body of a JSON</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f008a89b5e2e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>