<?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 Tejas Kapasi on Medium]]></title>
        <description><![CDATA[Stories by Tejas Kapasi on Medium]]></description>
        <link>https://medium.com/@sfdcsharepoint?source=rss-b6803c90500a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*0e59gXaf30YXFH4TLNCGkQ.jpeg</url>
            <title>Stories by Tejas Kapasi on Medium</title>
            <link>https://medium.com/@sfdcsharepoint?source=rss-b6803c90500a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 02:40:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sfdcsharepoint/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[Home Loan: SBI Maxgain — Daily Schedule — Home Loan Calculator]]></title>
            <link>https://sfdcsharepoint.medium.com/home-loan-sbi-maxgain-daily-schedule-home-loan-calculator-544a9b6b1e5?source=rss-b6803c90500a------2</link>
            <guid isPermaLink="false">https://medium.com/p/544a9b6b1e5</guid>
            <category><![CDATA[sbi-maxgain]]></category>
            <category><![CDATA[home-loan]]></category>
            <category><![CDATA[home-loan-emi-calculator]]></category>
            <category><![CDATA[overdraft-loan]]></category>
            <dc:creator><![CDATA[Tejas Kapasi]]></dc:creator>
            <pubDate>Mon, 07 Nov 2022 15:01:28 GMT</pubDate>
            <atom:updated>2024-06-11T08:37:02.556Z</atom:updated>
            <content:encoded><![CDATA[<h3>Home Loan: SBI Maxgain — Daily Schedule — Home Loan Calculator</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_i-mlAH1RwlCGxRAKQQP6g.png" /><figcaption>Calculator Image</figcaption></figure><p><strong>Preface</strong></p><p>I was searching for an <strong>OD Account Loan</strong> facility which a certain bank provides for a Home loan. I came across the <strong>SBI Maxgain Home loan</strong>. I wanted to find out the real advantages of <strong>Daily Reducing Balance</strong>. And Actual saving of Interest.</p><p>While researching I found many great articles and videos which clarified my basic understanding of the product. I also got the calculator which was a monthly representation of the numbers.</p><p><strong>Missing Part:</strong></p><p>I wanted to <strong><em>see daily representations</em></strong> so I can see exact close numbers about the amount that I can save. And so that I can visualize more closely.</p><p><strong>First</strong>, Here are the reference to start with, Get a basic understanding of the product and calculation.</p><ul><li><a href="https://emicalculator.net/sbi-maxgain-why-should-you-choose-this-home-saver-loan/">https://emicalculator.net/sbi-maxgain-why-should-you-choose-this-home-saver-loan/</a></li><li><a href="https://www.youtube.com/watch?v=iwYi8zCoed8&amp;t=377s">https://www.youtube.com/watch?v=iwYi8zCoed8&amp;t=377s</a> with Monthly Calculator Sheet.</li></ul><p>Now, We know the power of OD account to save interest component from the EMI. We would like to know on a daily basis how much interest we could save if we part some amount.</p><p>Sometimes we would also like to see if we put surplus amount multiple times in a month what would be the variations in the saved interest. So, for that reason, I have created the daily <a href="https://docs.google.com/spreadsheets/d/15oUmif9L1g6k43HbYf84j7aMxybFZL2w2L1FgWuxYno/edit?usp=sharing">calculator</a> (Link Below) by extending one of the existing calculators available freely.</p><p><strong><em>I modified the excel sheet for reference calculation only, It can have some errors and I don’t claim it&#39;s the exact calculator to determine your saving or any decisions. I created it to visualize some data and thought to share it if anyone is looking for a similar sheet.</em></strong></p><p><strong><em>Here is the Link to Daily Calculator:</em></strong> <a href="https://docs.google.com/spreadsheets/d/15oUmif9L1g6k43HbYf84j7aMxybFZL2w2L1FgWuxYno/edit?usp=sharing">https://docs.google.com/spreadsheets/d/15oUmif9L1g6k43HbYf84j7aMxybFZL2w2L1FgWuxYno/edit?usp=sharing</a></p><p>Let me know if any questions or corrections at <strong><em>kapasitejas@gmail.com</em></strong></p><p><strong>EDIT: 11 June 2024</strong></p><p>I have modified the calculator and added few additional features for chart and Summary. Also Video is created to explain the same.</p><p>Read it here:</p><p><a href="https://www.linkedin.com/pulse/sbi-max-gain-home-loan-daily-interest-calculator-tejas-kapasi--nmasf/?trackingId=JK6EUZaSTBau3BkKZibHEw%3D%3D">SBI Max Gain Home Loan Daily Interest Calculator Explained</a></p><p>Yotube Video:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FDtMtBKTENmc%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DDtMtBKTENmc&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FDtMtBKTENmc%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/71a8f2d0ab5011093e4feb40293a106b/href">https://medium.com/media/71a8f2d0ab5011093e4feb40293a106b/href</a></iframe><p>Calculator Sheet:</p><p><a href="https://docs.google.com/spreadsheets/d/1p7x3R7A0qKhPwOn3QEVs0qplJ4zIFmRWaaknfypgaE0/edit?usp=sharing">SBI Max Gain Daily Calculator V2.0</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=544a9b6b1e5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to prevent duplicate child records for the same parent record?]]></title>
            <link>https://sfdcsharepoint.medium.com/how-to-prevent-duplicate-child-records-for-the-same-parent-record-8a27371669e1?source=rss-b6803c90500a------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a27371669e1</guid>
            <category><![CDATA[salesforce-flow]]></category>
            <category><![CDATA[salesforce-apex]]></category>
            <category><![CDATA[salesforce-admin]]></category>
            <category><![CDATA[salesforce-lightning]]></category>
            <category><![CDATA[salesforce]]></category>
            <dc:creator><![CDATA[Tejas Kapasi]]></dc:creator>
            <pubDate>Fri, 01 Jan 2021 11:18:06 GMT</pubDate>
            <atom:updated>2021-01-01T11:18:06.806Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong>Record Triggered Flow- </strong><a href="https://releasenotes.docs.salesforce.com/en-us/summer20/release-notes/rn_forcecom_flow_fbuilder_after-save_trigger.htm"><strong>Summer’20</strong></a><strong> Salesforce Release Feature</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*bHxKcMBLOj5JmOYAHnqN1A.png" /><figcaption>Duplicate Message</figcaption></figure><p><strong>Requirement:</strong> <br>I have a business use case where I need to restrict users from entering duplicate child records for the same parent record.</p><p><strong>Logic:</strong></p><ul><li>I decided to create one unique text field on the child object and then update it with a unique key value.</li><li>As the field marked as unique if a duplicate record comes with the same key then the system will throw an error message.</li></ul><h3><strong>Solution Spectrum:</strong></h3><p>I had various options on hand to achieve this but I found the record triggered flow is the best option.</p><ul><li>Option 1: Formula Field + Using Duplicate and matching rule</li><li>Option 2: Text Field + Workflow Field Update + Duplicate and matching rule</li><li>Option 3: Text field + Process Builder</li><li>Option 4: Before Event Apex Trigger</li><li>Option 5: Before Event, Record Triggered Flow (Summer’20 Release)</li></ul><h4>Option 1: Formula Field + Using Duplicate and matching rule</h4><p><strong>Steps:</strong></p><ul><li>I created a formula field on the child object to populate (Parent.Id+CurrentRecord.State) Because I wanted unique records by State.</li><li>Then I tried to use this field in the <strong><em>Matching rule</em></strong> to find duplicates, <em>but it&#39;s </em><strong><em>not available</em></strong><em> there because of the formula field.</em></li></ul><p><strong>Outcome</strong>:</p><ul><li>This Solution didn’t work.</li></ul><h4>Option 2: Text Field + Workflow Field Update + Duplicate and matching rule</h4><p><strong>Steps:</strong></p><ul><li>Create a <strong><em>Text field</em></strong> instead of a formula field.</li><li>Update field with <strong><em>unique key</em></strong> value using a workflow field update on the child object.</li><li>Create <strong><em>duplicate and matching rules</em></strong> to show an error message.</li></ul><p><strong>Pros:</strong></p><ul><li>Easy to configure</li><li>User-friendly error message on duplication</li></ul><p><strong>Cons:</strong></p><ul><li>Performance issue — Rules on child records, will execute for all records under the parent.</li><li>Workflows are executed very late in the execution context</li><li>Same object update is there hence recursion must be handled.</li><li>Because of this update if there are any other workflows or process builders or triggers are there on the same object then those will be executed.</li></ul><p><strong>Outcome:</strong></p><ul><li>Works but not recommended, due to poor performance.</li></ul><h4>Option 3: Text field (Mark it as Unique) + Process Builder</h4><p><strong>Steps:</strong></p><ul><li>Create a <strong><em>Text field</em></strong> marked as <strong><em>unique</em></strong>.</li><li>Update field with <strong><em>unique key</em></strong> value using a <strong><em>Process builder action</em></strong> field update on the child object.</li></ul><p><strong>Pros:</strong></p><ul><li>Easy to configure</li><li>The unique field will handle to display the error</li></ul><p><strong>Cons:</strong></p><ul><li>Performance issue — Process Builder</li><li>Same object update is there hence recursion must be handled.</li><li>Because of this update if there are any other workflows or process builders or triggers are there on the same object then those will be executed.</li></ul><p><strong>Outcome:</strong></p><ul><li>Works but not recommended, due to poor performance.</li></ul><h4>Option 4: Before Event Apex Trigger</h4><p><strong>Steps:</strong></p><ul><li>Write before insert/update event trigger</li><li>throw error from trigger using .addError() standard method.</li></ul><p><strong>Pros:</strong></p><ul><li>Easy to build</li><li>Before the event trigger, it is, hence no need to make any DML</li><li>No need to worry about recursion</li></ul><p><strong>Cons:</strong></p><ul><li>Test class and Code coverage is required</li></ul><p><strong>Outcome:</strong></p><ul><li>This solution works but a better solution is available :)</li></ul><h4>Option 5: Before Event, Record Triggered Flow (<a href="https://releasenotes.docs.salesforce.com/en-us/summer20/release-notes/rn_forcecom_flow_fbuilder_after-save_trigger.htm">Summer’20 Release</a>)</h4><p><strong>Steps:</strong></p><ul><li>Create a <strong><em>Text field</em></strong> mark it as <strong>Unique</strong>.</li><li>Update field with <strong><em>unique key</em></strong> value using a flow (Before Save Record Triggered)</li><li>The system will throw an error preventing duplication.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/845/1*XmFPGL_Ku_6QT7oTbFXMmA.png" /></figure><p><strong>Pros:</strong></p><ul><li>Easy to configure</li><li>Faster performance</li><li>No need to worry about recursion</li><li>Doesn’t fire any other workflow, process builder or triggers</li></ul><p><strong>Cons:</strong></p><ul><li>Not really if you are comfortable building a flow.</li></ul><p><strong>Outcome:</strong></p><ul><li>Works very well.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*bHxKcMBLOj5JmOYAHnqN1A.png" /></figure><p>Thank you for reading my post, please share your thoughts and comments. <br>Do visit: <a href="https://sfdcsharepoint.com/">https://sfdcsharepoint.com</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a27371669e1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Salesforce CPQ — How to restrict users from adding duplicate Bundle in Quote?]]></title>
            <link>https://sfdcsharepoint.medium.com/salesforce-cpq-how-to-restrict-users-from-adding-duplicate-bundle-in-quote-d53805cbcd7d?source=rss-b6803c90500a------2</link>
            <guid isPermaLink="false">https://medium.com/p/d53805cbcd7d</guid>
            <category><![CDATA[salesforce-cpq]]></category>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[salesforce-development]]></category>
            <category><![CDATA[qcp]]></category>
            <dc:creator><![CDATA[Tejas Kapasi]]></dc:creator>
            <pubDate>Sun, 27 Dec 2020 08:38:22 GMT</pubDate>
            <atom:updated>2020-12-27T08:38:22.286Z</atom:updated>
            <content:encoded><![CDATA[<h3>Salesforce CPQ — How to restrict users from adding duplicate Bundle in Quote?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qsf5WQiz927IW9ys3QaNCQ.png" /></figure><blockquote>I am pretty new to salesforce CPQ and recently I came across the challenge to add the restriction of adding duplicate bundle products in the Quote. I found classic use of Javascript Quote Calculator Plugin.</blockquote><h3><strong>Requirement:</strong></h3><p>Users should be able to add as many different bundles to the cart. But the cart shouldn’t have the same bundle lines. When a user is trying to save the cart they should be seeing the error message.</p><h3><strong>Solution:</strong></h3><p>As this can’t be directly achieved via simple product rule configuration, we have to use <a href="https://developer.salesforce.com/docs/atlas.en-us.cpq_dev_plugins.meta/cpq_dev_plugins/cpq_dev_jsqcp_parent.htm"><strong>Javascript Quote Calculator Plugin</strong></a>.</p><p><a href="https://medium.com/@paustint/getting-started-with-the-salesforce-cpq-quote-calculator-plugin-qcp-vscode-extension-718306ff40d4"><strong>Read more</strong> about — Javascript Quote Calculator Plugin.</a></p><h4>Logic to Implement:</h4><ul><li><em>Check all the bundle lines in the quote and see if there’s any duplicate bundle line. If there’s any duplicate line found then set a flag on the quote object which indicates duplicate found.</em></li><li><em>To reset the flag every time we calculate or try to save the cart.</em></li></ul><h4><strong>Steps to implement:</strong></h4><ol><li>We need to have a custom field on the Quote object. Create a checkbox field on quote names <strong><em>isSameOfferingAdded__c.</em></strong></li><li>Implement <strong><em>onBeforeCalculate</em></strong> a Javascript Quote Calculator Plugin as below:</li></ol><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0569748694d7ba97696cd1c416135f9c/href">https://medium.com/media/0569748694d7ba97696cd1c416135f9c/href</a></iframe><p>3. Go to the <strong>Custom Script</strong> tab and create a new record as below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EVuW-982i3Yg4rpKuFArXA.png" /><figcaption>Custom Script Record</figcaption></figure><p>4. Add this callback to the <strong>CPQ setting</strong>. (Setup-&gt;Installed Package -&gt; Click Configure against Salesforce CPQ)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*yDGPrVBX82ggJ1uzJIB2Yg.png" /><figcaption>CPQ Setting</figcaption></figure><p>5. Now, Create a <strong>Product Rule </strong>that uses the checkbox <strong><em>“isSameOfferingAdded__c” </em></strong>to display an error message when the user clicks quick save/Save buttons in the cart.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iKlYj9zjSIYeQNA6czt7vQ.png" /><figcaption>Validation Product Rule</figcaption></figure><p>We’re done with the implementation, Let’s have some showtime!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fo5QVpf4oais%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Do5QVpf4oais&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fo5QVpf4oais%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/3653bac136271c18f886f7ccd49d6406/href">https://medium.com/media/3653bac136271c18f886f7ccd49d6406/href</a></iframe><p><em>Thank you for reading this post, if you are interested in more content please visit </em><a href="http://sfdcsharepoint.com/"><em>http://sfdcsharepoint.com</em></a><em> and do comment about this article.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d53805cbcd7d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>