<?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 Swati Gupta on Medium]]></title>
        <description><![CDATA[Stories by Swati Gupta on Medium]]></description>
        <link>https://medium.com/@swaticodes_?source=rss-3e2a927c5ca0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*oUOYbsHBxKiHM68mcmKFvw.jpeg</url>
            <title>Stories by Swati Gupta on Medium</title>
            <link>https://medium.com/@swaticodes_?source=rss-3e2a927c5ca0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 22:24:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@swaticodes_/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[Ladakh: A Journey to the Land Where Mountains Touch the Sky]]></title>
            <link>https://medium.com/@swaticodes_/ladakh-a-journey-to-the-land-where-mountains-touch-the-sky-bfb82d749f50?source=rss-3e2a927c5ca0------2</link>
            <guid isPermaLink="false">https://medium.com/p/bfb82d749f50</guid>
            <category><![CDATA[mountains]]></category>
            <category><![CDATA[travel]]></category>
            <category><![CDATA[travel-writing]]></category>
            <category><![CDATA[travel-memoirs]]></category>
            <category><![CDATA[ladakh]]></category>
            <dc:creator><![CDATA[Swati Gupta]]></dc:creator>
            <pubDate>Sun, 05 Jul 2026 13:51:38 GMT</pubDate>
            <atom:updated>2026-07-05T13:51:38.964Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0OMuo9O-jAC1wVbXaXnhZg.jpeg" /></figure><p>Some places don’t just become destinations, they become memories that stay with you forever. Ladakh was one of those places for me.</p><p>In September 2021, I finally ticked off one of my biggest travel dreams. Surrounded by towering mountains, crystal-clear lakes, ancient monasteries, and endless roads, every day in Ladakh felt like stepping into a postcard.</p><p>If you’re planning a trip to Ladakh or simply love reading about breathtaking destinations, here’s a glimpse into my unforgettable journey.</p><h3>Day 1: Arriving in Leh — The Gateway to Ladakh</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y83mbYuJ-P2Bs6_LMF-3eQ.jpeg" /></figure><p>Our adventure began in Leh, the capital of Ladakh. As soon as we landed, the first thing we noticed was the crisp mountain air and the dramatic landscapes surrounding the airport.</p><p>Since Leh sits at an altitude of over 11,000 feet, we spent the first day acclimatizing. Taking it easy is extremely important to avoid altitude sickness.</p><p>The local markets, traditional Ladakhi architecture, colorful prayer flags, and peaceful atmosphere made Leh the perfect introduction to this magical region.</p><h3>Shanti Stupa — Peace Above the Clouds</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ev8BOeE1oU6BUqSfc4N27A.jpeg" /></figure><p>One of the first attractions we visited was the iconic Shanti Stupa.</p><p>Perched on a hill overlooking Leh, this beautiful white stupa offers panoramic views of the entire city and the surrounding Himalayan ranges. Watching the sunset from here was one of the most peaceful moments of the trip.</p><p>The silence, fresh air, and golden light reflecting off the mountains created a memory I’ll never forget.</p><h3>Khardung La — Conquering One of the World’s Highest Motorable Roads</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dJcRyF6VF3p-9hmw5fJ7QA.jpeg" /></figure><p>No Ladakh trip feels complete without crossing Khardung La.</p><p>Driving through winding mountain roads, surrounded by snow-covered peaks, was both thrilling and surreal. Standing at such an incredible altitude made us appreciate the power and beauty of nature.</p><p>The colorful prayer flags fluttering in the cold wind and the excitement of reaching the summit made this a bucket-list experience.</p><h3>Nubra Valley — A Desert in the Mountains</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e0opsuTmTqWt-6uEIno0YQ.png" /></figure><p>Descending from Khardung La, the landscape transformed dramatically.</p><p>Nubra Valley surprised us with its sand dunes, lush villages, and dramatic mountains all in one place.</p><p>We had planned to experience the famous Bactrian camel ride but it was closed on the day we visited. Rather than being disappointed, we decided to try an ATV ride on the sand dunes instead. Looking back, it was one of the highlights of our Ladakh journey. Riding through the cold desert with the majestic Himalayas surrounding us was an adrenaline rush unlike any other and made our visit to Nubra Valley truly unforgettable.</p><p>The contrast between the cold desert and the towering mountains made Nubra unlike anywhere else we had ever visited.</p><h3>Turtuk Village — A Hidden Gem Near the Border</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FHccovUKdMhypc4iLJM1Bg.png" /></figure><p>Turtuk turned out to be one of the most memorable places of our journey.</p><p>Located close to the India-Pakistan border, this picturesque village offers a completely different cultural experience from the rest of Ladakh.</p><p>Walking through narrow lanes filled with apricot trees, traditional Balti homes, wooden bridges, and smiling locals felt like stepping into another world.</p><p>Its peaceful atmosphere and untouched beauty made Turtuk one of my favorite destinations in Ladakh.</p><h3>Pangong Lake — The Lake That Changes Colors</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fVt5xbsRFJyh1C4BpuoiJQ.jpeg" /></figure><p>No photograph can truly capture the beauty of Pangong Lake. As the sunlight changed throughout the day, the lake transformed from deep blue to turquoise and even shades of green. The contrast of the crystal-clear water against the barren mountains created one of the most breathtaking landscapes I have ever seen.</p><p>But the real magic began after sunset. We woke up in the middle of the night to witness one of the clearest skies imaginable. With almost no light pollution, thousands of stars sparkled above us. One of our fellow travelers had brought a high-quality DSLR camera, giving us the chance to observe constellations up close. Standing beside Pangong Lake under a sky full of stars was an unforgettable experience — one that no photograph could ever truly capture.</p><h3>Tso Moriri — Serenity at Its Best</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oJRk_0zj3ofv8Tc_AWn7qw.jpeg" /></figure><p>While Pangong often steals the spotlight, Tso Moriri felt even more peaceful.</p><p>Far less crowded, this pristine high-altitude lake offered complete silence, interrupted only by the gentle breeze and occasional bird calls.</p><p>The reflections of the mountains on the calm water created a magical scene that made us pause and simply appreciate nature.</p><p>If you’re looking for tranquility, Tso Moriri is a must-visit.</p><h3>Lessons from Ladakh</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6GTpD8v29QknAZcoMpGiDw.png" /></figure><p>Ladakh taught me that beauty doesn’t always come with luxury.</p><p>Sometimes it’s found in endless roads, star-filled skies, simple local meals, friendly strangers, and moments of complete silence.</p><p>It reminded me to slow down, breathe deeply and appreciate the incredible diversity our world has to offer.</p><h3>Travel Tips</h3><ul><li>Visit between June and September for pleasant weather and open roads.</li><li>Spend your first day acclimatizing in Leh.</li><li>Carry warm clothing, even during summer.</li><li>Stay hydrated and avoid strenuous activities on the first day.</li><li>Respect local culture and help keep Ladakh clean.</li><li>Carry cash, as network connectivity and ATMs may be limited in remote areas.</li></ul><h3>Final Thoughts</h3><p>Looking back, my September 2021 Ladakh trip wasn’t just a vacation — it was an experience that changed the way I look at travel.</p><p>From the peaceful Shanti Stupa and the thrilling drive across Khardung La to the beauty of Nubra Valley, the serenity of Tso Moriri, the magical Pangong Lake, and the charming village of Turtuk, every destination had its own story.</p><p>Ladakh isn’t just a place you visit.</p><p>It’s a place you feel.</p><p>And once you’ve experienced it, a part of your heart always remains in the mountains ❤</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bfb82d749f50" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[  :       ]]></title>
            <link>https://medium.com/@swaticodes_/-164e34cc3649?source=rss-3e2a927c5ca0------2</link>
            <guid isPermaLink="false">https://medium.com/p/164e34cc3649</guid>
            <category><![CDATA[kindness]]></category>
            <category><![CDATA[humour]]></category>
            <category><![CDATA[laughter]]></category>
            <dc:creator><![CDATA[Swati Gupta]]></dc:creator>
            <pubDate>Sat, 24 Aug 2024 10:57:38 GMT</pubDate>
            <atom:updated>2024-08-27T03:55:38.622Z</atom:updated>
            <content:encoded><![CDATA[<p>Ever been in a room where everyone’s laughing, but something feels… off? 🤔<br>Let’s chat about humor — our everyday superpower. ⚡️ It brightens days, breaks ice, and defuses tension. But like any superpower, it comes with responsibility. 🦸‍♀️🦸‍♂️</p><p>Think of jokes as spices in a meal. The right amount? Delicious. 😋 Too much or the wrong kind? Your taste buds scream for water! 💦</p><p>Try this: The Laughter Test. 🧪 Before cracking that joke, ask yourself:<br>1. Will people laugh with me, or at someone else? 🤝 vs 👉<br>2. If I were the joke’s subject, would I be laughing too? 🤔<br>3. Does this unite people or divide them? ⭕️ vs ➗</p><p>The best humor is like a warm campfire on a chilly night. 🔥 Everyone’s welcome to gather around and feel that cozy glow of togetherness. 🌟</p><p>Here’s the magic: when we laugh kindly, we often laugh more, not less. It’s like unlocking a new level of fun where everyone plays. 🎮🆙</p><p>Ready to raise the bar on funny? Share your favorite Laughter Test-approved joke in the comments. Let’s kickstart a kindness comedy revolution! 😄✨</p><p>Remember: In a world where you can be anything, be the reason someone smiles today. 😊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=164e34cc3649" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Integration in Salesforce: Connecting Your Business Ecosystem]]></title>
            <link>https://medium.com/@swaticodes_/integration-in-salesforce-connecting-your-business-ecosystem-fa7fe86e8551?source=rss-3e2a927c5ca0------2</link>
            <guid isPermaLink="false">https://medium.com/p/fa7fe86e8551</guid>
            <category><![CDATA[salesforce-development]]></category>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[salesforce-integration]]></category>
            <category><![CDATA[api-integration]]></category>
            <dc:creator><![CDATA[Swati Gupta]]></dc:creator>
            <pubDate>Sun, 02 Jun 2024 12:35:29 GMT</pubDate>
            <atom:updated>2024-06-02T12:35:29.470Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s fast-paced business environment, having a seamless flow of information across various systems is crucial. Salesforce, one of the leading Customer Relationship Management (CRM) platforms, offers powerful integration capabilities that allow businesses to connect diverse applications and streamline their operations. This blog explores the importance of integration in Salesforce, the common integration methods, and best practices for implementing these integrations.</p><h4>Why Integration is Vital in Salesforce</h4><ol><li><strong>Unified Data View:</strong> Integration enables the consolidation of data from multiple sources, providing a single, comprehensive view of customer information. This unified view enhances decision-making and improves customer service.</li></ol><p>2. <strong>Improved Efficiency:</strong> Automating data flow between systems reduces the need for manual data entry, minimizing errors and saving time. This efficiency leads to increased productivity and cost savings.</p><p>3. <strong>Enhanced Collaboration: </strong>Integration facilitates better collaboration across departments by ensuring that all teams have access to the same up-to-date information, fostering a more cohesive work environment.</p><p>4.<strong> Scalability:</strong> As businesses grow, their IT ecosystems become more complex. Salesforce integrations allow companies to scale their operations smoothly by connecting new applications and systems seamlessly.</p><p><strong>Common Salesforce Integration Methods</strong></p><ol><li><strong>API Integrations:</strong> Salesforce provides robust APIs (Application Programming Interfaces) that allow for the exchange of data between Salesforce and other systems. The REST API and SOAP API are commonly used for real-time integration needs.</li></ol><p>2. <strong>Middleware Platforms:</strong> Tools like MuleSoft, Dell Boomi, and Jitterbit act as intermediaries, connecting Salesforce with various systems without extensive custom coding. These platforms offer pre-built connectors and templates for quicker integration.</p><p>3. <strong>Data Integration Tools:</strong> Data loader tools such as Salesforce Data Loader or third-party tools like Informatica and Talend are used for batch processing, handling large volumes of data transfers efficiently.</p><p>4.<strong>AppExchange Solutions</strong>: Salesforce’s AppExchange marketplace offers numerous pre-built integration apps that can be easily installed and configured to connect Salesforce with other popular applications.</p><p>5. <strong>Streaming API: </strong>Salesforce’s Streaming API is designed for real-time event notifications. It allows you to push notifications to clients when changes are made to Salesforce data, making it ideal for applications that need immediate updates.</p><p>6. <strong>Salesforce Connect:</strong> Salesforce Connect allows you to access and integrate external data in real-time without storing it in Salesforce. This is useful for integrating large datasets from external systems like SAP, Oracle, or Microsoft SharePoint, enabling seamless access and updates directly within Salesforce.</p><p>7. <strong>External Services:</strong> This feature allows you to connect Salesforce with external REST-based web services using a point-and-click interface. By defining service schemas in Salesforce and using them in flow, you can easily integrate external services into your business processes without writing extensive code.</p><p>8.<strong> Outbound Messages:</strong> Outbound messages send SOAP messages to external systems when triggered by workflow rules or approval processes in Salesforce. This method is effective for pushing real-time data changes from Salesforce to other systems.</p><h4>Best Practices for Salesforce Integration</h4><ol><li><strong>Define Clear Objectives:</strong> Before starting any integration project, it’s essential to have a clear understanding of the business objectives and the specific problems the integration aims to solve.</li></ol><p>2. <strong>Plan and Design:</strong> A well-thought-out integration plan and design can prevent potential issues. Consider data flow, error handling, and security during the planning phase.</p><p>3. <strong>Data Mapping and Transformation:</strong> Ensure that data formats between systems are compatible. Proper data mapping and transformation rules need to be established to maintain data integrity.</p><p>4.<strong> Security and Compliance</strong>: Protect sensitive data by implementing robust security measures such as encryption and authentication. Ensure that the integration complies with relevant data protection regulations.</p><p>5. <strong>Test Thoroughly:</strong> Rigorous testing is crucial to identify and fix issues before the integration goes live. Conduct unit tests, system tests, and user acceptance tests (UAT) to ensure the integration meets all requirements.</p><p>6. <strong>Monitor and Maintain: </strong>Post-deployment, continuously monitor the integration for performance issues and make necessary adjustments. Regular maintenance ensures the integration remains robust and up-to-date.</p><h4>Real-World Examples of Salesforce Integration</h4><ol><li><strong>Marketing Automation</strong>: Integrating Salesforce with marketing automation platforms like HubSpot or Marketo allows businesses to align their sales and marketing efforts, providing a cohesive strategy for lead nurturing and conversion.</li></ol><p>2. <strong>ERP Systems</strong>: Connecting Salesforce with ERP systems like SAP or Oracle ensures seamless data flow between sales and finance departments, improving order management, inventory control, and financial reporting.</p><p>3. <strong>Customer Support</strong>: Integration with customer support tools like Zendesk or ServiceNow helps in creating a unified support experience. Customer data from Salesforce can be accessed by support teams, enabling them to provide personalized and efficient service.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fa7fe86e8551" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Batch Apex in Salesforce]]></title>
            <link>https://medium.com/@swaticodes_/batch-apex-in-salesforce-ed4704ac3f96?source=rss-3e2a927c5ca0------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed4704ac3f96</guid>
            <category><![CDATA[salesforce-apex]]></category>
            <category><![CDATA[batch-apex]]></category>
            <category><![CDATA[batch-processing]]></category>
            <dc:creator><![CDATA[Swati Gupta]]></dc:creator>
            <pubDate>Mon, 29 Jan 2024 10:36:03 GMT</pubDate>
            <atom:updated>2024-01-29T10:37:51.152Z</atom:updated>
            <content:encoded><![CDATA[<p>Batch class is used to process a large number of records in chunks asynchronously.</p><p>It allows to break down a large set of data into smaller sets and process them in separate transaction.</p><p>To write Batch class, you just need to implement <strong>Database.Batchable</strong> interface.</p><p>Database.Batchable comes with 3 methods: Start, Execute and finish.</p><p><strong>Start Method:</strong></p><p>The start method returns a Database.QueryLocator object that defines the set of records to be processed. A maximum of 50 million records can be returned in the Database. QueryLocator object. If more than 50 million records are returned, the batch job is immediately terminated and marked as Failed.</p><ul><li>The query you provide in the start method dictates the overall set of records to be processed by the batch job.</li></ul><p><strong>Execute Method:</strong></p><ul><li>The execute method processes a batch of records at a time. The platform dynamically determines the batch size based on factors such as the number of records returned by the query and the complexity of the processing logic.</li></ul><p><strong>Finish Method:</strong></p><p>The finish method is used for any post-processing steps that need to be performed after all batches have been executed. This method is called once after all batches are processed, providing an opportunity to perform cleanup, logging, or any other finalization tasks.</p><pre>global class MyBatchClass implements Database.Batchable&lt;SObject&gt; {<br><br>    global Database.QueryLocator start(Database.BatchableContext bc) {<br>        // Return a query locator for the records to be processed<br>        return Database.getQueryLocator(&#39;SELECT Id, Name FROM Account&#39;);<br>    }<br><br>    global void execute(Database.BatchableContext bc, List&lt;Account&gt; scope) {<br>        // Process each batch of records<br>        for (Account acc : scope) {<br>            // Your processing logic goes here<br>            acc.Name = &#39;Processed - &#39; + acc.Name;<br>        }<br>    }<br><br>    global void finish(Database.BatchableContext bc) {<br>        // Perform any post-processing steps<br>    }<br>}</pre><p><strong>Applications</strong>-Data Cleansing, Data Migration, Process large set of data.</p><p><strong><em>Can we configure Batch size?</em></strong></p><p>Yes, you can specify the batch size when calling the batch via:</p><p><a href="https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_database.htm#apex_System_Database_executeBatch_2">Database.executeBatch(Object batchClassObject, Integer scope)</a>.</p><p>The scope integer is how many records will be passed to your execute() method.</p><p>The default batch size is 200 and the maximum batch size is 2000.</p><p><em>You can set batch size like below.</em></p><p><strong>Database.executeBatch(new RunThisBatch(), 500);</strong></p><p>500 is the batch size in the above syntax.</p><p>Start method is called only once.</p><p>Execute method is called depends on the batch size and number of records. Let say, 1000 records, then excute method called 2 times.</p><p>Finish method called only once, after the excute finished.</p><h3><strong>Notes:</strong></h3><ol><li>Up to five queued or active batch jobs are allowed for Apex.</li><li>If no size is specified with the optional scope parameter of Database.executeBatch, Salesforce chunks the records returned by the start method into batches of 200, and then passes each batch to the execute method.Apex governor limits are reset for each execution of execute.</li><li>The start, execute, and finish methods can implement up to 10 callouts each</li><li>The maximum number of batch executions is 250,000 per 24 hours.</li><li>To do the callout in batch Apex, use Database.AllowsCallouts in the class definition.</li><li><strong>Batch Apex is stateless by default</strong>. If a batch process needs information that is shared across transactions, then you need to implement a Stateful interface. If you specify Database.Stateful in the class definition, you can maintain state across these transactions. For example, if your batch job is executing one logic and you need to send an email at end of the batch job with all successful records and failed records. For that, you can use Database.Stateful in the class definition.</li><li>We can schedule a batch job with scheduler class. <strong>Schedulable Class</strong> is a global class that implements the Schedulable interface. That includes one execute method. Here is example of a scheduler class:</li></ol><pre>global class AccountUpdateBatchJobscheduled implements Schedulable {<br>    global void execute(SchedulableContext sc) {<br>        MyBatchClass b = new MyBatchClass(); <br>        database.executebatch(b);<br>    }<br>}</pre><p>There are two option we have to schedule the scheduler classes.<br>1) By System Scheduler.<br>2) By Developer console as shown below:</p><pre>AccountUpdateBatchJobscheduled m = new AccountUpdateBatchJobscheduled();<br>String sch = &#39;20 30 8 10 2 ?&#39;;<br>String jobID = system.schedule(&#39;Merge Job&#39;, sch, m);</pre><h3>Test Class for Batch Job</h3><pre>@isTest<br>private class MyBatchClassTest {<br><br>    @isTest<br>    static void testBatchJob() {<br>        // Create test data<br>        List&lt;Account&gt; testAccounts = new List&lt;Account&gt;();<br>        for (Integer i = 0; i &lt; 200; i++) {<br>            testAccounts.add(new Account(Name = &#39;Test Account &#39; + i));<br>        }<br>        insert testAccounts;<br><br>        // Start the batch job<br>        Test.startTest();<br>        MyBatchClass batchJob = new MyBatchClass();<br>        Database.executeBatch(batchJob);<br>        Test.stopTest();<br><br>        // Verify the results<br>        List&lt;Account&gt; updatedAccounts = [SELECT Id, Name FROM Account WHERE Name LIKE &#39;Processed%&#39;];<br>        System.assertEquals(testAccounts.size(), updatedAccounts.size(), &#39;Number of records updated should be equal to the number of test records&#39;);<br><br>        for (Account acc : updatedAccounts) {<br>            System.assert(acc.Name.startsWith(&#39;Processed - &#39;), &#39;Account names should be updated&#39;);<br>        }<br>    }<br>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed4704ac3f96" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Salesforce Apex]]></title>
            <link>https://medium.com/@swaticodes_/salesforce-apex-8497a060b5c2?source=rss-3e2a927c5ca0------2</link>
            <guid isPermaLink="false">https://medium.com/p/8497a060b5c2</guid>
            <category><![CDATA[salesforce-apex]]></category>
            <category><![CDATA[apex]]></category>
            <category><![CDATA[salesforce-development]]></category>
            <category><![CDATA[salesforce-lightning]]></category>
            <category><![CDATA[salesforce]]></category>
            <dc:creator><![CDATA[Swati Gupta]]></dc:creator>
            <pubDate>Sun, 26 Feb 2023 14:02:46 GMT</pubDate>
            <atom:updated>2023-02-26T14:02:46.763Z</atom:updated>
            <content:encoded><![CDATA[<h3>Apex</h3><ul><li>Apex is a proprietary language of Salesforce. It is similar in syntax with Java. It is used to automate backend logic into platform.</li><li>It is strongly typed language and is only suited for Salesforce customizations.</li><li>As compared to Java, Apex doesn’t have compiler or IDE in our system. It runs on cloud platform and have dedicated IDE popularly known as Developer Console. The Apex code runs on Lightning platform servers.</li><li>Apex is highly integrated which means it has built in support for DML operations like INSERT, UPDATE, DELETE and also DML Exception handling. We can easily query the data from Salesforce database using SOQL and SOSL query language tools.</li><li>Apex runs in a multitenant environment so that no one can monopolize the resources. All the apex code should follow the governor limits imposed by Salesforce else it will generate error.</li><li>With every release in salesforce, Apex is upgraded. We don’t have to upgrade it manually.</li><li>Apex provides built-in support for unit test creation and execution to validate logic in your code, including test results that indicate how much code is covered, and which parts of your code can be more efficient.</li><li>Apex helps the developer to write business logics to almost anything supported by Salesforce like button clicks, record updates, creating web services and creating Controllers for lightning components or Visualforce pages.</li><li>Apex code can be initiated by Web service requests and defining triggers on objects or using Lightning components.</li><li>Apex code can be saved against different versions of the API. API versions are used to introduce new features as well as deprecate old ones. It’s a way to decide what collection of functionality you want to use.</li><li>Apex triggers are used to provide an automated response to database events(insert, update, delete) and there is an apex code that run behinds it.</li><li>There are 2 types of Apex :</li></ul><p>a)Synchronous Apex: Synchronous Apex is a way of writing the code that it is executed in one single go.</p><p>In a Synchronous call, the thread will wait until it completes its tasks before proceeding to next. In a Synchronous call, the code runs in single thread. Ex-Triggers, Controller Extension, Custom Controller.</p><p>b) Asynchronous Apex: If you want to execute code in separate threads, you can use Async Apex. In an Asynchronous call, the thread will not wait until it completes its tasks before proceeding to next. Instead it proceeds to next leaving it run in separate thread. In an Asynchronous call, the code runs in multiple threads which helps to do many tasks as background jobs. Ex-Future methods, Queueable, Batch etc.</p><p>Here, we will have a separate execution context with higher limits. You could do all updates in the trigger itself, and call a future method for everything else that doesn’t need to be done immediately. Also, you need to take care of error handling, because you cannot make error messages visible on the UI.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8497a060b5c2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Visualforce Pages]]></title>
            <link>https://medium.com/@swaticodes_/visualforce-pages-dedcd995849c?source=rss-3e2a927c5ca0------2</link>
            <guid isPermaLink="false">https://medium.com/p/dedcd995849c</guid>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[visualforce]]></category>
            <category><![CDATA[salesforce-visualforce]]></category>
            <dc:creator><![CDATA[Swati Gupta]]></dc:creator>
            <pubDate>Sun, 26 Feb 2023 13:25:44 GMT</pubDate>
            <atom:updated>2023-02-26T13:29:51.699Z</atom:updated>
            <content:encoded><![CDATA[<ul><li>Visualforce is a framework used by developers to build custom UI or custom pages on Salesforce platform. Although we have new tools in the market but Visualforce is still supported by Salesforce.</li><li>Salesforce Classic is built using Visualforce pages.</li><li>Visualforce creates front-end design pages using XML-like syntax, and Apex is used to execute the business logic in the backend.</li><li>It is built on native force.com and lightning platform.</li><li>Whatever is not possible with standard functionalities using declarative tools is built using VF.</li><li>Major application is to override standard functionalities like standard buttons, tabs and pages or to add extra functionalities.</li><li>Pages can be referenced and invoked via a unique URL.</li><li>Visualforce follows the MVC architecture where View is the Pages, layout and Apex being the Controller and Model being the sObjects in Salesforce.</li><li>All Visualforce pages will have extension of .vfp .To create a VF page, go to Developer Console-&gt;New-&gt;Page</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/698/0*LLqZJY663AjBa0pb.png" /><figcaption>PC: Trailhead</figcaption></figure><ul><li>Visualforce pages use the same expression language as formulas — that is, anything inside {! } is evaluated as an expression that can access values from records that are currently in context. For example, you can display the current user’s first name by adding the {!$User.FirstName} merge field to a page.</li></ul><p><em>&lt;apex:page&gt;<br> Hello {!$User.FirstName}!<br> s&lt;/apex:page&gt;</em></p><ul><li>VF consists of: VF markup and Visualforce controllers.</li></ul><p>a)VF markup — tag-based markup language similar to HTML. The markup defines the user interface components that are included on the page, and the way they appear. There are number of standard user interface component like Pageblock, pageblocksection, commandbutton to build the structure of page. Every VF page starts with &lt;apex:page&gt; and ends with &lt;/apex:page&gt; tag.</p><p>b)Visualforce controllers — When a user interact with any of the component on the VF page, and wants to perform any server side database operation like save or fetch the data and display on UI we use Controllers. They provide business logic to VF pages and are written using Apex.</p><p>There are 3 types of controllers: Standard, Custom and Extension.</p><p><strong>Standard controllers:</strong> Standard controllers are the default Controller’s provided by Force.com. They will have same logic and functionality using standard visualforce pages. No Apex code is required in Standard Controllers.</p><p><strong>Syntax :- &lt;apex:page standardcontroller =“Account”&gt;&lt;/apex:page&gt;</strong></p><p><strong>Custom controller</strong> : When a developer needs different logic and functionality he/she may write their own Apex controller class. Custom controller’s will not provide default functions like standard controllers. Custom apex code must be written for custom controllers.</p><p><strong>Syntax : &lt;apex : page controller = “Mycontroller”&gt;&lt;/apex:page&gt;</strong></p><p><strong>Extension controllers :</strong>If we want to use both custom controller functionality and standard controller functionality we use extension controllers. Extension Controllers begins with Standard controller and extended or overridden with custom controller with custom apex code.</p><p><strong>Syntax :- &lt;apex:page standardcontroller = “Account” extensions = “Testclass1, Testclass2?&gt;&lt;/apex:page&gt;</strong></p><p><strong>Architecture:</strong></p><p>The moment user save the page in browser it goes to the App server where it is compiled. After it is compiled successfully, it is saved to the metadata repository and is rendered as HTML to browser. Any errors in page will display in the browser to the user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iwSY57e2ABSit4m2I6ogMA.png" /><figcaption>Visualforce Architecture</figcaption></figure><p>References:</p><p><a href="https://www.salesforcetutorial.com/different-visualforce-controllers/">https://www.salesforcetutorial.com/different-visualforce-controllers/</a></p><p><a href="https://help.salesforce.com/s/articleView?language=en_US&amp;id=sf.pages_merge_fields.htm&amp;type=5">https://help.salesforce.com/s/articleView?language=en_US&amp;id=sf.pages_merge_fields.htm&amp;type=5</a></p><p><a href="https://trailhead.salesforce.com/content/learn/modules/visualforce_fundamentals/visualforce_creating_pages#:~:text=Visualforce%20pages%20are%20basic%20building,on%20a%20traditional%20web%20server">https://trailhead.salesforce.com/content/learn/modules/visualforce_fundamentals/visualforce_creating_pages#:~:text=Visualforce%20pages%20are%20basic%20building,on%20a%20traditional%20web%20server</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dedcd995849c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A look into Web Components and LWC]]></title>
            <link>https://medium.com/@swaticodes_/a-look-into-web-components-and-lwc-19e0125b97a5?source=rss-3e2a927c5ca0------2</link>
            <guid isPermaLink="false">https://medium.com/p/19e0125b97a5</guid>
            <category><![CDATA[lightning-web-component]]></category>
            <category><![CDATA[salesforce-lightning]]></category>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[salesforce-development]]></category>
            <category><![CDATA[web-components]]></category>
            <dc:creator><![CDATA[Swati Gupta]]></dc:creator>
            <pubDate>Sat, 26 Feb 2022 17:07:57 GMT</pubDate>
            <atom:updated>2022-02-27T09:24:58.811Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*ygeQLnFRf5LQxWdi5DD5Mg.png" /></figure><p>Web standards are the foundation of today’s browsers. The technologies we employ to develop websites are known as Web standards. Web standards are created by standards bodies, which are organizations that bring together groups of people from various companies to discuss how the technologies should work in the best possible way to meet all of their use cases. Examples are ECMA, W3C.</p><p>HTTP, HTML, CSS, JS, and different libraries and frameworks built on top of JavaScript are examples of front-end technology. Web components is one such technology that is gaining traction, and companies such as Github and Salesforce (Lightning Web Components) have already begun to use them. When compared to frontend frameworks, they provide better scalability, portability, and interoperability. A web component can be used anywhere across libraries and frameworks. It can be used in React, Angular, or Vue, etc., as it is included in the HTML specification and is native. But a React component can only be reused in the React application.</p><p>All browsers are compatible with Web Components. Web Components enable you to construct reusable custom elements that are functionally isolated from the rest of your code and use them in your web applications.</p><p>As mentioned in <a href="https://developer.mozilla.org/en-US/docs/Web/Web_Components">MDN Web Docs</a>, Web components consists of three main technologies:</p><p><strong><em>Custom elements</em></strong><em>: A set of JavaScript APIs that allow you to define custom elements and their behavior, which can then be used as desired in your user interface.</em></p><p><strong><em>Shadow DOM</em></strong><em>: A set of JavaScript APIs for attaching an encapsulated “shadow” DOM tree to an element — which is rendered separately from the main document DOM — and controlling associated functionality. In this way, you can keep an element’s features private, so they can be scripted and styled without the fear of collision with other parts of the document.</em></p><p><strong><em>HTML templates</em></strong><em>: The </em><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template"><em>&lt;template&gt;</em></a><em> and </em><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/slot"><em>&lt;slot&gt;</em></a><em> elements enable you to write markup templates that are not displayed in the rendered page. These can then be reused multiple times as the basis of a custom element’s structure.</em></p><p><strong>Why Lightning Web Components (LWC)?</strong></p><p>• LWC makes use of fundamental Web Components and delivers just what’s needed to run well in Salesforce-supported browsers.</p><p>• LWC is lightweight and performs well since it is built on code that runs natively in browsers. The majority of the code you write is JavaScript and HTML.</p><p>• Look for help in common online platforms.</p><p>• Make use of the experiences of other developers (even on other platforms).</p><ul><li>Use full encapsulation to make components more adaptable.</li><li>LWC’s are framework independent and hence we can use LWC for mobile apps.</li></ul><p><em>Creating a Lightning web component is really that simple. You create (1) a JavaScript file, (2) an HTML file, and optionally (3) a CSS file.</em></p><ul><li><em>HTML provides the structure for your component.</em></li><li><em>JavaScript defines the core business logic and event handling.</em></li><li><em>CSS provides the look, feel, and animation for your component</em></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=19e0125b97a5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Steps to create LWC Component]]></title>
            <link>https://medium.com/@swaticodes_/steps-to-create-lwc-component-3efd8ef96b40?source=rss-3e2a927c5ca0------2</link>
            <guid isPermaLink="false">https://medium.com/p/3efd8ef96b40</guid>
            <category><![CDATA[salesforce-development]]></category>
            <category><![CDATA[lwc]]></category>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[salesforce-developer]]></category>
            <dc:creator><![CDATA[Swati Gupta]]></dc:creator>
            <pubDate>Mon, 21 Feb 2022 12:14:03 GMT</pubDate>
            <atom:updated>2022-02-21T12:14:03.019Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*a71cAgQ4kXLPzMNTWGY6-g.png" /></figure><p>You may recall from my last post that we use Developer Console to code in the Salesforce platform. However, we are unable to generate Lightning Web components via the Developer console. For this, Salesforce DX includes a set of tools that you can use to construct lightning components in your local project and then deploy to your org.</p><p>Below are the tools to set up Developer environment:</p><p>1. <a href="https://code.visualstudio.com/download">Visual Studio Code IDE</a> and Download Salesforce Extension Pack from VS Code extensions.</p><p>2. <a href="https://developer.salesforce.com/tools/sfdxcli">Salesforce CLI</a></p><p><strong>Step 1: Create a Project</strong></p><p>In VS Code, open command palette by pressing <strong>Ctrl + Shift + P</strong>, then type sfdx: <strong>Create project with manifest</strong> and press enter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*cvKaQeCicZwYuDmM-K0RMQ.png" /></figure><p>Give your preferred name for project and press Enter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*m76venfjbD8RH_wDoluTeA.png" /></figure><p><strong>Step 2: Authorize an org</strong></p><p>Press <strong>Ctrl + Shift + P</strong> to open command palette, then select <strong>sfdx: Authorize an org</strong> and press enter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/1*MZAv4vJ0wP86JQpU_1JEtw.png" /></figure><p>Enter sandbox or production org, or whichever is appropriate for you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/1*VqYljmMZebIeIO8O1GMx9Q.png" /></figure><p>Give alias name and enter.</p><p>Then you would be prompted to Salesforce login page in browser. Enter your org credentials and your org will be authorized. You will get the below success message once org is authorized successfully.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/459/1*_FUhXSndLPR-GFEUwpPhsQ.png" /></figure><p><strong>Step 3: Create LWC</strong></p><p>Open the command palette by pressing <strong>Ctrl + Shift + P</strong>, then pick <strong>Create Lightning Web Component</strong>, give it a name, and push Enter twice.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*R4sDq7gTZnMMIfBNNZU0mQ.png" /></figure><p>This will create all the necessary files for your Lightning web component.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/270/1*dHPc3fNcHEZAwEX16-Ex5g.png" /></figure><p><strong>Step 4: Deploy to org.</strong></p><p>To use the LWC component in your org, deploy it by simply right click on LWC component and select “<strong>Deploy source to org</strong>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/838/1*XGJ8F0sAn5qUzPpD4LE9WQ.png" /></figure><p>If it deployed successfully, you’ll get the message <strong>“SFDX: Deploy Source to Org successfully ran”.</strong> That’s all there is to it for creating the LWC component.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/932/1*mKss2dKXNPnVsoHrQzLzDg.png" /></figure><p><strong>Note</strong>- <em>If you work for a company, you may want to retrieve all of the metadata from that company. Right-click </em><strong><em>package.xml</em></strong><em> in the manifest folder in the right-hand panel and choose </em><strong><em>“SFDX: Retrieve Source In Manifest From Org”</em></strong><em> from the menu. </em><strong><em>Package.xml</em></strong><em> can also be tweaked to retrieve specific metadata from org.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/344/1*XaDr3va_GHPYQzAsfO7lVg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3efd8ef96b40" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What does Salesforce Platform offer to developers?]]></title>
            <link>https://medium.com/@swaticodes_/what-does-salesforce-platform-offer-to-developers-5bdde80ab597?source=rss-3e2a927c5ca0------2</link>
            <guid isPermaLink="false">https://medium.com/p/5bdde80ab597</guid>
            <category><![CDATA[salesforce-tools]]></category>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[salesforce-development]]></category>
            <category><![CDATA[salesforce-lightning]]></category>
            <dc:creator><![CDATA[Swati Gupta]]></dc:creator>
            <pubDate>Wed, 16 Feb 2022 16:41:06 GMT</pubDate>
            <atom:updated>2022-02-16T16:41:06.864Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S3YUZmSHOkctgvim_I4c_g.png" /></figure><p>Salesforce is the world’s number one CRM. Everything Salesforce offers like Sales, Service, and marketing apps resides on the top of the Salesforce platform. The Salesforce platform (Force.com) is the foundation of the services provided by the company and is offered as PaaS to the developers to build and deploy apps in the cloud. There are many paths in the Salesforce ecosystem. Here, I am concerned with Salesforce Developer and my future posts would be related to development content. So coming back to my story, let’s see what Salesforce offers for Developers. I have consolidated a list of all the tools and technologies that drives the development on the Salesforce platform also known as the Lightning platform.</p><ol><li>The platform allows you to build data models and applications for desktop and mobile. The core technologies behind the development are:</li></ol><p><strong>Lightning Components:</strong> Front-end development framework for desktop and mobile. We can build Lightning components using two programming models- the Lightning Web Components model and the Aura Components model. The new Lightning interface of Salesforce is built using Lightning components.</p><p><strong>Apex:</strong> Salesforce’s proprietary programming language with Java-like syntax used to develop the Salesforce backend. Salesforce also provides query tools like SOQL and SOSL to query the database.</p><p><strong>Visualforce:</strong> Old model used for creating Salesforce pages as well as integrating with other standard web technologies, including HTML, CSS, and JavaScript. The Salesforce Classic interface was built using Visualforce.</p><p>2. <strong>Heroku platform</strong>- Heroku empowers developers to use Java, Python, Ruby, and other programming languages to create highly scalable web apps and back-end services. It also includes database utilities for syncing Salesforce data with ease.</p><p>3. <strong>Salesforce APIs</strong>- Salesforce provides excellent set of APIs to integrate and connect all their enterprise data, networks, and identity information. Examples are REST API, SOAP API, Bulk API, and Streaming API.</p><p>4. <strong>Mobile SDK</strong>- The Mobile SDK is a set of tools that enable you to create native, HTML5, and hybrid apps with the same level of reliability and security as the Salesforce app.</p><p>5.<strong>Salesforce AppExchange</strong>- It is a service provided on the platform to make your solution publicly available to potential customers. The Salesforce partner registers, packages, and publishes their solution on AppExchange and can help them to earn revenue through paid apps. AppExchange products are of 2 types: Salesforce managed packages are created to distribute and sell apps to their customers and Salesforce unmanaged packages are used to produce open-source projects or app templates that developers can use for building their apps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oUMThegDM4jiCvGuiYFpEw.png" /><figcaption>Salesforce architecture- Image by Trailhead via <a href="https://trailhead.salesforce.com/en/content/learn/modules/starting_force_com/starting_understanding_arch">https://trailhead.salesforce.com/en/content/learn/modules/starting_force_com/starting_understanding_arch</a></figcaption></figure><p><strong><em>What do you need to get started?</em></strong></p><p><a href="https://developer.salesforce.com/signup"><em>Salesforce Developer org</em></a><em>.</em></p><p><em>Developer Console</em>- It is the integrated development environment to create, debug, and test applications in your Salesforce org. Open the Developer Console and start coding :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iISYatdWfJR-fC2lRJdKUQ.png" /><figcaption>Salesforce Developer Org</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5bdde80ab597" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lessons from 2021 ✨]]></title>
            <link>https://medium.com/@swaticodes_/lessons-from-2021-2b8c10df0b6a?source=rss-3e2a927c5ca0------2</link>
            <guid isPermaLink="false">https://medium.com/p/2b8c10df0b6a</guid>
            <category><![CDATA[life-lessons]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[women-in-tech]]></category>
            <category><![CDATA[growth]]></category>
            <category><![CDATA[writing]]></category>
            <dc:creator><![CDATA[Swati Gupta]]></dc:creator>
            <pubDate>Fri, 31 Dec 2021 10:22:08 GMT</pubDate>
            <atom:updated>2021-12-31T11:41:22.837Z</atom:updated>
            <content:encoded><![CDATA[<p>1. You do not need to know everything to be a Software engineer.</p><p>2. Asking questions is a GOOD THING.</p><p>3. We tend to overlook the things we already have and always cry for things we don’t have control over. Practice gratitude.</p><p>4. Speak up for yourself and things that matter to you. Because no one else will. Learn to be ASSERTIVE.</p><p>5. Self-awareness helps you to react less.</p><p>6. Your family is not ideal and not meant to be. So, stop idolizing relationships. Understand that they are also humans with emotions and insecurities. Right BOUNDARIES will nourish you.</p><p>7. Your past simply doesn’t exist. We can only have lessons and memories from the past. And that makes us more human right. EMBRACE YOURSELF.</p><p>8. There are always moments when you feel happiness, anger, depression, tiredness, etc. Don’t let things affect how you feel about yourself. It will always be a series of ups and downs. So, enjoy the process.</p><p>9. Habits are everything. Being proactive about what habits you create is key.</p><p>10. Kindness is underrated. Learn to be kind to yourself and others.</p><p>11. Self-love isn’t a destination you have to reach but it’s a never-ending journey. It’s learning, unlearning. Letting go. Choosing you, over and over again. Owning your mistakes and improving.</p><p>12. And last but not the least, being stuck at home has led many of us to work more because there is nothing else to do. Don’t forget to take time off! You might feel like there is no reason to, your mental health is the reason to!</p><p>Sending you best wishes for the new year! Cheers 🎉</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GW6lW8lJW_tJ8pyspbtq7Q.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2b8c10df0b6a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>