Posts

Showing posts from January, 2024

Salesforce Streaming API: Edit & Delete Push Topics Using Apex

Image
Looking for Salesforce Training & HandsOn Projects? Trailblazer Profile  |  LinkedIn  |  Salesforce Blog  |  Facebook  |  Youtube Channel  |  WhatsApp Community Real-time updates are crucial in today's fast-paced environment, and Salesforce's Streaming API delivers with Push Topics. These topics enable instant notifications for record changes, but efficient management is key. This article delves into editing and deleting Push Topics through Apex code, offering programmatic control and automation within your Salesforce applications. Before diving in, a cautionary note: Edits and deletions have implications. Edited topics may affect existing subscriptions, and deleted topics permanently sever notification streams. Understand the impact before proceeding. Demo: Editing Push Topics via Apex Query the Push Topic: Start by identifying the desired topic using an SOQL query. Modify Properties: Access the PushTopic object and update its properties. DML Update: Execute updat

Salesforce Streaming API: Testing Push Topics Subscription Using Workbench

Image
Looking for Salesforce Training & HandsOn Projects? Trailblazer Profile  |  LinkedIn  |  Salesforce Blog  |  Facebook  |  Youtube Channel  |  WhatsApp Community This article walks you through testing Push Topic subscriptions using the Case object and Salesforce Workbench, empowering you to experience the power of instant notifications. Demo: Testing Push Topic Subscriptions Open a new tab in your browser and log in to your Salesforce org. Navigate to the Cases tab. Click New and create a new Case record. Make sure Case details fulfils  the Push Topic Query Criteria Switch back to the Workbench window. You should see a real-time notification with details of the newly created Case (as per your SOQL query). Push Topic Event Object The Pushtopic Event object represents a notification sent through your subscribed Push Topic channel whenever records matching your SOQL query undergo a create, update, delete, or undelete operation. Each event holds information about the data change, allo

Salesforce Streaming API: Subscribe Push Topics Using Workbench

Image
Looking for Salesforce Training & HandsOn Projects? Trailblazer Profile  |  LinkedIn  |  Salesforce Blog  |  Facebook  |  Youtube Channel  |  WhatsApp Community The Salesforce Streaming API lets you receive real-time notifications about changes in your Salesforce data. One way to leverage this is through Push Topics, which allow you to subscribe to specific events and receive them as JSON messages. This article walks you through the process of subscribing to a Push Topic in Salesforce using Salesforce Workbench, a versatile developer tool. Demo: Subscribing To a Push Topic Launch Salesforce Workbench: Head to https://workbench.developerforce.com/ and select your preferred Salesforce environment (Production or Sandbox). Login: Enter your Salesforce login credentials and click "Login with Salesforce." Navigate to Streaming Push Topics: Click on the "Queries" tab, then select "Streaming Push Topics" from the dropdown menu. Choose Your Push Topi

Salesforce Streaming API: Create Push Topics

Image
Looking for Salesforce Training & HandsOn Projects? Trailblazer Profile  |  LinkedIn  |  Salesforce Blog  |  Facebook  |  Youtube Channel  |  WhatsApp Community Push Topic is a publish-subscribe mechanism within the Salesforce Streaming API to receive real-time notifications about changes to data in your org. You define a specific set of criteria through a SOQL query, and whenever matching records are created, updated, deleted, or undeleted, Salesforce pushes notifications to subscribed clients instantly. Push Topic – Execution Workflow The client subscribes to a PushTopic with its identifying name (/topic/<PushTopic_Name>). Salesforce evaluates record changes against all active PushTopics. If a change matches a PushTopic's criteria, a notification is generated containing record details and sent to subscribed clients. The client receives the notification and can take appropriate actions based on the data change. While Salesforce Push Topics are a legacy featur

Salesforce Bulk API: Query

Image
Looking for Salesforce Training & HandsOn Projects? Trailblazer Profile  |  LinkedIn  |  Salesforce Blog  |  Facebook  |  Youtube Channel  |  WhatsApp Community   Salesforce Bulk API Query is a powerful asynchronous tool designed to efficiently retrieve large datasets, exceeding the limitations of standard API requests. But its magic lies beneath the surface, in the intricate technical details that drive its performance and flexibility. To refresh your memory on fundamental Bulk API concepts, I encourage you to revisit my prior articles on Bulk API: Salesforce Bulk API: Create The Job Salesforce Bulk API: Add Batch To Job Salesforce Bulk API: Monitoring & Debugging of the Job Salesforce Bulk API: Getting Job Status Salesforce Bulk API: Closing The Job Salesforce Bulk API: Apply Schema Transformation Bulk API Query streamlines large-scale data retrieval by employing a queuing system that decouples query execution from the API call, allowing you to submit jobs, monitor progress

Salesforce Bulk API: Apply Schema Transformation

Image
Looking for Salesforce Training & HandsOn Projects? Trailblazer Profile  |  LinkedIn  |  Salesforce Blog  |  Facebook  |  Youtube Channel  |  WhatsApp Community   The Salesforce Bulk API is a powerhouse for ingesting and exporting massive datasets, but data rarely matches your Salesforce schema perfectly. This is where schema transformation shines, bridging the gap between external data and your Salesforce objects. This article delves into the intricacies of Bulk API schema transformation, equipping you with the knowledge to achieve clean, efficient data migrations. To refresh your memory on fundamental Bulk API concepts, I encourage you to revisit my prior articles on Bulk API: Salesforce Bulk API: Create The Job Salesforce Bulk API: Add Batch To Job Salesforce Bulk API: Monitoring & Debugging of the Job Salesforce Bulk API: Getting Job Status Salesforce Bulk API: Closing The Job Compared to standard Salesforce import tools, the Bulk API reigns supreme for large-