<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Shubham Vaishnav</title>
    <description>The latest articles on DEV Community by Shubham Vaishnav (@theshubhamvsnv).</description>
    <link>https://dev.to/theshubhamvsnv</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F473166%2F3e7f2439-9980-4d37-81d0-c86f1f4f8051.jpg</url>
      <title>DEV Community: Shubham Vaishnav</title>
      <link>https://dev.to/theshubhamvsnv</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/theshubhamvsnv"/>
    <language>en</language>
    <item>
      <title>Update description in contact object whenever a new contact is created or updated</title>
      <dc:creator>Shubham Vaishnav</dc:creator>
      <pubDate>Mon, 12 Jul 2021 17:05:36 +0000</pubDate>
      <link>https://dev.to/theshubhamvsnv/update-description-in-contact-object-whenever-a-new-contact-is-created-or-updated-jc9</link>
      <guid>https://dev.to/theshubhamvsnv/update-description-in-contact-object-whenever-a-new-contact-is-created-or-updated-jc9</guid>
      <description>&lt;p&gt;Problem:&lt;/p&gt;

&lt;p&gt;You need to create an apex trigger on the contact object which is fire whenever a new contact is created or updated and show the default description accordingly&lt;/p&gt;

&lt;p&gt;Trigger code :&lt;/p&gt;

&lt;p&gt;Continue reading . . .&lt;br&gt;
&lt;a href="https://salesforceforfresher.wordpress.com/2021/07/08/update-description-in-contact-object-whenever-a-new-contact-is-created-or-updated/"&gt;https://salesforceforfresher.wordpress.com/2021/07/08/update-description-in-contact-object-whenever-a-new-contact-is-created-or-updated/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>salesforceforfreshr</category>
    </item>
    <item>
      <title>Change the beginning of the product code whenever we insert a new product</title>
      <dc:creator>Shubham Vaishnav</dc:creator>
      <pubDate>Mon, 12 Jul 2021 16:30:24 +0000</pubDate>
      <link>https://dev.to/theshubhamvsnv/change-the-beginning-of-the-product-code-whenever-we-insert-a-new-product-27gi</link>
      <guid>https://dev.to/theshubhamvsnv/change-the-beginning-of-the-product-code-whenever-we-insert-a-new-product-27gi</guid>
      <description>&lt;p&gt;Problem:&lt;/p&gt;

&lt;p&gt;You need to create a trigger on the product object which fires every time we insert a new product, we want to make sure that we will add XYZ at the beginning of that product code.&lt;/p&gt;

&lt;p&gt;Trigger code :&lt;/p&gt;

&lt;p&gt;Continue reading . . . &lt;br&gt;
&lt;a href="https://salesforceforfresher.wordpress.com/2021/07/08/change-the-beginning-of-the-product-code-whenever-we-insert-a-new-product/"&gt;https://salesforceforfresher.wordpress.com/2021/07/08/change-the-beginning-of-the-product-code-whenever-we-insert-a-new-product/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>salesforceforfresher</category>
      <category>shubhamvsnv</category>
      <category>apex</category>
      <category>trigger</category>
    </item>
    <item>
      <title>Opportunity Checkbox isValueCorrect Salesforce Apex Trigger</title>
      <dc:creator>Shubham Vaishnav</dc:creator>
      <pubDate>Mon, 12 Jul 2021 15:40:18 +0000</pubDate>
      <link>https://dev.to/theshubhamvsnv/opportunity-checkbox-isvaluecorrect-salesforce-apex-trigger-2enj</link>
      <guid>https://dev.to/theshubhamvsnv/opportunity-checkbox-isvaluecorrect-salesforce-apex-trigger-2enj</guid>
      <description>&lt;p&gt;Problem:&lt;/p&gt;

&lt;p&gt;Create a custom checkbox field on the opportunity (label: IsValueCorrect)&lt;br&gt;
If the stage updated to closed-won only the IsValueCorrect check box is checked&lt;/p&gt;

&lt;p&gt;Trigger code :&lt;/p&gt;

&lt;p&gt;Continue reading . . .&lt;/p&gt;

&lt;p&gt;&lt;a href="https://salesforceforfresher.wordpress.com/2021/07/08/opportunity-checkbox-isvaluecorrect-salesforce-apex-trigger/"&gt;https://salesforceforfresher.wordpress.com/2021/07/08/opportunity-checkbox-isvaluecorrect-salesforce-apex-trigger/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>salesforceforfresher</category>
      <category>shubhamvsnv</category>
      <category>salesforce</category>
      <category>apextrigger</category>
    </item>
    <item>
      <title>Throw Error when user tries to delete the contact without account</title>
      <dc:creator>Shubham Vaishnav</dc:creator>
      <pubDate>Mon, 12 Jul 2021 15:34:34 +0000</pubDate>
      <link>https://dev.to/theshubhamvsnv/throw-error-when-user-tries-to-delete-the-contact-without-account-4lp9</link>
      <guid>https://dev.to/theshubhamvsnv/throw-error-when-user-tries-to-delete-the-contact-without-account-4lp9</guid>
      <description>&lt;p&gt;Problem:&lt;/p&gt;

&lt;p&gt;You need to create an apex trigger on the contact object which is throwing an error whenever user tries to delete the contact without an account&lt;/p&gt;

&lt;p&gt;Trigger code :&lt;/p&gt;

&lt;p&gt;Continue reading . . .&lt;br&gt;
&lt;a href="https://salesforceforfresher.wordpress.com/2021/07/08/throw-error-when-user-tries-to-delete-the-contact-without-account/"&gt;https://salesforceforfresher.wordpress.com/2021/07/08/throw-error-when-user-tries-to-delete-the-contact-without-account/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>salesforceforfresher</category>
      <category>shubhamvsnv</category>
      <category>salesforce</category>
      <category>apextrigger</category>
    </item>
    <item>
      <title>Sending email from apex trigger</title>
      <dc:creator>Shubham Vaishnav</dc:creator>
      <pubDate>Mon, 12 Jul 2021 15:29:59 +0000</pubDate>
      <link>https://dev.to/theshubhamvsnv/sending-email-from-apex-trigger-3p5d</link>
      <guid>https://dev.to/theshubhamvsnv/sending-email-from-apex-trigger-3p5d</guid>
      <description>&lt;p&gt;Problem:&lt;/p&gt;

&lt;p&gt;You need to create an apex trigger on contact object which send email when contact will inserted.&lt;/p&gt;

&lt;p&gt;Trigger code :&lt;/p&gt;

&lt;p&gt;Continue reading . . .&lt;br&gt;
&lt;a href="https://salesforceforfresher.wordpress.com/2021/07/08/sending-email-from-apex-trigger/"&gt;https://salesforceforfresher.wordpress.com/2021/07/08/sending-email-from-apex-trigger/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>salesforceforfresher</category>
      <category>apex</category>
      <category>shubhamvsnv</category>
      <category>apextrigger</category>
    </item>
    <item>
      <title>Top 5 most used apex trigger scenarios examples</title>
      <dc:creator>Shubham Vaishnav</dc:creator>
      <pubDate>Mon, 12 Jul 2021 14:47:35 +0000</pubDate>
      <link>https://dev.to/theshubhamvsnv/top-5-most-used-apex-trigger-scenarios-examples-2lm</link>
      <guid>https://dev.to/theshubhamvsnv/top-5-most-used-apex-trigger-scenarios-examples-2lm</guid>
      <description>&lt;p&gt;Here we go, today we can see some amazing trigger examples which are mostly used in regular working scenarios and it will fun to know that you can throw errors like validation rules in the apex trigger, you can send an email by apex trigger and so more…&lt;/p&gt;

&lt;p&gt;Continue reading....&lt;br&gt;
&lt;a href="https://salesforceforfresher.wordpress.com/2021/07/08/top-5-most-used-apex-trigger-scenarios-examples/"&gt;https://salesforceforfresher.wordpress.com/2021/07/08/top-5-most-used-apex-trigger-scenarios-examples/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>salesforce</category>
      <category>apex</category>
      <category>apextrigger</category>
      <category>devops</category>
    </item>
    <item>
      <title>7 Practice Problems for APEX Triggers</title>
      <dc:creator>Shubham Vaishnav</dc:creator>
      <pubDate>Thu, 01 Jul 2021 19:44:00 +0000</pubDate>
      <link>https://dev.to/theshubhamvsnv/7-practice-problems-for-apex-triggers-1cj5</link>
      <guid>https://dev.to/theshubhamvsnv/7-practice-problems-for-apex-triggers-1cj5</guid>
      <description>





&lt;p&gt;Here is my list of 7 practice problems for Apex Triggers programs that can help any fresher to get started with the salesforce apex triggers. These are classics, popular, and very effective. You can use the developer console to write the triggers. See all solutions and ask if you have any queries.&lt;/p&gt;

&lt;pre&gt;For experienced who are more advanced and reading this, please keep in mind that this is merely for the purpose of learning.&lt;/pre&gt;








&lt;h2&gt;Problem 1&lt;/h2&gt;





&lt;h4&gt;Assignment:&lt;/h4&gt;





&lt;p&gt;Create Account record whenever new contact is created without an account.&lt;/p&gt;

&lt;h4&gt; Solution : &lt;/h4&gt;

&lt;p&gt;Continue reading :- “ 7 Practice Problems for APEX Triggers ”&lt;br&gt;
&lt;a href="https://salesforceforfresher.wordpress.com/2021/06/30/7-practice-problems-for-apex-triggers/"&gt;https://salesforceforfresher.wordpress.com/2021/06/30/7-practice-problems-for-apex-triggers/&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Mathematical Programs Salesforce Apex Trigger</title>
      <dc:creator>Shubham Vaishnav</dc:creator>
      <pubDate>Thu, 01 Jul 2021 19:36:57 +0000</pubDate>
      <link>https://dev.to/theshubhamvsnv/mathematical-programs-salesforce-apex-trigger-1kei</link>
      <guid>https://dev.to/theshubhamvsnv/mathematical-programs-salesforce-apex-trigger-1kei</guid>
      <description>&lt;p&gt;Today we will introduce some common mathematical problems that can be solved using Salesforce Apex Trigger's.&lt;/p&gt;

&lt;p&gt;Firstly we have to create an object of name “&lt;strong&gt; MPC__c&lt;/strong&gt;“.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Wy1QiZ_p--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://salesforceforfresher.files.wordpress.com/2021/06/image-28.png%3Fw%3D1024" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Wy1QiZ_p--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://salesforceforfresher.files.wordpress.com/2021/06/image-28.png%3Fw%3D1024" alt="" width="800" height="280"&gt;&lt;/a&gt;&lt;/p&gt;



&lt;h2&gt;Numbers &amp;amp; Series&lt;/h2&gt;

&lt;p&gt;Lets start with some designated number and series to program. Here we shall see how to code to get Armstrong, Prime, Factorial numbers and Fibonacci series.&lt;/p&gt;

&lt;p&gt;Continue reading :- “ 7 Practice Problems for APEX Triggers ”&lt;br&gt;
&lt;a href="https://salesforceforfresher.wordpress.com/2021/06/13/mathematical-programs-salesforce-apex-trigger/"&gt;https://salesforceforfresher.wordpress.com/2021/06/13/mathematical-programs-salesforce-apex-trigger/&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Salesforce Apex Trigger to Create a Simple Calculator</title>
      <dc:creator>Shubham Vaishnav</dc:creator>
      <pubDate>Thu, 01 Jul 2021 19:33:16 +0000</pubDate>
      <link>https://dev.to/theshubhamvsnv/salesforce-apex-trigger-to-create-a-simple-calculator-4bji</link>
      <guid>https://dev.to/theshubhamvsnv/salesforce-apex-trigger-to-create-a-simple-calculator-4bji</guid>
      <description>&lt;p&gt;In this example, you will learn to create a simple calculator from a apex trigger in salesforce development.&lt;/p&gt;

&lt;p&gt; Firstly we have to create an object of name "&lt;strong&gt; Calculater__c&lt;/strong&gt;". &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--tXIrhT-6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://salesforceforfresher.files.wordpress.com/2021/06/image-23.png%3Fw%3D1024" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--tXIrhT-6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://salesforceforfresher.files.wordpress.com/2021/06/image-23.png%3Fw%3D1024" alt="" width="800" height="277"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This apex trigger takes an picklist arithmetic operator  " &lt;strong&gt;operator__c &lt;/strong&gt;" &lt;code&gt;+, -, *, /&lt;/code&gt; and two fields operands " &lt;strong&gt;Value_1__c&lt;/strong&gt; " and " &lt;strong&gt;Value_2__c&lt;/strong&gt; " from the user. Then, it performs the calculation on the two operands depending upon the operator entered by the user.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Gxdb1-xZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://salesforceforfresher.files.wordpress.com/2021/06/image-24.png%3Fw%3D1024" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Gxdb1-xZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://salesforceforfresher.files.wordpress.com/2021/06/image-24.png%3Fw%3D1024" alt="" width="800" height="334"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Code :&lt;/p&gt;

&lt;p&gt;Continue reading :- “ Salesforce Apex Trigger Program to Calculate Age from Birth Date in (Day, Month, Year) ”&lt;br&gt;
&lt;a href="https://salesforceforfresher.wordpress.com/2021/06/06/salesforce-apex-trigger-to-create-a-simple-calculator/"&gt;https://salesforceforfresher.wordpress.com/2021/06/06/salesforce-apex-trigger-to-create-a-simple-calculator/&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Salesforce Apex Trigger Program to Calculate Age from Birth Date in (Day, Month, Year)</title>
      <dc:creator>Shubham Vaishnav</dc:creator>
      <pubDate>Thu, 01 Jul 2021 19:31:14 +0000</pubDate>
      <link>https://dev.to/theshubhamvsnv/salesforce-apex-trigger-program-to-calculate-age-from-birth-date-in-day-month-year-kih</link>
      <guid>https://dev.to/theshubhamvsnv/salesforce-apex-trigger-program-to-calculate-age-from-birth-date-in-day-month-year-kih</guid>
      <description>&lt;p&gt;Firstly we have to create an object of name "&lt;strong&gt; Date_OF_Birth_Calculat__c&lt;/strong&gt; ".&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--FBA3zaBk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://salesforceforfresher.files.wordpress.com/2021/06/image-19.png%3Fw%3D1024" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--FBA3zaBk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://salesforceforfresher.files.wordpress.com/2021/06/image-19.png%3Fw%3D1024" alt="" width="800" height="290"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt; Add two additional Custom fields  Fields : &lt;strong&gt;Birth_date__c &lt;/strong&gt;, &lt;strong&gt;Present_Age__c&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ypKgHFfH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://salesforceforfresher.files.wordpress.com/2021/06/image-20.png%3Fw%3D1024" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ypKgHFfH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://salesforceforfresher.files.wordpress.com/2021/06/image-20.png%3Fw%3D1024" alt="" width="800" height="335"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Approach used below is as follows&lt;/strong&gt; −&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Input the birth date of a person&lt;/li&gt;
&lt;li&gt;Check for the conditions&lt;ul&gt;
&lt;li&gt;If current month is less than the birth month, then we will not consider the current year because this year has not been completed yet and to compute the differences in months by adding 12 to the current month.&lt;/li&gt;
&lt;li&gt;If the current date is less than the birth date, then we will not consider month and for generating subtracted dates add number of month days to the current date and the result will difference in the dates.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;When this conditions are meet just subtract the days, months and year to get the final result&lt;/li&gt;
&lt;li&gt;Transfer the final age present age&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Algorithm&lt;/p&gt;

&lt;p&gt;Continue reading :- “ Salesforce Apex Trigger Program to Calculate Age from Birth Date in (Day, Month, Year) ”&lt;br&gt;
&lt;a href="https://salesforceforfresher.wordpress.com/2021/06/05/salesforce-apex-trigger-program-to-calculate-age-from-birth-date-in-day-month-year/"&gt;https://salesforceforfresher.wordpress.com/2021/06/05/salesforce-apex-trigger-program-to-calculate-age-from-birth-date-in-day-month-year/&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How to Print Pattern in Apex</title>
      <dc:creator>Shubham Vaishnav</dc:creator>
      <pubDate>Thu, 01 Jul 2021 19:28:39 +0000</pubDate>
      <link>https://dev.to/theshubhamvsnv/how-to-print-pattern-in-apex-9b8</link>
      <guid>https://dev.to/theshubhamvsnv/how-to-print-pattern-in-apex-9b8</guid>
      <description>&lt;p&gt;&lt;strong&gt;Apex pattern program&lt;/strong&gt; enhances the coding skill, logic, and looping concepts. It is mostly asked in &lt;strong&gt;Salesforce interview&lt;/strong&gt; to check the logic and thinking of the programmer. We can print a &lt;strong&gt;Apex pattern program&lt;/strong&gt; in different designs. To learn the pattern program, we must have a deep knowledge of the Apex loop, such as &lt;strong&gt;for&lt;/strong&gt; loop &lt;strong&gt;do-while&lt;/strong&gt; loop. In this section, we will learn &lt;strong&gt;how to print a pattern in Apex&lt;/strong&gt;.&lt;/p&gt;

&lt;h2 id="f6f4"&gt;Pattern Programs in Apex&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Star Patterns &lt;/li&gt;
&lt;li&gt;Numeric Patterns&lt;/li&gt;
&lt;/ul&gt;

&lt;p id="ac95"&gt;Let’s get started. :-)&lt;/p&gt;

&lt;p&gt;Continue reading “ How to Print Pattern in Apex ”&lt;br&gt;
&lt;a href="https://salesforceforfresher.wordpress.com/2021/06/03/how-to-print-pattern-in-apex/"&gt;https://salesforceforfresher.wordpress.com/2021/06/03/how-to-print-pattern-in-apex/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>salesforce</category>
      <category>apex</category>
      <category>programing</category>
      <category>codeing</category>
    </item>
    <item>
      <title>I'm proud to officially be a #TrailHeadRanger</title>
      <dc:creator>Shubham Vaishnav</dc:creator>
      <pubDate>Fri, 19 Feb 2021 09:52:51 +0000</pubDate>
      <link>https://dev.to/theshubhamvsnv/i-m-proud-to-officially-be-a-trailheadranger-1lg3</link>
      <guid>https://dev.to/theshubhamvsnv/i-m-proud-to-officially-be-a-trailheadranger-1lg3</guid>
      <description>&lt;p&gt;🤩 It's been amazing to tell you all that I have reached the #RANGER Rank on trailhead. After a long journey with hands-on experiences, All 100 #badges are down with 5 #Superbadges, I'm proud to officially be a #TrailHeadRanger&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
