<?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 Sai Varma on Medium]]></title>
        <description><![CDATA[Stories by Sai Varma on Medium]]></description>
        <link>https://medium.com/@saivarma844?source=rss-2fe1c7583b60------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*3XRM8Mfv31No1_fw4JsjVw.jpeg</url>
            <title>Stories by Sai Varma on Medium</title>
            <link>https://medium.com/@saivarma844?source=rss-2fe1c7583b60------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 10:21:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@saivarma844/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[Building Secure Data Governance: Authorization Frameworks in Salesforce Data 360]]></title>
            <link>https://medium.com/@saivarma844/building-secure-data-governance-authorization-frameworks-in-salesforce-data-360-9eae04ca0d68?source=rss-2fe1c7583b60------2</link>
            <guid isPermaLink="false">https://medium.com/p/9eae04ca0d68</guid>
            <category><![CDATA[salesforce-360]]></category>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[salesforce-data-cloud]]></category>
            <dc:creator><![CDATA[Sai Varma]]></dc:creator>
            <pubDate>Sun, 02 Nov 2025 15:35:42 GMT</pubDate>
            <atom:updated>2025-11-02T15:35:42.830Z</atom:updated>
            <content:encoded><![CDATA[<p>Before diving into Salesforce Data 360 governance framework, it’s essential to understand the two primary authorization models: <strong>Role-Based Access Control (RBAC)</strong> and <strong>Attribute-Based Access Control (ABAC)</strong>.</p><h3>Role-Based Access Control (RBAC)</h3><p>RBAC is a widely adopted model where access permissions are assigned to roles, and users are granted roles based on their responsibilities.</p><p><strong>Example</strong>: In a clinic , a Doctor can read and write medical reports and also read lab reports. However, writing lab reports is restricted to the Lab Technician role. Managing these permissions without abstraction becomes increasingly complex as the number of roles and actions grows. RBAC simplifies this by grouping permissions into roles, ensuring easier administration and scalability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/895/1*vNj65oNzSZYxP4OOAQjxUQ.png" /><figcaption>with out RBAC</figcaption></figure><p><strong>Pros</strong>:</p><ul><li>Simple to implement and manage.</li><li>Works well for static environments with clearly defined roles.</li></ul><p><strong>Cons</strong>:</p><ul><li>Lacks flexibility in dynamic environments.</li><li>Role explosion: too many roles needed to cover nuanced access needs.</li></ul><h3>Attribute-Based Access Control (ABAC)</h3><p>ABAC uses a dynamic approach to determine access by evaluating attributes from three dimensions: <strong>User</strong>, <strong>Data</strong>, and <strong>Environment</strong>.</p><p><strong>Example</strong>:<br> A user from the <em>Finance</em> department accessing <em>PII-tagged</em> data during business hours.</p><h4>Attributes Considered</h4><ul><li><strong>User Attributes</strong>: Department, Role, Location</li><li><strong>Data Attributes</strong>: Sensitivity, Classification, Lineage</li><li><strong>Environment Attributes</strong>: Time, Device, Network</li></ul><p><strong>Example Policy</strong>:<br> <em>“Allow access if user.department = ‘Finance’ AND resource.tag = ‘PII’ AND environment.time BETWEEN 9 AM–6 PM.”</em></p><h4>How ABAC Policy Works</h4><ol><li><strong>Request</strong>: A user attempts to access a resource (e.g., a PII-tagged record).</li><li><strong>Policy Enforcement Point (PEP)</strong>:</li></ol><ul><li>Intercepts the request.</li><li>Collects attributes from User, Data, and Environment.</li></ul><p><strong>3.Policy Decision Point (PDP)</strong>:</p><ul><li>Evaluates the request against ABAC policies using attributes.</li><li>Makes an <strong>Access Decision</strong> (Allow/Deny).</li></ul><p><strong>4.Resource</strong>:</p><ul><li>Access is granted or denied based on the PDP decision.</li></ul><p>If there are multiple policies, deny takes presidency.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jufpu9WqhQyLGnuOMClfbw.png" /></figure><p><strong>Pros</strong></p><ul><li>Highly granular and contextual.</li><li>Scales well in complex, data-rich environments.</li></ul><p><strong>Cons</strong></p><ul><li>Requires robust metadata and policy management.</li></ul><h3>What Salesforce Data 360 Governance ?</h3><p>Data 360 Governance is Salesforce’s framework for <strong>secure, compliant, and scalable data management</strong> across structured and unstructured data. It ensures:</p><ul><li><strong>Right data to the right user/agent at the right time</strong>.</li><li><strong>Consistency and trust</strong> across all Data 360 surfaces (Agents, Analytics, Segmentation).</li><li><strong>Policy-based governance</strong> for access control, masking, and compliance.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eEsWi80IoEy7AvMAi4Jbog.png" /><figcaption>Reference from salesforce official documentation</figcaption></figure><h4><strong>RBAC based governance :</strong></h4><p>Role-Based Access Control (RBAC) assigns permissions based on predefined roles. In the context of <strong>Data Spaces</strong> in Salesforce Data Cloud:</p><ul><li>Each <strong>Data Space</strong> represents a logical partition for a brand, business unit (BU), or region.</li></ul><p>Admins create permission sets such as:</p><ul><li><strong>Marketing Analyst</strong> → Access to Marketing Data Space.</li><li><strong>Finance Manager</strong> → Access to Finance Data Space.</li></ul><p>Permissions are granted at the <strong>Data Space level</strong>, meaning:</p><ul><li>A user with the Marketing Analyst PS can access all objects and processes within the Marketing Data Space.</li><li>A Finance Manager can access everything in the Finance Data Space.</li></ul><p><strong>Benefits of RBAC in Data Spaces</strong></p><ul><li>Simple to implement for <strong>coarse-grained control</strong>.</li><li>Easy for admins to manage when the number of roles and Data Spaces is small.</li></ul><p><strong>Limitations</strong></p><ul><li>RBAC cannot handle <strong>fine-grained requirements</strong> like: Restricting access to specific fields (e.g., PII.Email), Allowing conditional access (e.g., only during business hours).</li><li>As roles and exceptions grow, RBAC leads to <strong>role explosion</strong> and complexity.</li></ul><h4><strong>Why ABAC is Needed?</strong></h4><ul><li>Modern Data Cloud environments involve <strong>dynamic conditions</strong>:</li><li>AI agents accessing data.</li><li>Compliance rules varying by region and data sensitivity.</li><li>ABAC allows policies based on <strong>attributes</strong>, not just roles:</li><li><strong>User attributes</strong>: Department, location.</li><li><strong>Data attributes</strong>: Sensitivity, classification, lineage.</li><li><strong>Environment attributes</strong>: Time, device, network.</li></ul><p>This enables:</p><ul><li><strong>Field-level and row-level security</strong>.</li><li><strong>Dynamic data masking</strong>.</li></ul><h4><strong>From Data Spaces to Policy-Based Governance</strong></h4><p><strong>Data Spaces</strong> enable logical segregation of data, metadata, and processes by brand, geography, or department within a single Data Cloud instance. For example, a global automotive company can prevent its European marketing team from accessing North American data.</p><p>As Data Spaces matured, the need for <strong>granular security</strong> grew — object, field, and record-level controls. To achieve this, Salesforce introduced <strong>ABAC (Attribute-Based Access Control)</strong> with <strong>policy-based governance</strong>. ABAC uses attributes like user role, department, and data sensitivity to enforce dynamic policies.</p><p>Supporting this model:</p><ul><li><strong>Tagging System</strong>: Predefined taxonomies (PII, PHI, Finance) applied to Data Cloud objects.</li><li><strong>Tag Propagation</strong>: Tags flow through transformations like Segmentation and Calculated Insights for consistent enforcement.</li><li><strong>Policy Authoring</strong>: Admins define dynamic access rules using attributes.</li></ul><p>Salesforce is now extending governance from structured data to <strong>unstructured content</strong> (documents, PDFs, Slack messages), ensuring <strong>scalable, reliable, and policy-driven security</strong> across all Data Cloud surfaces.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QMpAKE5LBxwnvXfyrS8kuw.png" /><figcaption>I</figcaption></figure><h4>1. AI Tagging and Classification</h4><p>Let AI handle the complexity of data organization. With <strong>AI-recommended tags</strong>, admins can automatically label and classify records — such as “HIPAA”, “GDPR”, or “PII” — to ensure consistent data protection and compliance. These tags:</p><ul><li>Align with business or regulatory frameworks</li><li>Can be customized or use built-in taxonomies</li><li>Help enforce governance policies across all data touch points</li></ul><p>This makes it easier to apply security and compliance rules uniformly, reducing manual effort and risk.</p><h4>2. Policy-Based Governance</h4><p>Control data access with precision. Admins can <strong>author, manage, and enforce custom access policies</strong> that define who (user or AI agent) can see what data. Key capabilities include:</p><ul><li>Granular access control at the <strong>field</strong>, <strong>object</strong>, or <strong>record</strong> level</li><li>Policies that automatically apply across Data Cloud components like <strong>Agentforce</strong>, <strong>Analytics</strong>, and <strong>Segmentation</strong></li><li>Centralized policy management for consistent enforcement</li></ul><p>This approach supports both <strong>RBAC</strong> (Role-Based Access Control) and <strong>ABAC</strong> (Attribute-Based Access Control), enabling flexible and scalable governance.</p><h4>3. Dynamic Data Masking</h4><p>Protect sensitive data dynamically. With <strong>masking policies</strong>, admins can control visibility based on user roles or attributes. For example:</p><ul><li>A service agent may see only partial data (e.g., masked SSN)</li><li>An HR agent may view full details if permitted</li></ul><p>These policies integrate seamlessly with Policy-Based Governance, ensuring sensitive data is protected while maintaining operational efficiency.</p><p><em>** </em>Stay tuned for our next blog, where we’ll explore <strong>detailed Data Governance use cases</strong> and <strong>real-world implementation strategies</strong> within Salesforce Data Cloud.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9eae04ca0d68" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Secondary Indexes on DLO’s -Salesforce Data Cloud]]></title>
            <link>https://medium.com/@saivarma844/secondary-indexes-on-dlos-salesforce-data-cloud-84d951abea5b?source=rss-2fe1c7583b60------2</link>
            <guid isPermaLink="false">https://medium.com/p/84d951abea5b</guid>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[salesforce-data-cloud]]></category>
            <dc:creator><![CDATA[Sai Varma]]></dc:creator>
            <pubDate>Sat, 20 Sep 2025 18:57:27 GMT</pubDate>
            <atom:updated>2025-09-20T19:01:02.425Z</atom:updated>
            <content:encoded><![CDATA[<p>An <strong>index</strong> organizes references to your table rows so the database can quickly locate them without scanning every row. The underlying structure is usually a <strong>B-tree</strong> (balanced tree) or <strong>hash table</strong>, depending on the type of index and the database engine.</p><ul><li><strong>Primary index</strong> → Usually built on the primary key; unique and automatically maintained.</li><li><strong>Secondary index</strong> → Built on non-primary fields; improves query performance for filtering or joining on those fields.</li></ul><h3>Secondary Indexes in Data Cloud</h3><p>While DLOs are automatically indexed on their primary key, sometimes you need to filter or join data on <strong>other fields</strong>. That’s where <strong>secondary indexes</strong> come in.</p><p>Secondary indexes help Data Cloud <strong>find data faster</strong> without scanning the entire object, saving time and query credits.</p><h4>When to Use Secondary Indexes</h4><p>Secondary indexes work best for fields that are:</p><ul><li><strong>Frequently used in filters or joins</strong> — if you often query or join on a field, an index can speed it up.</li><li><strong>High-cardinality</strong> — fields with many unique values, like email or customer_id.</li><li><strong>Stable</strong> — fields that don’t change too often, so the index stays efficient.</li></ul><h4>Fields to Avoid</h4><ul><li>Fields with very few unique values, like gender or status.</li><li>Fields used in functions or calculations, since the index won’t help.</li><li>Fields that are updated constantly, because maintaining the index can slow down inserts and updates.</li></ul><p><strong>Example good candidates</strong>: email, phone, Global ID, zip_code<br> <strong>Example poor candidates</strong>: country, status, calculated fields</p><p>In short, <strong>secondary indexes are like shortcuts</strong> for queries. Use them on fields that are heavily queried and mostly stable, and avoid them on low-uniqueness or highly changing fields.</p><h3><strong>How to Create Secondary indexes on DLO’s ?</strong></h3><blockquote>To create a secondary index on a DLO, you must have dataspace access to that DLO. Data Cloud Architect PS is needed to create/delete Secondary indexes.</blockquote><ul><li><strong>Open Data Cloud</strong><br> From the <strong>App Launcher</strong>, select <strong>Data Cloud</strong>.</li><li><strong>Go to Secondary Indexes</strong></li><li>Select the <strong>Secondary Indexes</strong> tab, or</li><li>Click <strong>More</strong> → <strong>Secondary Indexes</strong> if the tab isn’t visible.</li><li><strong>Create a New Index</strong><br> Click <strong>New</strong> to open the <strong>New Secondary Index</strong> window.</li><li><strong>Enter Details</strong></li><li>Give your index a <strong>Name</strong> (use a descriptive name).</li><li>Optionally, add a <strong>Description</strong>.<br> <em>(Secondary indexes are saved as a new DLO.)</em></li><li><strong>Select the DLO</strong><br> Search for and pick the <strong>Data Lake Object (DLO)</strong> you want to index.</li><li><strong>Choose the Field</strong><br> Select the field to use as the secondary index.</li><li><strong>Save</strong><br> Click <strong>Save</strong> to create your secondary index.</li><li><em>* You can’t edit secondary indexes after creation. To change a secondary index, delete and recreate it. Recreating a secondary index incurs the cost of index creation.</em></li></ul><h3>Limitations of Secondary Indexes</h3><p>When defining secondary indexes, keep these limitations in mind:</p><ol><li><strong>Direct match only</strong><br> Secondary indexes work only when your <strong>WHERE clauses directly match the indexed field</strong>. They <strong>cannot be used with calculations, functions, or fuzzy patterns</strong>.</li><li><strong>Daily refresh</strong><br> Secondary indexes are <strong>refreshed once a day</strong>. Updates to the DLO after that will not appear until the next refresh. They work best on <strong>Engagement DLOs</strong> or other DLOs that update <strong>no more than once every 24 hours</strong>.</li><li><strong>Unsupported objects</strong><br> Secondary indexes <strong>do not work with Zero-Copy Data Cloud objects</strong>.</li><li><strong>Query volume recommendation</strong><br> To justify the cost of creating an index, the target DLO should receive at least <strong>10,000 queries per day</strong>.</li></ol><p>While DLOs are automatically indexed on primary keys, secondary indexes let you efficiently filter and join data on other important fields.</p><p>By using secondary indexes wisely — on <strong>frequently queried, high-cardinality, and stable fields</strong> — you can save <strong>time, query credits, and system resources</strong>. Always consider the limitations, such as daily refresh cycles and unsupported objects, to ensure your indexes remain effective.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=84d951abea5b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Normalization and Denormalization in Salesforce Data Cloud]]></title>
            <link>https://medium.com/@saivarma844/normalization-and-denormalization-in-salesforce-data-cloud-801a24ff3148?source=rss-2fe1c7583b60------2</link>
            <guid isPermaLink="false">https://medium.com/p/801a24ff3148</guid>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[salesforce-data-cloud]]></category>
            <category><![CDATA[salesforce-tools]]></category>
            <category><![CDATA[salesforce-productivity]]></category>
            <dc:creator><![CDATA[Sai Varma]]></dc:creator>
            <pubDate>Tue, 17 Dec 2024 19:02:44 GMT</pubDate>
            <atom:updated>2024-12-17T19:02:44.155Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Normalized data</strong> is organized across multiple tables with predefined relationships, aiming to minimize redundancy and ensure consistency. This approach helps maintain data integrity by reducing the chances of duplication. In contrast, <strong>denormalized data</strong> consolidates information into a single table, which enhances query performance by simplifying data retrieval. The rows in a denormalized table contain related data as column attributes, making it easier to access and analyze.</p><p>The <strong>standard data model in the Data Cloud</strong> follows a <strong>normalized structure</strong>, so any incoming data needs to be normalized prior to mapping it to this model. Since not all source systems provide data in a normalized format or allow for normalized exports, it’s essential to review the field-level data to determine the necessary transformations for aligning the source data with the standard data model.</p><h3>Use Case</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3Vo76nLOD6ty2YHm8Zce2A.png" /></figure><p>The source data includes two email addresses and two phone numbers for each customer. However, the Data Cloud data model can map only a single email address and phone number to each individual DMO. To retain the customer’s extra contact details, it is necessary to normalize the contact point data before ingestion.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lX4lgmo77LTyokbQ9ks4Cw.png" /><figcaption>Data Lake Object (DeNormalized)</figcaption></figure><p>To normalize the data, split it into three tables for the <strong>Individual DMO</strong>, <strong>Contact Point Email DMO</strong>, and <strong>Contact Point Phone DMO</strong>, and define their relationships. Each record requires a unique primary key across all sources.</p><p>Since multiple email addresses and phone numbers exist for a single Contact Id, extend the data at ingestion using formula fields to generate primary keys. For the Contact Point Email DMO, create a composite primary key, <strong>Contact_Email_Id</strong>, by concatenating the Contact Id and Email fields.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-g1-HXzp1s2iEcBgy7sL5Q.png" /></figure><p>Using Data Transforms, before mapping the DLO to the <strong>Individual</strong> and <strong>Contact Point</strong> DMOs, a normalized table is created to store the email addresses.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*evUKeBUAg2a-Z93kD1cN1w.png" /></figure><p>Now map your Source DLO to <strong>Individual DMO </strong>and Contact Emails List DLO to <strong>ContactPointEmail </strong>DMO. Once your mapping is finished, you can validate using Data Explorer or Query APi.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LFTLekWFN7y4tlLmOZ8OQQ.png" /><figcaption>opening 1st record</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zDC5Yd8TfA7bbYgDeYs_6A.png" /></figure><p>Note: Need to setup proper layout first to see the data appropriately in UI</p><p>Follow the Same approach for Contact point phone and other entities too. For more information, please refer <a href="https://help.salesforce.com/s/articleView?id=sf.c360_a_normalized_and_denormalized_data.htm&amp;type=5">https://help.salesforce.com/s/articleView?id=sf.c360_a_normalized_and_denormalized_data.htm&amp;type=5</a></p><p>Thank you !! Happy Learning.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=801a24ff3148" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Send Data to Data Cloud using Flows]]></title>
            <link>https://medium.com/@saivarma844/send-data-to-data-cloud-using-flows-60d1ec6dbbbb?source=rss-2fe1c7583b60------2</link>
            <guid isPermaLink="false">https://medium.com/p/60d1ec6dbbbb</guid>
            <category><![CDATA[salesforce-data]]></category>
            <category><![CDATA[salesforce-flow]]></category>
            <category><![CDATA[salesforce-data-cloud]]></category>
            <category><![CDATA[salesforce]]></category>
            <dc:creator><![CDATA[Sai Varma]]></dc:creator>
            <pubDate>Thu, 25 Apr 2024 07:54:25 GMT</pubDate>
            <atom:updated>2024-04-25T07:54:25.795Z</atom:updated>
            <content:encoded><![CDATA[<p>Use actions to send data from a flow to Data Cloud through Ingestion API without writing any code. For example, use the Send Data to Data Cloud action in a flow to create an automation that automatically sends archival data to Data Cloud, or use it in a screen flow that sends engagement data directly to Data Cloud.</p><blockquote><strong>Steps to Create Ingestion API to send data to Data Cloud :</strong></blockquote><p>Consider a Use Case, when an account record got Created/Updated in Salesforce CRM, we want to insert records into Data Cloud. We will Use Record Triggered Flow and Ingestion API in Data cloud to solve this Use Case.</p><ol><li><strong><em>Create an Ingestion API in Data Cloud :</em></strong></li></ol><p>Go to Data Cloud Setup → Ingestion API → Object Name → Upload Schema(YAML File).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K9WDIQPZhIb8FJmI2SIabA.png" /><figcaption>Ingestion API Set Up Page</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/355/1*n1McdF0P0trRFrqnjWjF0Q.png" /><figcaption>Sample YAML File</figcaption></figure><p><strong><em>2. Create a DataStream from Ingestion API :</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BVIC9CsWLOx3OghcylPTlw.png" /><figcaption>Data Stream Page</figcaption></figure><p><strong><em>3.</em></strong> <strong><em>Create a Record Triggered Flow :</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nbzdN0aeTg29ozUrhsk5sw.png" /></figure><p>Since this is a call out, you need to run the <strong>Send to Data Cloud </strong>Action Asynchronously.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U93ECstBdyxYbjO2SVulMw.png" /></figure><p><strong><em>4. Verify your Data Stream:</em></strong></p><p>Once your flow got triggered, those records will be inserted into that Data Stream. You can check them using Data Explorer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Igt0f1D1I7N94vWWhu2y-w.png" /></figure><p>Above blog is just a reference for how to use Send to Data Cloud Action inside Salesforce, but in real time you need to configure your flow based on your actual requirement. For more help please do visit <a href="https://help.salesforce.com/">help.salesforce.com</a> .</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=60d1ec6dbbbb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MuleSoft Meets Data Cloud: Streamline Your Data Journey to the Cloud]]></title>
            <link>https://medium.com/@saivarma844/mulesoft-meets-data-cloud-streamline-your-data-journey-to-the-cloud-9ab21d9a9cd3?source=rss-2fe1c7583b60------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ab21d9a9cd3</guid>
            <category><![CDATA[salesforce-data]]></category>
            <category><![CDATA[salesforce-development]]></category>
            <category><![CDATA[salesforce-data-cloud]]></category>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[salesforce-tools]]></category>
            <dc:creator><![CDATA[Sai Varma]]></dc:creator>
            <pubDate>Tue, 02 Jan 2024 18:12:42 GMT</pubDate>
            <atom:updated>2024-01-02T18:12:42.970Z</atom:updated>
            <content:encoded><![CDATA[<p>The Salesforce Data Cloud Ingestion API is a powerful tool that lets you push data from external systems into your Data Cloud instance in real-time. It essentially acts like a bridge between your existing data sources and Salesforce, allowing you to seamlessly transfer information for analysis, insights, and building personalized customer experiences.</p><p><strong>Streamlined Data Integration:</strong></p><ul><li>Forget manual data imports or time-consuming batch processing. The Ingestion API offers a smooth, real-time connection to various data sources, including databases, applications, and cloud platforms.</li><li>Pre-built connectors for popular tools like Salesforce Marketing Cloud, and Google Cloud Platform further simplify the process.</li></ul><p><strong>Real-Time Insights:</strong></p><ul><li>With the Ingestion API, your data flows into Data Cloud instantly, granting you immediate access to fresh insights and the ability to react to changes in real-time.</li><li>This is particularly valuable for scenarios like tracking website traffic, monitoring social media sentiment, or optimizing marketing campaigns based on live customer behavior.</li></ul><p><strong>Improved Data Quality and Consistency:</strong></p><ul><li>The API doesn’t just move data; it cleans and enhances it along the way. Features like identity resolution and data matching ensure accuracy and consistency, helping you avoid duplicate entries and misleading information.</li><li>This improved data quality leads to more reliable reports, accurate predictions, and better decision-making across your organization.</li></ul><p><strong>Simplified Data Governance:</strong></p><ul><li>The Ingestion API integrates seamlessly with Data Cloud’s security and governance features. You can control access, define permissions, and enforce compliance regulations for all incoming data.</li><li>This ensures that your sensitive information is always protected and only authorized users can access it.</li></ul><h4><strong>Steps to use Data Cloud Ingestion Api:</strong></h4><ol><li>Log into Salesforce Data Cloud Org → Data Cloud Set up → Ingestion Api.</li><li>Create new Connection.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uLzgpmfD4Z6r4B9tUILL-g.png" /></figure><p>3. Once your Connection is Established, you need to Upload Schema of input your data (YAML file). <a href="http://Ingestion Api Schema help document"><em>https://help.salesforce.com/s/articleView?id=sf.c360_a_ingestion_api_schema_req.htm&amp;type=5</em></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/779/1*H5xYPonN0fgIO0n8Jq1Fqg.png" /><figcaption><strong>Sample YAML file</strong></figcaption></figure><p>Upload your Schema file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G0wVlOk_9muXcfgAX2Y9nA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/441/1*xbg-IySI8YZEKxmDLJTRbw.png" /><figcaption>Once your Object Schema got created, you can Update the Schema with new fields but you can’t delete the old fields</figcaption></figure><p>4. Now Create a Data Stream Using case_Details Ingestion Api, Select Ingestion Api and Select your Connection → Object (Can add multiple Objects in a Single Connection).</p><p>5. Select your Category (Profile/Engagement/Other) , PrimaryKey and Record Modified Date. <em>A datetime field must be present for objects that are intended for</em><strong><em> engagement </em></strong><em>category. Objects of category </em><strong><em>profile</em></strong><em> or </em><strong><em>other</em></strong><em> don’t impose this same requirement.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EZwrotHrjHEwftYTp_plKA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uKI-AttbztLKP5l72sIkkg.png" /><figcaption><strong>Can add Filters for incoming data</strong></figcaption></figure><p>6. Deploy your Data Stream. Now your Data Stream is ready.</p><p>7. Create your api to Stream the Data using Mulesoft. Open AnyPoint Studio, Create a new Project and Create a new flow .</p><p>*<em>This blog just tells you how to use Anypoint Studio to create an api which will Stream data into Data Cloud, to deploy that api into Mulesoft Cloud(or any hosted environment) you need to learn Mulesoft Deployment.</em></p><p>8. Drag Listener Component and Configure the port number and Set the request path Eg: /insert/{sourceApiName}/{objectName} and Allowed Method as POST</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/707/1*DPFW2kYV8lMSvcA0Iahekw.png" /></figure><p>Drag Salesforce CDP Connector into the Flow,if not available click on Add Modules and Search for Salesforce CDP, Create</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/1*gkY5J_gpUjAKATTn0nO_Ug.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f-R7U5kyg5rgzm5QNT20Qw.png" /></figure><p>9. Run you flow and Check the Status the Status.</p><p>10. Now open Postman( any rest api tool), pass the request <strong>POST</strong> <a href="http://localhost:8080/insert/Case_Details/case"><strong><em>http://localhost:8080/insert/Case_Details/case</em></strong></a></p><p>Body :</p><p>{</p><p>“data”:</p><p>[</p><p>{“id”: 123812,</p><p>“type”:”Installation”,</p><p>“Product_id” : “P-001”,</p><p>“Product_name” : “WaterHeater”,</p><p>“Priority” : “3”,</p><p>“CreatedDatetime”:”2023–12–13T09:16:03.000+0000&quot;,</p><p>“CreatedDate” : “2023–12–13”}</p><p>]}</p><p><strong><em>http://localhost:8080</em></strong><em> :</em> your listener configuration</p><p><strong>insert/Case_Details/case </strong>: your request path</p><p><strong><em>Case_Details </em></strong><em>:</em> Ingestion api source name</p><p><strong><em>case</em></strong><em> :</em> Object name</p><p>11. Wait for sometime to refresh your data Stream.</p><p>12. Click on DataExplorer and Select your Data lake Object to see the records from postman.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dxncXiHNdEgonh21lXnLPw.png" /></figure><p>Since we understand how to Stream data into DataCloud using Mulesoft, Now let’s connect Sql Server to Data Cloud to Stream records in a Sql Server table to Salesforce Data Cloud Using Mulesoft.</p><h4>Streaming SQL Server Data into Salesforce Data Cloud:</h4><ol><li>Drag Database Connector into Mule flow, add the connection</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/769/1*GKylEAAdOe-losB9nPKcUw.png" /></figure><p>Add Connection Properties</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/592/1*IR-r37GUbV096KgPdiFi_g.png" /></figure><p>*<em>You need to enable TCP/IP Protocol if you are getting any error while connecting to database, also please check the port you are using for Database Connectivity in SQL Server Configuration Manager.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BlYrV6Pp60qykuS2MyvYKg.png" /></figure><p>2. Select Id Column and Scheuling Frequency</p><p>3. Drag Transform message connector and set Ouput Payload in Json Format.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S9BR2GzvRgMofmAUCmLlMg.png" /></figure><p>4. Drag Salesforce Cdp- insert Objects Connector and configure Source api and Object name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/970/1*P6XVLr4O3LMdzxJkSgfi6A.png" /></figure><p>Deploy your Mule project . Now you can check that all your case records will be inserted into your Data Stream. Any record that is inserted into the Sql server table will be automatically inserted into your Data Stream.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/1*83CS0Z1RAX9AEtc8g38GXA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9ab21d9a9cd3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exporting Country and State Picklist Values in Salesforce]]></title>
            <link>https://medium.com/@saivarma844/exporting-country-and-state-picklist-values-in-salesforce-983927ae0dda?source=rss-2fe1c7583b60------2</link>
            <guid isPermaLink="false">https://medium.com/p/983927ae0dda</guid>
            <category><![CDATA[salesforce-lightning]]></category>
            <category><![CDATA[salesforce-adm-201]]></category>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[salesforce-productivity]]></category>
            <category><![CDATA[salesforce-tools]]></category>
            <dc:creator><![CDATA[Sai Varma]]></dc:creator>
            <pubDate>Wed, 20 Sep 2023 19:47:44 GMT</pubDate>
            <atom:updated>2023-09-20T19:47:44.577Z</atom:updated>
            <content:encoded><![CDATA[<p>The State and Country picklist functionality stands out as a well-preconfigured feature, celebrated for its simplicity and its vital role in upholding data integrity within Salesforce.</p><p>In many cases, integrated systems take charge of transmitting data to Salesforce. If this data is transmitted incorrectly or in a format incompatible with picklists, it can result in complications. Consequently, it’s imperative to become familiar with your integrated systems handling State or Country data, comprehending their data transmission methods and the formats they employ. You may find it necessary to adjust your data mapping, particularly when dealing with systems such as ZoomInfo, Seamless, or Marketo.</p><p>Numerous individuals aspire to export the current State and Country picklist values with the aim of mapping them into their integration systems. However, exporting this data can pose challenges due to its encoded relationship within Salesforce. In response to this challenge, I’ve developed a Python script that facilitates the export of existing State and Country picklist values into either Excel or CSV formats.</p><p>Import the essential Python libraries along with simple_salesforce(to connect to Salesforce org).</p><pre>import json<br>import pandas as pd<br>from simple_salesforce import SalesforceLogin,SFType,Salesforce,bulk<br>import base64</pre><pre>username=&#39;&#39;<br>password=&#39;&#39;<br>security_token=&#39;&#39;<br>domain=&#39;test&#39; # login for production(test for Sandbox type instances) <br><br># Step 1 : Connecting to Salesfore..<br>session_id,instance=SalesforceLogin(username=username, password=password,security_token=security_token,domain=domain)<br>sf=Salesforce(instance=instance,session_id=session_id)<br>print(sf)<br><br># Step 2 : Get Account metdate since it has State and Country code info...<br>acc_metadata=SFType(&#39;Account&#39;,session_id,instance).describe().get(&#39;fields&#39;)<br>acc_df=pd.DataFrame(acc_metadata)<br>States_data=acc_df[acc_df[&#39;name&#39;]==&#39;BillingStateCode&#39;][&#39;picklistValues&#39;]<br>Country_data=acc_df[acc_df[&#39;name&#39;]==&#39;BillingCountryCode&#39;][&#39;picklistValues&#39;]<br><br># we can use any object on above which has Standard Address fields..<br><br><br># Step 3 :  Getting Country and States picklist values info from Account metadata<br>   for i in States_data:<br>      States=pd.DataFrame(i)<br>      print(States)<br>      break<br>    <br>  for i in Country_data:<br>      Countries= pd.DataFrame(i)<br>      break<br><br># Step 4 : Create decode function  <br>def getCountry(encoded_value):<br>    encoded_value<br>    decoded_bytes = base64.b64decode(encoded_value)<br>    binary_representation = &#39;&#39;.join(format(byte, &#39;08b&#39;) for byte in decoded_bytes)<br>    position = binary_representation.find(&#39;1&#39;)<br>    return position<br><br># Step 5  : Apply decode function to States<br>States[&#39;CountryPosition&#39;]=States[&#39;validFor&#39;].apply(getCountry)<br>States=States.rename(columns={&#39;active&#39;:&#39;State_isActive&#39;,&#39;label&#39;:&#39;State_Label&#39;,&#39;validFor&#39;:&#39;validFor&#39;,&#39;value&#39;:&#39;StateValue&#39;,&#39;CountryPosition&#39;:&#39;Index&#39;})<br>Countries[&#39;Index&#39;] = range(0, len(Countries))<br>result = pd.merge(States,Countries, on=&#39;Index&#39;, how=&#39;outer&#39;)<br>result = result.drop([&#39;validFor_x&#39;,&#39;validFor_y&#39;,&#39;Index&#39;],axis=1)<br><br><br># Step 6  : Final Transformation and Excel output<br><br>result=result.rename(columns={&#39;defaultValue_x&#39;:&#39;State_IsdefaultValue&#39;,&#39;defaultValue_y&#39;:&#39;Country_IsdefaultValue&#39;,&#39;label&#39;:&#39;CountryLabel&#39;,&#39;value&#39;:&#39;CountryValue&#39;,&#39;active&#39;:&#39;CountryIsactive&#39;})<br>data= result[[&#39;CountryLabel&#39;,&#39;CountryValue&#39;,&#39;Country_IsdefaultValue&#39;,&#39;CountryIsactive&#39;,&#39;State_Label&#39;,&#39;StateValue&#39;,&#39;StateValue&#39;,&#39;State_isActive&#39;,&#39;State_IsdefaultValue&#39;]]<br>data.to_excel(&#39;E:\\SF_Tableau\\StateandCountryPicklist.xlsx&#39;)<br><br><br># Note above File path is path of your retrieved Excel file.<br><br><br></pre><p>Thanks for the reading the article.Hope this will help you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=983927ae0dda" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Salesforce Deployment with Copado Essentials]]></title>
            <link>https://medium.com/@saivarma844/salesforce-deployment-with-copado-essentials-98be9fbe17?source=rss-2fe1c7583b60------2</link>
            <guid isPermaLink="false">https://medium.com/p/98be9fbe17</guid>
            <category><![CDATA[deployment]]></category>
            <category><![CDATA[salesforce]]></category>
            <dc:creator><![CDATA[Sai Varma]]></dc:creator>
            <pubDate>Tue, 18 Jul 2023 14:48:13 GMT</pubDate>
            <atom:updated>2023-07-19T10:52:05.716Z</atom:updated>
            <content:encoded><![CDATA[<p>Copado, a leading native DevOps platform for Salesforce, has acquired ClickDeploy. ClickDeploy offers the fastest, easiest, and free DevOps tool for customers starting on their DevOps journey. This acquisition enables Copado to deliver DevOps for all, expanding its product set to serve individual admins, small teams and large enterprise teams with complex DevOps processes.</p><p>Copado Essentials became only free DevOps and release management tool that makes it fast and easy to deploy your Salesforce projects across Salesforce orgs.</p><p>There are three distinct versions of Copado Essentials available: Essentials Free, Essentials Basic, and Essentials Plus.</p><h4><strong>Steps invloved in Salesforce Deployment with Copado essentials :</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/1*L92_DRck85uZfkW95NcrYw.png" /></figure><ol><li>Visit the website <a href="https://essentials.copado.com/">https://essentials.copado.com/</a> using a web browser.</li><li>Look for the login option and choose to log in with Salesforce.</li><li>Enter your Salesforce credentials (either Production or Sandbox) to log in.</li><li>Once logged in, navigate to the organization section within the Copado Essentials platform.</li><li>Locate the option to authorize your Source Org (Development Org) and follow the provided instructions to establish the connection.</li><li>Next, find the option to add your version control system, in this case, Git.</li><li>Follow the provided instructions to authorize the repository, linking Copado Essentials with your Git version control system.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/993/1*qZpTu47GCyDzd7Ha3Xe0Ow.png" /><figcaption>Sample image</figcaption></figure><p><strong>Create a CI Job to push metadata into git :</strong></p><ol><li>Navigate to the CI Job section within the platform.</li><li>Look for the option to add a new CI Job or locate the existing CI Job to which you want to add a title.</li><li>Select the CI Job or click on the option to create a new one.</li><li>Once you are within the CI Job configuration, locate the field or section where you can specify the title.</li><li>Enter the desired title for the CI Job in the provided field.</li><li>In the Copado Essentials platform, select the source as “Salesforce org” and the target as “GitHub”.</li><li>If you want to automate this task, choose the “Schedule” option to set up a scheduled execution. Otherwise, you can proceed without scheduling.</li><li>Click on the “Save” button to save the configuration.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dwCcwV5dxGyKCd3ca4oDHQ.png" /></figure><p>Next, to add components and use wildcards:</p><ol><li>Look for the option to add components within the Copado Essentials platform.</li><li>Select the desired components based on different groups. If you enable the “Wildcard” option, it will include all components based on the specified groups. You can modify this filter according to your requirements.</li><li>Click on the “Run Now” button to initiate the build process.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YVh0g8wSFVQVt1BjLYBoqw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j4KZPh2KxJboiQ8vjrpQJw.png" /></figure><p><strong>Create a CI Job to push metadata into target org :</strong></p><p>To automate deployment whenever a commit occurs in the repository and add a webhook URL to the repository, follow these steps:</p><ol><li>Obtain the target organization details where you want to automate the deployment.</li><li>In the Copado Essentials platform, navigate to the CI Job section.</li><li>Create a new CI Job by selecting the option to create a new one.</li><li>Add the desired components to the CI Job. Specify the components that you want to include in the deployment process.</li><li>Once you have added the components, click on the “Run” button to initiate the CI Job execution.</li></ol><p>To automate deployment on commit and add a webhook URL:</p><ol><li>Access the repository on GitHub where you want to trigger automated deployment on commit.</li><li>Look for the repository settings and locate the option to manage webhooks.</li><li>Add a new webhook and provide the necessary details, including the URL that will trigger the deployment in Copado Essentials. Ensure that the webhook is configured to trigger on commits.</li><li>Save the webhook settings to add it to the repository.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0rcSLBmOUA6o_EWudXR2OA.png" /></figure><p>By enabling the webhook and configuring the deployment process in Copado Essentials, you can easily track and access all the deployment statistics. The webhook ensures that whenever a commit occurs in the repository, it triggers an automated deployment to the target organization.</p><p>Once the deployment is initiated through the webhook, Copado Essentials will perform the necessary deployment tasks, and you can monitor the deployment progress and view the deployment statistics. These statistics may include information such as deployment status, deployment duration, deployment errors (if any), and other relevant details.</p><p>By accessing the deployment stats in Copado Essentials, you can stay informed about the success and progress of your deployments, allowing you to track changes and ensure the smooth deployment of your application updates to the target organization.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=98be9fbe17" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating a Custom Field on Salesforce Objects]]></title>
            <link>https://medium.com/@saivarma844/creating-a-custom-field-on-salesforce-objects-2d515e6b0041?source=rss-2fe1c7583b60------2</link>
            <guid isPermaLink="false">https://medium.com/p/2d515e6b0041</guid>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[salesforce-development]]></category>
            <dc:creator><![CDATA[Sai Varma]]></dc:creator>
            <pubDate>Tue, 21 Mar 2023 08:55:21 GMT</pubDate>
            <atom:updated>2023-03-21T08:55:21.569Z</atom:updated>
            <content:encoded><![CDATA[<p>To create a Custom field on any Salesforce Object, we need to go to that Particular Object and there we need to Configure the field details. But in Some Cases we need to create same field on different Objects of Salesforce. Ex: While migrating data from Legacy systems, to store the legacy Unique Id we need to create a custom field on each Object. With out having above manual task on each Object, we can use below Python code to create a same field on required Objects.</p><p>In the below python code, we will use Salesforce api with Post method and api is <strong>‘tooling/sobjects/CustomField/’.</strong></p><p>Open Python file and import the Simple_Salesforce module</p><pre>from simple_salesforce import SalesforceLogin,Salesforce<br></pre><p>To connect to your Salesforce Org, Enter your Username, password, Security_token(if there for your org) and domain(test or login)</p><pre>session_id,instance=SalesforceLogin(username=&#39;&#39;, password=&#39;&#39;,Security_token=&#39;&#39;,domain=&#39;&#39;)<br>sf=Salesforce(instance=instance,session_id=session_id)<br>url = &#39;/services/data/v54.0/tooling/sobjects/CustomField&#39;</pre><p>Now enter your Object Api names where you want to create a particular field sperated by ‘ , ’.</p><pre>object_api_names = input(&quot;Enter Object Api names seperated by ,  &quot;).split(&quot;,&quot;)<br>object_api_names</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/743/1*cCQnMDLt3DxYEwB-t9W5gQ.png" /><figcaption>sample output</figcaption></figure><p>Enter field Api name and label which will be created for all input Objects.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/429/1*KyzWFkPa7DuXPBMtgU97aA.png" /><figcaption>sample input and output</figcaption></figure><p>Now, we need to set the field properties inside the metadata key of Payload Variable. To get more information about the properties, <a href="https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_customfield.htm">CustomField | Tooling API | Salesforce Developers</a> .</p><p>Once you set the Properties, call the restful api with Post Method. Based on the field creation it will show appropriate ouput.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/851/1*sn0ExOs8PRmBH7MqFDQq-w.png" /><figcaption>sample ouput</figcaption></figure><p>Since my Org has already Legacy_Id field in Contact and we can’t create custom field on Task, those are not created by the code. The other two got created and able to see inside the Salesforce org.</p><p>If you want the record ID of the created field try to print the result variable it will give Id and success message.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2d515e6b0041" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Salesforce Data Extraction Using Python]]></title>
            <link>https://medium.com/@saivarma844/salesforce-data-extraction-using-python-2fb9e88ca05b?source=rss-2fe1c7583b60------2</link>
            <guid isPermaLink="false">https://medium.com/p/2fb9e88ca05b</guid>
            <category><![CDATA[salesforce-data-migration]]></category>
            <dc:creator><![CDATA[Sai Varma]]></dc:creator>
            <pubDate>Mon, 06 Feb 2023 12:08:01 GMT</pubDate>
            <atom:updated>2023-02-06T12:08:01.638Z</atom:updated>
            <content:encoded><![CDATA[<p>Generally we use different kind of tools to Replicate data from Salesforce. In this blog, i will explain how we can extract Salesforce data into Excel/CSV file while giving Object name as an Input.</p><p>Open any Python complier and import below modules.</p><pre>import pandas as pd<br>from simple_salesforce import SalesforceLogin,SFType,Salesforce,bulk </pre><p>we will use Simple_Salesforce module to connect to Salesforce org and pandas for data transformation.</p><pre>session_id,instance=SalesforceLogin(username=&#39;&#39;, password=&#39;&#39;, security_token=&#39;&#39;,domain=&#39;&#39;) #domain = login for Prod and test for Sandbox<br>sf=Salesforce(instance=instance,session_id=session_id)</pre><pre>obj=input(&quot;Enter Object name : &quot;)<br><br>check =input(&quot;Press YES/Y if you want to enter a manual Soql Query ....&quot;)</pre><p>Enter Object name, which you want to Replicate. Type YES or Y if you want to enter manual soql query. If you press any other key the code will fetch all the fields from Object.</p><pre>if check.upper() == &quot;YES&quot; or check.upper() == &#39;Y&#39;:<br>    soql=input(&quot;Enter your Soql Query manually..&quot;)<br><br><br>else  :<br>    meta_soql=&quot;select Id, EntityDefinition.QualifiedApiName,MasterLabel, Name, QualifiedApiName, Label, Length,DataType, DurableId,IsAutonumber, IsCalculated, IsCreatable, IsCompound, IsDependentPicklist, IsNameField, IsUnique, IsUpdatable, RelationshipName from EntityParticle  where EntityDefinitionId=&#39;&quot;+obj+&quot;&#39;&quot;<br>    Entity_Particle=bulk.SFBulkType(&#39;EntityParticle&#39;,session=sf.bulk.session,headers=sf.bulk.headers,bulk_url=sf.bulk_url)<br>    meta_data=pd.DataFrame(Entity_Particle.query_all(meta_soql)).drop(&#39;attributes&#39;,axis=1)<br>    meta_data[&#39;EntityDefinition&#39;]=meta_data[&#39;EntityDefinition&#39;][0][&#39;QualifiedApiName&#39;]<br>    compund_list=list(meta_data[meta_data[&#39;IsCompound&#39;]==True][&#39;Name&#39;])<br>    object_sf=SFType(obj,session_id,instance)<br>    object_meta=object_sf.describe().get(&#39;fields&#39;)<br>    object_meta=pd.DataFrame(object_meta)<br>    metadata_list=object_meta[&#39;name&#39;].to_list()<br>    for i in compund_list:<br>        metadata_list.remove(i)<br><br>    soql=&#39;select &#39;+&#39;,&#39;.join(metadata_list)+&#39; from &#39;+obj</pre><pre>object_sf_bulk=bulk.SFBulkType(obj,session=sf.bulk.session,headers=sf.bulk.headers,bulk_url=sf.bulk_url)<br>target_data=pd.DataFrame(object_sf_bulk.query_all(soql)).drop(&#39;attributes&#39;,axis=1)<br>dc_col=target_data.columns.to_list()<br>dc={}<br>dele =   [i for i in dc_col if type(target_data[i][0])==type(dc)]<br>target_data=target_data.drop(dele,axis=1)<br>datetime_list = list(meta_data[meta_data[&#39;DataType&#39;]==&#39;datetime&#39;][&#39;Name&#39;])<br><br>for j in datetime_list: # to handle datetime values<br>        target_data[j]=target_data[j].apply(pd.to_datetime,errors=&#39;coerce&#39;,yearfirst=True,unit=&#39;ms&#39;,origin=&#39;unix&#39;)</pre><pre>target_data.to_csv(obj+&#39;.csv&#39;) # Load into CSV file<br>target_data.to_excel(obj+&#39;.xlsx&#39;) # Load into EXCEL file<br></pre><p>Now, a csv and Excel will be generated on your current working directory. The file has all the fields of the input Object.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2fb9e88ca05b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Artificial Intelligence :Complete Overview]]></title>
            <link>https://medium.com/@saivarma844/artificial-intelligence-complete-overview-29911c5ff201?source=rss-2fe1c7583b60------2</link>
            <guid isPermaLink="false">https://medium.com/p/29911c5ff201</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Sai Varma]]></dc:creator>
            <pubDate>Thu, 03 Mar 2022 10:46:44 GMT</pubDate>
            <atom:updated>2022-03-03T10:46:44.328Z</atom:updated>
            <content:encoded><![CDATA[<h3>Artificial Intelligence :Complete Overview</h3><p><strong>Artificial Intelligence, </strong>might be the most popular term using across the globe today. People benefit from Artificial Intelligence Everyday : music recommendation systems, Spam Detections, stock market price prediction and many more applications. Generally people will confuse between these three terms Artificial Intelligence(AI), Machine Learning (ML) and Deep Learning (DL).</p><p><strong>AI vs ML vs DL : </strong>AI,ML &amp; DL are three different things but which are having some relationship among them. Let’s understand each term.</p><blockquote><strong><em>i)Artificial Intelligence:</em> </strong>Artificial Intelligence is Science, it studies the way to build intelligent machines which can able to think, learn and work like humans. Artificial Intelligence is a broader view in compare of Machine Learning and Deep Learning.</blockquote><p><strong>ii)Machine Learning: </strong><em>Machine Learning is a subset of Artificial Intelligence that uses some statistical methods to train the machines such that they are able to predict with out any explicit programming.</em></p><p><strong>iii)Deep Learning: </strong><em>Deep Learning is a subset of Machine Learning, which uses same Machine Learning Concepts, but different algorithms. The fundamental unit of the Deep Learning is Perceptron, which is inspired by human neuron.</em></p><figure><img alt="Machine Learning is Subset of Aritificial Intelligence where as Deep Learning is a subset of Machine Learning." src="https://cdn-images-1.medium.com/max/832/1*bUparVimQtpaozmLrTLxxw.jpeg" /><figcaption>Relationship of Artificial Intelligence, Machine Learning and Deep Learning .</figcaption></figure><h3>Artificial Intelligence:</h3><p>Artificial Intelligence is classified into 3 Categories:</p><p><strong>Narrow AI:</strong> <em>Also Called as weak AI, it is only constrained to a particular task. Most of AI things using now are comes under Narrow AI. Eg: Self Driving Cars, AlphaGO game bot.</em></p><p><strong>General AI: </strong><em>This is the near future of AI where machine become human like. They learn and make decisions on their own with any human inputs. Experiments are going on, to make machine understanding the human emotions.</em></p><p><strong>Super Intelligence: </strong><em>Machines away head of humans. Robots like chitti(Character in Robo Movie) will be Considered as Super Intelligence AI. They can feel, understand and also good social skills.</em></p><p>Let’s deep dive into the topic, How machine will learn? How they predict and perform with such Accuracy?</p><h3>Machine Learning:</h3><p>Machine Learning (ML) is a subset of Artificial Intelligence, which deals with training machines, how to learn with out any human interference.</p><p>In simple terms, Machine Learning is all about creating an algorithm such that machine can learn from data and make predictions on the data with out any explicit programming.</p><h4>Key Components :</h4><p><strong>Dataset: </strong><em>Dataset is a collection of historical data, Machines can learn things through the datasets by understanding the hidden patterns in it. Data can be stored in any form .csv file, MySQL Database and so on.</em></p><p><strong>Features: </strong><em>Features are important components of dataset which are helpful for a machine to understand the data.</em></p><p><strong>Algorithm: </strong><em>It is procedure to understand the data so that machine can build a model.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h8rNluQZNmebPnOXOT9itw.jpeg" /><figcaption>Architecture of Supervised Machine Learning</figcaption></figure><h3>Types of Machine Learning</h3><p><strong>Supervised Machine Learning: </strong><em>In Supervised Learning, Algorithm is trained on input data that has a labeled output. Simply, Input data has output variable. Input data is divided into Training(70%) and Testing(30%). Training data is used for machine to understand the data and create a model. Testing data is used to validate the model Accuracy. Again, Input data splitting depends on algorithm used and the input data. Generally, we use more data for Training purpose in order to get a accurate model. This type of Learning used for Classification(predicting class of variable) and Regression(predicting output value)Problems. Some of Supervised Machine Learning Algorithms are Naïve Bayes, Support Vector Machine, Decision Tree, K-Nearest Neighbors, Logistic Regression, Linear Regression.</em></p><p><strong>Unsupervised Learning: </strong><em>In unsupervised Learning, Algorithm trained on input data with no labeled output. Machine will search for patterns independently and divide them into different categories. This type of learning is commonly used for clusters. Some of Unsupervised Machine Learning Algorithms are K-means clustering, Mean-Shift, Principal Component Analysis (PCA), Latent Dirichletian allocation (LDA).</em></p><p><strong>Semi-supervised Learning:</strong><em> In semi-supervised learning, input data is combination of both labeled and unlabeled samples. The algorithm will understand the labeled data and then draw patterns for the unlabeled data, finally predicts the output.</em></p><p><strong>Reinforcement Learning:</strong><em> In Reinforcement Learning, machine is placed in a learning environment, now machine is able to learn dynamically based on rewards and errors. some of Reinforcement Machine Learning Algorithms are Q-Learning, Genetic algorithm, SARSA.</em></p><h3><strong>Deep Learning</strong></h3><p>Deep Learning is a subset of Machine Learning algorithms which are build by inspiring human brain. The fundamental component of deep learning algorithm is Perceptron which resembles Neuron in human body. Deep Learning Algorithms use Complex multi-layered neural networks, where level of abstraction of non-linear transformations gradually increase with increase of hidden layers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*bP3_8hALnrqosO4DKtXJvw.png" /><figcaption>Simple Multi-Layered Perceptron</figcaption></figure><h4><strong>Machine Learning vs Deep Learning:</strong></h4><p><strong>Feature Extraction: </strong><em>Deep Learning automatically extracts the features by setting some boundaries to the layers. Particularly for Image Processing , the lower layer may identify the edges while higher layer identifies the concepts relevant to letters, figures or faces. But for Machine Learning we need to explicitly give features.</em></p><p><strong>Data Dependency :</strong><em>Deep Learning is data hungry needs huge amount of data to train. where Machine Learning can work with hundred and millions of data.</em></p><p><strong>Hardware Dependency:</strong><em> Deep Learning involves lot of computations since needed GPU’s instead of CPU which are sufficient for Machine Learning.</em></p><p><strong>Training Time: </strong><em>Deep learning takes more training time compared to machine Learning.</em></p><p><strong>Prediction Time: </strong><em>Deep Learning takes less Prediction time compared to Machine Learning since GPU’s are used.</em></p><h3><strong>Conclusion:</strong></h3><p><em>Artificial Intelligence has lot of potential to change the world of technology. While Creating a AI system that is as powerful as human is still a dream but it will possibly happen in very soon. Although now-a-days ML is beating human computations, pattern recognition and predictions, More Advancements will definitely come in near future. I Will try to explain more in-depth concepts of Machine Learning and Deep Learning in my future blogs.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=29911c5ff201" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>