tag:blogger.com,1999:blog-84575189757444636152024-03-28T01:13:06.392-07:00SFDC KidSalesforce Tutorial - From basic to advanced concepts with examples including Architecture, Environment, Sales, Service Cloud, Standard, , Manipulating Records, SOQL, SOSL Queries, Apex, Bulk Apex Triggers, Visualforce Pages, Variables and Formulas, Standard Controllers, Records, Fields and Tables,List Controllers, Static Resources, Custom Controllers, Create and Edit Lightning Components, Attributes and Expressions, Connect Components with Events, Event Monitoring, Visualize Event Log Files.AJINKYA DHAS http://www.blogger.com/profile/13223328981950114267noreply@blogger.comBlogger81125tag:blogger.com,1999:blog-8457518975744463615.post-71263354380597856012024-03-13T05:43:00.000-07:002024-03-13T06:05:28.996-07:00Alternatives to Salesforce Omnistudio for Developers<h2 style="text-align: center;"><span style="font-family: arial; font-size: 23pt; font-weight: 700; white-space-collapse: preserve;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzbXtYnxTkfEBEhoM81SGZxq7cT1uogCyD9-6Fx5UIdJDgpZm26N3I8erUmmk3cCmUgseciLkG6VIPbeU6Yig3-ATRt2lHbkgPTiPZQuehvM-_UHD9MzCwP-bbRNrfJLVdDYpNqBpxN-JadhAXB0RypmTFdrjx9OuwJMTIXxiIKI-aaPPUWZon9ZuT5e4/s1366/guestOmni%20copy.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Alternatives to Salesforce Omnistudio for Developers" border="0" data-original-height="768" data-original-width="1366" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzbXtYnxTkfEBEhoM81SGZxq7cT1uogCyD9-6Fx5UIdJDgpZm26N3I8erUmmk3cCmUgseciLkG6VIPbeU6Yig3-ATRt2lHbkgPTiPZQuehvM-_UHD9MzCwP-bbRNrfJLVdDYpNqBpxN-JadhAXB0RypmTFdrjx9OuwJMTIXxiIKI-aaPPUWZon9ZuT5e4/s16000/guestOmni%20copy.jpg" title="Alternatives to Salesforce Omnistudio for Developers" /></a></div><br />
Alternatives to Salesforce Omnistudio for Developers
</span></h2><div><span id="docs-internal-guid-6e42cef3-7fff-ae9b-32b1-078cf1af409f"><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: arial; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">Omnistudio has nimble tools and features to speed up the creation of web applications. Regardless, you can also integrate Omnistudio with Salesforce. This will allow your developers to make use of extra tools that can tailor web projects further.</span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: arial; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">One of the reasons why Omnistudio is so popular is that it gives developers a chance to build and deploy web apps directly on Salesforce. Working within the Salesforce ecosystem and accessing all the tools from Omnistudio lets developers manage code better and more securely. This way of working also boosts the user experience for Omnistudio developers, making them more productive throughout the day.</span></p><span style="font-family: arial;"><span face="Arial, sans-serif" style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">However, Omnistudio in Salesforce is not the only tech out there that can assist you with rapid web development and deployment. If you want to learn more about Omnistudio and the leading</span><a href="https://titandxp.com/salesforce-omnistudio/" style="text-decoration-line: none;"><span face="Arial, sans-serif" style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"> </span><span face="Arial, sans-serif" style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;">Salesforce Omnistudio alternatives</span></a></span><span face="Arial, sans-serif" style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"><span style="font-family: arial;"> on the market, join us in the article below.
<span id="docs-internal-guid-2f01076e-7fff-e9cf-8b59-f0a929a94328"><h2 dir="ltr" style="line-height: 1.38; margin-bottom: 4pt; margin-top: 18pt;"><span style="font-size: 17pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline;">What is Omnistudio from Salesforce?</span></h2><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline;">According to Salesforce Omnistudio documentation, it’s a platform to create industry-specific web apps and digital experiences. Omnistudio focuses on putting user experiences first, as you can build responsive web apps and release them across multiple channels.</span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline;">When you enable Omnistudio in Salesforce, developers get advanced tools to speed up the creation of their latest and most inventive web projects. Additionally, they can use these tools to install automated processes for interactions that occur in their industry.</span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline;">All of these Omnistudio tools can be used via a drag-and-drop interface. They assist in creating branded user interfaces for web apps.</span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline;">The best thing about a drag-and-drop builder with a modular approach is that it is low-code. This means Salesforce Omnistudio developers can spend less time on manual coding and release projects even faster than before.</span></p><div><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline;">
<span id="docs-internal-guid-5353e29a-7fff-13c5-f3e3-a019cc815498"><h2 dir="ltr" style="line-height: 1.38; margin-bottom: 4pt; margin-top: 18pt;"><span style="font-size: 17pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline;">Top Alternatives to Salesforce Omnistudio for Developers</span></h2><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline;">Although Salesforce is a premium customer relationship management (CRM) platform and has provided Omnistudio to streamline developer tasks, it is not perfect.</span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline;">We understand you might want all teams to work within one ecosystem so that data is kept in a single location, but this also means you are tied to Salesforce. Overall, this is a rigid way of working and can create problems for your product development and services if you need to integrate with other systems.</span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline;">Additionally, if you need to migrate your data to a different database in the future, you could run into problems if you are solely dependent on Salesforce.</span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline;">For these reasons and more, let's take a look at some market-leading Omnistudio alternatives that can give developers tools for building web projects quickly with low or no code.</span></p><div><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline;"><span id="docs-internal-guid-9d284472-7fff-4e3e-e192-8b3b028e98a6"><h3 dir="ltr" style="line-height: 1.38; margin-bottom: 4pt; margin-top: 14pt;"><span style="font-size: 13pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline;">Titan Web</span></h3><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline;">Number 1 on our list is Titan Web. This NO-CODE platform is designed to elevate Salesforce experiences by empowering developers to create websites, portals, complicated forms, or surveys on a platform that integrates bi-directionally with Salesforce.</span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline;">It’s perfect if you still want to work with Salesforce but need zero-code integration and development tools for web projects.</span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline;">It has a 4.96 rating out of 5 stars on the Salesforce AppExchange marketplace, and we think it is the best drag-and-drop builder for custom projects.</span></p><h3 dir="ltr" style="line-height: 1.38; margin-bottom: 4pt; margin-top: 14pt;"><span style="font-size: 13pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline;">Microsoft Dynamics 365</span></h3><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline;">Next up, we present Microsoft Dynamics 365. It’s a platform with a range of apps for CRM and ERP (Enterprise Resource Planning) activities and tasks. As a result of this focus, you will find tools in Microsoft Dynamics 365 to assist sales, marketing, customer service, and finance teams.</span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline;">It makes it onto our list since it’s a platform that can speed up your CRM processes, like Salesforce, but it has an edge in the ERP space.</span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline;">Nevertheless, what makes it a good candidate as an alternative to Omnistudio? Well, for starters, developers can build apps on Microsoft Dynamics 365 with various options, such as Power Apps.</span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline;">Power Apps is a low-code platform that helps developers build custom apps without much coding experience. It achieves this by giving developers a drag-and-drop user interface that connects to Microsoft Dynamics 365 data.</span></p><h3 dir="ltr" style="line-height: 1.38; margin-bottom: 4pt; margin-top: 14pt;"><span face="Arial,sans-serif" style="background-color: transparent; font-size: 13pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre;">Oracle CX Cloud</span></h3><div><span face="Arial,sans-serif" style="background-color: transparent; font-size: 13pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre;"><span id="docs-internal-guid-9fb847b4-7fff-c56c-2e2b-7747c4a5e462" style="font-weight: normal;"><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; text-wrap: wrap; vertical-align: baseline;">If you want a range of cloud-based features to create experience applications for many touchpoints, you can use Oracle CX Cloud. You may also know this platform as Oracle Customer Experience Cloud.</span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; text-wrap: wrap; vertical-align: baseline;">As we mentioned touchpoints, you can imagine that Oracle CX Cloud has tools to support sales, marketing, commerce, and social engagement activities.</span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; text-wrap: wrap; vertical-align: baseline;">Developers can use the Oracle Application Builder Cloud Service (ABCS) tool in Oracle to create web or mobile apps. The tool allows developers to quickly build apps using low-code techniques and a drag-and-drop user interface.</span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; text-wrap: wrap; vertical-align: baseline;">ABCS can also be used to create easy workflows, and it connects to Oracle CX Cloud services really well to streamline data flows.</span></p></span></span></div><h3 dir="ltr" style="line-height: 1.38; margin-bottom: 4pt; margin-top: 14pt;"><b id="docs-internal-guid-5e1300ba-7fff-82e9-eb0d-e8b7d953a777" style="font-weight: normal;"><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-size: 13pt; font-weight: 700; text-wrap: nowrap;">SAP Customer Experience</span></p></b></h3><h3 dir="ltr" style="line-height: 1.38; margin-bottom: 4pt; margin-top: 14pt;"><span style="font-weight: normal;"><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline;">The last platform on our short list of alternatives for Omnistudio is SAP Customer Experience (CX). It contains many solutions to assist businesses with customer interactions.</span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline;">Starting from the initial contact of customers to the end with after-sales services, SAP CX has the tools you need for every step in a customer journey.</span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline;">Developers are spoiled for choice in SAP CX when they want to create apps that boost customer experiences. For example, they can use SAP Commerce Cloud. It’s an e-commerce platform used by enterprises to build custom shopping experiences, whether online through a website, a mobile device, or in a physical shop.</span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline;">If developers have experience writing Java, they can truly extend the customization options to match the requirements of their project in SAP Commerce Cloud.</span></p></span></h3><h2 dir="ltr" style="line-height: 1.38; margin-bottom: 4pt; margin-top: 18pt;"><span face="Arial,sans-serif" style="background-color: transparent; font-size: 17pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre;">Titan Web: The Best Alternative to Salesforce Omnistudio</span></h2><h3 dir="ltr" style="line-height: 1.38; margin-bottom: 4pt; margin-top: 14pt;"><span style="font-weight: normal;"><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline;"><span id="docs-internal-guid-b2977296-7fff-c58b-75f5-08f69ecd7ccf"><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline;">If you want to build custom apps, you need a leading alternative to Omnistudio. We discussed Microsoft Dynamics 365, Oracle CX Cloud, and SAP Customer Experience in this article, and we believe </span><a href="https://titandxp.com/salesforce/cloud-experiences/" style="text-decoration-line: none;"><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline;">Titan Web</span></a><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline;"> stands out the most due to its no-code capabilities for building and launching beautiful web apps for Salesforce.</span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline;">Here are a few more features and results to help you get more familiar with Titan Web:</span></p><ul style="margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px; text-align: left;"><li><span style="font-size: 11pt;">Titan Web integrates with Experience Cloud or can be used as an alternative.</span></li><li>All web projects like portals, documents, surveys, and forms have bi-directional data flows with Salesforce.</li><li>Developers get full customization tools that require zero code when building and maintaining web apps.</li><li>Your business can use Titan Web for other work tasks like generating and electronically signing documents from Salesforce.</li><li>Titan Web can create complex approval flows to connect customers and colleagues.</li><li>Titan Web is a secure app and complies with HIPAA, SOC 2, ISO, GDPR, and other leading frameworks.</li><li>Developers can prioritize UX by creating secure and intuitive experiences that connect customers to businesses across any industry.</li></ul></span></span></span></h3><h2 dir="ltr" style="line-height: 1.38; margin-bottom: 4pt; margin-top: 18pt;"><span face="Arial,sans-serif" style="background-color: transparent; font-size: 17pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre;">Conclusion</span></h2><h3 dir="ltr" style="line-height: 1.38; margin-bottom: 4pt; margin-top: 14pt;"><span style="font-weight: normal;"><div><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline;"><span><div><span id="docs-internal-guid-77cd0e46-7fff-ff36-d6e4-b115a812d5ab"><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline;">Thanks for reading our article on the top alternatives to Salesforce Omnistudio, helping developers build and deploy apps faster than ever before.</span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline;">There is no doubt that Omnistudio is a powerful platform that can make your business more agile by handling a large number of projects while staying in the Salesforce ecosystem.</span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline;">However, if you need an alternative, check out Titan Web, Microsoft Dynamics 365, Oracle CX Cloud, or SAP Customer Experience. You can’t go wrong with any one of these platforms.</span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline;">Good Luck!</span></p><div><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline;"><br /></span></div></span></div></span></span></div></span></h3></span></span></div></span></span></div></span></span>
</span></span></div>AJINKYA DHAS http://www.blogger.com/profile/13223328981950114267noreply@blogger.com0tag:blogger.com,1999:blog-8457518975744463615.post-23026851001931955392024-02-14T03:04:00.000-08:002024-02-14T03:04:20.787-08:00Conducting Market Research Using Titan's no-code Survey Tool for Salesforce<h1 style="text-align: center;"><span style="font-family: verdana;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMDxoFGvicyapXTY_5DZfwtR56el0AS7jIJPeukcMaFQUZyrXoPM7YG1Y7Q_HRVhml_sJRNodrqCN3pKv7Q59Rhhd630D-dLIk5LvH8PhI_qb5eckiwTnqWQExgRG64ES2hOIV_BUopHVSmy8jOwEHOKq07gBv2Mu0PmZRKpOUCJkdAZfZ_0FG_nIF-PE/s1366/NoCodeTiten.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="NoCodeTiten" border="0" data-original-height="768" data-original-width="1366" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMDxoFGvicyapXTY_5DZfwtR56el0AS7jIJPeukcMaFQUZyrXoPM7YG1Y7Q_HRVhml_sJRNodrqCN3pKv7Q59Rhhd630D-dLIk5LvH8PhI_qb5eckiwTnqWQExgRG64ES2hOIV_BUopHVSmy8jOwEHOKq07gBv2Mu0PmZRKpOUCJkdAZfZ_0FG_nIF-PE/s16000/NoCodeTiten.jpg" title="NoCodeTiten" /></a></div><br /> </span></h1><h1 style="text-align: center;"><span style="font-family: verdana;">Titan's no-code Survey Tool for Salesforce</span></h1><div><div><span style="font-family: verdana;">Do you know what your customers want? Or what they really think of your services and products? Do you know how effective your marketing campaigns are or what your competitors are up to? Do you have all the information you need to make really informed decisions? </span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Maybe an even better question is: “How do you get the information that you need?”</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">It is critical for companies to do market research to understand customer preferences and to develop products that align with their needs while at the same time maintaining a competitive advantage in their industry. There are many different ways to conduct market research. Let’s look at some of them:</span></div></div><div><span style="font-family: verdana;"><br /></span><div><ul style="text-align: left;"><li><span style="font-family: verdana;">Focus groups: This qualitative research method involves getting a group of people together that represents your target audience and having them discuss specific topics related to your products or services. A moderator normally guides the discussions while gathering information from the group.</span></li><li><span style="font-family: verdana;">Interviews: Another quantitative method is to have direct one-on-one interviews, often using open-ended questions, to explore the attitudes, opinions, and emotions of your customers or prospects. Interviews can provide in-depth feedback. Both focus groups or interviews can be done online or in person.</span></li><li><span style="font-family: verdana;">Website analytics: This quantitative research method involves the use of online analytics to study website traffic, user behaviour, and conversion rates. This will help you to understand how customers interact with your online presence.</span></li><li><span style="font-family: verdana;">Surveys: This very common quantitative method is used to gather information directly from customers by asking them different types of questions. You can use surveys to measure customer satisfaction, gather product feedback, conduct market research, and more. Surveys can be done online, in person, or via the phone and are ideal to measure the overall trends in a large population. </span></li></ul><div><div><span style="font-family: verdana;">Salesforce has a survey tool to create basic surveys that is included in most Salesforce editions for free. It offers simple surveys with limited question types and features. The data is stored in Salesforce and allows for simple analytics. </span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">If you want the racehorse of surveys, get Titan Survey, a no-code survey tool with complete Salesforce integration that can be tailored to your unique needs and branding. Titan's intuitive survey builder is designed to enhance user experience and provide a cohesive way to measure customer satisfaction, gather feedback, and conduct market research within the Salesforce ecosystem.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-size: 16pt; white-space-collapse: preserve;"><span style="font-family: verdana;">Choose Titan’s Salesforce Surveys for Market Research</span></span></div><div><span id="docs-internal-guid-dd460468-7fff-cf1d-e266-9d5c713141c5"><span id="docs-internal-guid-85461428-7fff-9484-7bbe-a4642781f36b"><span style="font-family: verdana;"><p style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: left;"><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">Why should you choose Titan Survey to do your market research? Well, that’s easy. Titan is a no-code survey tool for Salesforce with which you can create, automate, and track custom surveys in Salesforce. </span></p><br /><p style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: left;"><a href="https://titandxp.com/salesforce/survey/" style="text-decoration-line: none;"><span style="color: #1155cc; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;"><b><i>Titan Survey</i></b></span></a><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"><b><i> </i></b>has an easy-to-use, drag-and-drop survey builder with various question elements such as multiple choice, open-ended, ranking, demographics, and matrix questions, as well as nominal, Likert scale, rating scale, and yes/no. You can add pre-filled fields (as the integration with Salesforce is streamlined) to personalize the survey and improve the response rates. This integration means that the survey responses are captured in real-time in Salesforce, where they can be tracked and analyzed alongside your other customer data. </span></p><br /><p style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: left;"><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">The highly customizable email, web, or hybrid surveys created with Titan Survey can be distributed in several ways using personalized invitations, such as email, social media, and web channels. This provides flexibility in reaching your target audience wherever they are. You can also automate the survey distribution with custom triggers in a Salesforce survey workflow.</span></p><br /><p style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: left;"><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">Titan’s reporting and analytics tools can identify trends, patterns, and insights to help you understand your market better, helping you to make more informed decisions. </span></p><br /><p style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: left;"><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">Moreover, Titan Survey offers HIPAA, SOC 2, ISO, and GDPR compliance, ensuring data security and privacy. It meets Section 508 requirements, and the surveys are accessible to everyone. It also offers multi-lingual support to reach a wider audience and advanced conditional logic features to control question flows based on complex logic from Salesforce.</span></p><h3 style="line-height: 1.38; margin-bottom: 4pt; margin-top: 16pt; text-align: left;"><span style="color: #434343; font-size: 14pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;">Connect With Customer Preferences</span></h3><div style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: left;"><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">Use Titan Survey to create customer satisfaction and product feedback surveys to really measure overall satisfaction with your products, services, and support. Measure customer loyalty and identify areas for improvement with your branded net promoter score surveys. Open-ended feedback questions give your customers the opportunity to share their thoughts and feedback freely. Alternatively, use targeted surveys to specific customer segments based on demographics, purchase history, or online activity.</span></div><br /><p style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: left;"><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">Analysis of these survey responses will help you to understand customer needs and preferences better, therefore allowing you to tailor your products and services to meet expectations. </span></p><h3 style="line-height: 1.38; margin-bottom: 4pt; margin-top: 16pt; text-align: left;"><span style="color: #434343; font-size: 14pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;">Optimum Pricing Strategy</span></h3><p style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: left;"><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">With Titan Survey, you can gather data on customers' willingness to pay and their perceptions of value, helping you develop an optimum pricing strategy. You can optimize your pricing strategy by conducting the following surveys:</span></p><p style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: left;"></p><ul style="margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px; text-align: left;"><li><span style="font-size: 11pt; white-space-collapse: preserve;">Price sensitivity surveys;</span></li><li>Competitor pricing analysis;</li><li>Conjoint analysis; and </li><li>Van Westendorp Price Sensitivity Meter (to identify the optimal price range for your product).</li></ul><br /><p style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: left;"><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">You can also analyze how pricing changes impact sales.</span></p><h3 style="line-height: 1.38; margin-bottom: 4pt; margin-top: 16pt; text-align: left;"><span style="color: #434343; font-size: 14pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;">Competitor Analysis</span></h3><p style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: left;"><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">Use Titan Survey to ask questions about your customers’ awareness, perception, and satisfaction with your brand and your competitors’ brands. You can also identify gaps and opportunities in the market that you can fill. Create surveys that compare your products or services with those of competitors, and analyze the responses to identify areas where you can differentiate and improve.</span></p><h3 style="line-height: 1.38; margin-bottom: 4pt; margin-top: 16pt; text-align: left;"><span style="color: #434343; font-size: 14pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;">Discover Opportunities</span></h3><p style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: left;"><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">Surveys created by Titan’s survey app can identify new market opportunities, explore product ideas or test business strategies. Encourage customers to share new ideas and suggestions with open-ended questions. </span></p><h3 style="line-height: 1.38; margin-bottom: 4pt; margin-top: 16pt; text-align: left;"><span style="color: #434343; font-size: 14pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;">Measure Demand</span></h3><p style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: left;"><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">With Titan Survey, you can create custom pre-paunch surveys to gauge interest in a new product or service. A market sizing survey can estimate the size and potential of a new market, while an intent-to-purchase survey can aim to understand how likely people are to buy from you.</span></p><h3 style="line-height: 1.38; margin-bottom: 4pt; margin-top: 16pt; text-align: left;"><span style="color: #434343; font-size: 14pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;">Better Brand Messaging</span></h3><p style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: left;"><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">You can optimize your brand message by using Titan Survey to create surveys that present different brand messages or positioning statements and measure customer responses.</span></p><h2 style="line-height: 1.38; margin-bottom: 6pt; margin-top: 18pt; text-align: left;"><span style="font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; font-weight: 400; vertical-align: baseline; white-space-collapse: preserve;"><span style="font-size: large;">Titan Surveys: Effective No-Code Salesforce Survey Tool</span></span></h2><p style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: left;"><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">As you can see, Titan's no-code survey builder for Salesforce offers a magnificent solution for conducting market research, from survey creation and distribution to data collection and analysis. It is also one of the top survey tools that integrate with Salesforce.</span></p><p style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: left;"><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"><br /></span></p><p style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: left;"><br /></p><div style="text-align: left;"><span style="font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"><p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline;"><span style="border: none; display: inline-block; height: 437px; overflow: hidden; width: 624px;"><img height="437" src="https://lh7-us.googleusercontent.com/MZjcmbM4sv0r40FApVisFY95R1drDutLjeZkWZX67CGMYCzHd551qH3cGYM2Pqn0twCpgOyEhXKB-0O-A2B5_IAbA8zWpkBvHAdqPM1t42EnIOOjch1_5acEd4k71J1XQgof3J20_FoIBkhIV10CBbw" style="margin-left: 0px; margin-top: 0px;" width="624" /></span></span></p><br /><br /></span></div></span></span></span></div></div></div></div><div><span style="font-family: verdana;"><br /></span></div><div><br /></div>AJINKYA DHAS http://www.blogger.com/profile/13223328981950114267noreply@blogger.com0tag:blogger.com,1999:blog-8457518975744463615.post-725795286251827152024-01-25T01:57:00.000-08:002024-01-25T01:57:17.432-08:00Salesforce Forms for Marketing Wins<p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYsA1hSHCRhZHr45qpCZg_up6X3r6-uEDHQ9uDY68Vl-SGEIRSNcAKbnSWgm2CqNY2qCdTZgOYLuoP-UpUWXiaQhGYa_iS0KMdA0KN_b9rfAExVOOa0I3w1E6PFbbx0CGC-UuuG_435q7uvA62dkDUEfm1wYMUgFvF8G1K4X0ydp_XHNMdvgbboW9IgN8/s1366/GUESTPost.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="768" data-original-width="1366" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYsA1hSHCRhZHr45qpCZg_up6X3r6-uEDHQ9uDY68Vl-SGEIRSNcAKbnSWgm2CqNY2qCdTZgOYLuoP-UpUWXiaQhGYa_iS0KMdA0KN_b9rfAExVOOa0I3w1E6PFbbx0CGC-UuuG_435q7uvA62dkDUEfm1wYMUgFvF8G1K4X0ydp_XHNMdvgbboW9IgN8/s16000/GUESTPost.jpg" /></a></div><br /><span style="font-family: Arial, sans-serif; font-size: 11pt; white-space-collapse: preserve;"><br /></span><p></p><p><span style="font-family: Arial, sans-serif; font-size: 11pt; white-space-collapse: preserve;"><br /></span></p><p><span style="font-family: Arial, sans-serif; font-size: 11pt; white-space-collapse: preserve;">When it comes to marketing goals, opting to add Salesforce Forms to your campaigns is a good idea if you want faster processes.</span></p><span id="docs-internal-guid-c77e32e1-7fff-9537-7630-13e2a12cbcbb"><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">Join us in the article below as we explore Salesforce and</span><a href="https://titandxp.com/salesforce/forms/" style="text-decoration-line: none;"><span style="color: black; font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"> </span><span style="color: #1155cc; font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;">Titan Forms</span></a><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"> as reliable software to help your marketing professionals engage faster and better with customers.</span></p><h2 dir="ltr" style="line-height: 1.38; margin-bottom: 4pt; margin-top: 18pt;"><span style="font-family: Arial, sans-serif; font-size: 17pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">Salesforce Forms for Marketing | Automating Processes</span></h2><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">There are many reasons for choosing Salesforce Forms to help automate your marketing processes. One of the most common tasks you can automate with Salesforce Forms is generating new leads.</span></p><h3 dir="ltr" style="line-height: 1.38; margin-bottom: 4pt; margin-top: 14pt;"><span style="font-family: Arial, sans-serif; font-size: 13pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">Salesforce Web Forms in Lead Generation</span></h3><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">Use Salesforce marketing automation tools to create a form and then embed it on your website, such as a web-to-lead form from Salesforce.</span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">Now, when visitors enter your website, they can submit information on that Salesforce web-to-lead form, which will be pushed to your customer relationship management platform as lead data.</span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">You will be happy to know that you can also use web forms from Salesforce on landing pages or your social media apps. As we can see, using Salesforce Forms in this way automates data collection tasks from end to end.</span></p><h2 dir="ltr" style="line-height: 1.38; margin-bottom: 4pt; margin-top: 18pt;"><span style="font-family: Arial, sans-serif; font-size: 17pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">Salesforce Dynamic Forms in Marketing Automation </span></h2><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">You can find Dynamic Forms within Salesforce Lightning Experience and use it to organize your record pages according to your marketing team's needs. Dynamic Forms works well with standard and custom objects in your Sales or Service Clouds so that your marketing professionals can create custom user interfaces that will display information that is specific to their duties and tasks. With Dynamic Forms, your marketers can quickly find the information they need, instead of wasting time hunting down customer data across multiple marketing automation platforms.</span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">Regarding automating marketing tasks, the Dynamic Forms feature gives your marketers superpowers when creating forms in Salesforce, as they are distinct to their unique team goals and requirements. This marketing automation with Salesforce is essential for adapting to communicating with specific customers.</span></p><h2 dir="ltr" style="line-height: 1.38; margin-bottom: 4pt; margin-top: 18pt;"><span style="font-family: Arial, sans-serif; font-size: 17pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">Salesforce Forms for B2B Marketing Automation Platforms</span></h2><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">We spoke about generating leads and creating forms for data collection from customers. But how can Salesforce help you automate processes with business-to-business (B2B) operations?</span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">Salesforce can be used as your B2B marketing automation platform of choice. It offers robust automation tools and features like Salesforce Forms that allow your teams to create forms that can be embedded in your portals. These forms then capture information from your visitors and are saved in Salesforce for your benefit.</span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">To assist your B2B marketing automation and Salesforce plans, we suggest that you set up your custom objects with Salesforce Forms the way your marketers need. This will help you display your collected data appropriately so that your marketing teams can work effectively. For instance, you can use and reference these labels for your custom objects if you need a starting point:</span></p><ul style="margin-bottom: 0px; margin-top: 0px; padding-inline-start: 48px; text-align: left;"><li><span style="font-family: Arial, sans-serif; font-size: 11pt; white-space-collapse: preserve;">Leads</span></li><li><span style="font-family: Arial, sans-serif;"><span style="font-size: 14.6667px; white-space-collapse: preserve;">Partners</span></span></li><li><span style="font-family: Arial, sans-serif;"><span style="font-size: 14.6667px; white-space-collapse: preserve;">Trade Show Registrations</span></span></li></ul><h2 dir="ltr" style="line-height: 1.38; margin-bottom: 4pt; margin-top: 18pt;"><span style="font-family: Arial, sans-serif; font-size: 17pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">Salesforce Form Builder for Marketing Cloud</span></h2><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">If you are in the market for an alternative to Salesforce Forms, we suggest you check out Titan Forms. This powerful platform has web forms for any Salesforce use case and works with any object in your CRM platform.</span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">With Titan Forms, your marketing professionals can create custom forms that collect and pre-fill data into them directly from Marketing Cloud. The Marketing Cloud forms are smart and dynamic as they use conditional logic to make filling them out super easy for leads, prospects, and customers.</span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">Titan Forms can help automate marketing processes with no code simply by using a drag-and-drop Salesforce form builder.</span></p><h2 dir="ltr" style="line-height: 1.38; margin-bottom: 4pt; margin-top: 18pt;"><span style="font-family: Arial, sans-serif; font-size: 17pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">Marketing Cloud with Interactive Email Forms</span></h2><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">Up till now, we have covered web forms, but what about email forms? Salesforce gives us Interactive Email Forms to improve customer experiences. Interactive Email Forms are quite convenient for your target audience. For instance, when you create and send them an email form, your customer or lead can view, fill out the form, and submit it, whenever they want, 24/7.</span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">With Marketing Cloud and Interactive Email Forms, you let users engage with a form from within an email, which is much better than clicking multiple links that direct them to new locations. In this way, Salesforce Marketing Cloud forms can increase your form response rates so that you can collect vital marketing information. You will be excited to hear that Interactive Email Forms can help you create surveys and quizzes, not just email forms.</span></p><h2 dir="ltr" style="line-height: 1.38; margin-bottom: 4pt; margin-top: 18pt;"><span style="font-family: Arial, sans-serif; font-size: 17pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">Connect Gravity Forms to Salesforce Marketing Cloud</span></h2><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">We discussed Titan as a powerful no-code platform for extending Salesforce Marketing Cloud projects. Let’s take a look at another promising tool that is popular for marketing automation with Salesforce.</span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">Gravity Forms is a plugin that can be found in WordPress. Marketers like this plugin as they can use it to create forms, specifically for their WordPress websites. Gravity Forms integrates well with Salesforce Marketing Cloud so that your form data is pushed directly to your CRM platform. We suggest integrating Gravity Forms and Salesforce if you would like to reduce the number of errors you usually obtain from manually entering data into your CRM platform.</span></p><h2 dir="ltr" style="line-height: 1.38; margin-bottom: 4pt; margin-top: 18pt;"><span style="font-family: Arial, sans-serif; font-size: 17pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">Use Cases: Salesforce Forms in Marketing Automation </span></h2><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">Salesforce Forms plays a huge part in acquiring leads from its interactive web-to-lead forms to Salesforce email forms, and Salesforce surveys. All these automation capabilities are great for marketing initiatives like email campaigns. We understand that, generally speaking, these points make sense. But what does that look like in the real world?</span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">For our use case, we will demonstrate how Salesforce Forms is beneficial for automating a common marketing task, such as getting people to register for an event.</span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">Your marketers can use Salesforce Forms to create a form specifically for an event. This form will contain all the fields that capture details from customers who would like to attend the event. Once the form is approved, the marketing team can upload and embed it on a web page.</span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">Then, the marketing team can automate the whole event registration process by making sure the form pushes submitted data to Salesforce. The data can also be categorized smartly in Salesforce so that it is stored under the correct marketing campaign.</span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">This example shows that the automation of marketing processes makes your team's lives easier as they can manage events faster.</span></p><h2 dir="ltr" style="line-height: 1.38; margin-bottom: 4pt; margin-top: 18pt;"><span style="font-family: Arial, sans-serif; font-size: 17pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">Titan Forms: Best Salesforce Automation Tools</span></h2><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">We recommend giving Titan a try if you want Salesforce marketing automation solutions for your projects. The robust platform is not just a form builder. Titan Forms works with any object and integrates 100% into Salesforce.</span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">You may use</span><a href="https://titandxp.com/salesforce/forms/" style="text-decoration-line: none;"><span style="color: black; font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"> </span><span style="color: #1155cc; font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;">Titan Forms</span></a><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"> to automate any business process. For instance, you can use submitted Salesforce form data to create and score leads. Titan also updates Salesforce records and creates reports based on your form data.</span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">We suggest using Titan Forms in Salesforce to make sure your business is aligned with customers for complex approval flows.</span></p><h2 dir="ltr" style="line-height: 1.38; margin-bottom: 4pt; margin-top: 18pt;"><span style="font-family: Arial, sans-serif; font-size: 17pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">Wrapping Up Salesforce Forms for Marketing Wins</span></h2><p dir="ltr" style="line-height: 1.38; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;">Thanks for taking the time to read our blog on Salesforce Forms and it’s impact in the marketing field. We covered a few topics: starting with creating forms in Salesforce and ending with Salesforce marketing automation solutions. We hope you enjoyed learning about Titan and Gravity Forms, and have a better understanding of the two popular software solutions for Salesforce form integration. </span></p><div><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"><br /></span></div></span>AJINKYA DHAS http://www.blogger.com/profile/13223328981950114267noreply@blogger.com0tag:blogger.com,1999:blog-8457518975744463615.post-18266222854729783952024-01-05T01:05:00.000-08:002024-01-05T01:40:26.221-08:00Salesforce Workflow Automations made possible with Titan Flow<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHj9I2YYtbDzfDUYsuGf0JM00gmbSZq1GKC2YQp_zvfctcyIRDgoTS4QUJtVFN1YsZyAb_lLAAZ5NjDsKXdKvgkBdVA3h7-yxakxWUtKou7r7wLF2PwgrfjzAHrGgq7eeGDUBDnfvyXljCedSJFPHRO_IQ1szt4qjX9oW_h26SCkGXzVSjex9uDtLQRFk/s1366/titenguest.jpg" style="margin-left: 1em; margin-right: 1em;"><img alt="Titen Guest Post on sfdckid.com" border="0" data-original-height="768" data-original-width="1366" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHj9I2YYtbDzfDUYsuGf0JM00gmbSZq1GKC2YQp_zvfctcyIRDgoTS4QUJtVFN1YsZyAb_lLAAZ5NjDsKXdKvgkBdVA3h7-yxakxWUtKou7r7wLF2PwgrfjzAHrGgq7eeGDUBDnfvyXljCedSJFPHRO_IQ1szt4qjX9oW_h26SCkGXzVSjex9uDtLQRFk/s16000/titenguest.jpg" title="Titen Guest Post on sfdckid.com" /></a></div><br /><p dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt;"><br /></p><p dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt;"><br /></p><p dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt;"><a href="https://titandxp.com/salesforce/automation/" style="text-decoration: none;"><span face="Arial,sans-serif" style="-webkit-text-decoration-skip: none; background-color: transparent; color: #1155cc; font-size: 12pt; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variant: normal; font-weight: 400; text-decoration-skip-ink: none; text-decoration: underline; vertical-align: baseline; white-space: pre;">Automating Salesforce</span></a><span face="Arial,sans-serif" style="background-color: transparent; color: black; font-size: 12pt; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;"> </span><span face="Arial, sans-serif"><span style="white-space-collapse: preserve;">workflows can be a game changer for your organization regardless of the industry or vertical you find yourself in. Of course, Salesforce has its own Flows which help you to craft personalized journeys for the user based on conditional logic and a series of automated steps. Using Salesforce Flows, you can streamline a variety of business processes from within your CRM and reduce dependence on manual work.
While Salesforce Flows is a nifty tool that solves a variety of use cases, it can be challenging to customize unless you want to invest in development or extensive coding. Furthermore, Salesforce Flows connects seamlessly to data within the #1 CRM but connecting it to external data and systems is significantly more complex. There are of course alternative process management tools that integrate with Salesforce and offer robust automation capabilities for end-to-end business processes. One such tool is Titan’s Flow product, which forms part of a market-leading no-code platform for Salesforce.
Not to be confused with Salesforce Flow, Titan Flow gives you the ability to combine a variety of processes in the Titan platform including form building, document generation and signing, web app creation, and lots more. Using Titan Flow, you can integrate seamlessly with a wide range of third-party systems such as Google Drive, Box, Amazon S3, OneDrive, FTP, and DropBox as well as perform numerous Salesforce and non-Salesforce actions. Below is an example of some of the actions you can perform with Titan Flow:</span></span></p><p dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt;"><span face="Arial,sans-serif" style="background-color: transparent; color: black; font-size: 12pt; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;"> </span><span face="Arial, sans-serif" style="font-size: 12pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"><span style="border: medium; display: inline-block; height: 188px; overflow: hidden; width: 624px;"><img height="188" src="https://lh7-us.googleusercontent.com/Mi6jV-FbFidrYBNS82_ls5DMiKjSo8opiHez0mnzjvUDMLk8eebHx02lV5Vkvg--9iWw9KQvbKEYXA3w09IcPBvNr6mJtNLhCkvB--PoyBTFWim3XVXvo-9Lj-SExPmz-pIS6fLNBLMLkAQFQJ9c404" style="margin-left: 0px; margin-top: 0px;" width="624" /></span></span><span face="Arial, sans-serif" style="font-size: 12pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline; white-space-collapse: preserve;"> </span></p><p dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt;"><span face="Arial,sans-serif" style="background-color: transparent; color: black; font-size: 12pt; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;"> </span><span face="Arial,sans-serif" style="background-color: transparent; color: black; font-size: 12pt; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;"><span style="border: medium; display: inline-block; height: 192px; overflow: hidden; width: 624px;"><img height="192" src="https://lh7-us.googleusercontent.com/Fta3Wol-ZmniLh4YcJZ7o2amX1XBw69jAv7ds2qdTYCiZVTw5XnW25SEE7AsqqPDLvP6UBfdcwPyswQcEBF4ZNeUClO87SgnaJfx8KJyWwCtLUF6gOCb6VWBpwBlpp8fJCdrssMVkQ3vZXrFPrRiaNA" style="margin-left: 0px; margin-top: 0px;" width="624" /></span></span></p><p dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt;"><span face="Arial,sans-serif" style="background-color: transparent; color: black; font-size: 12pt; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;"><br /></span><span style="background-color: transparent; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline;"><span face="Arial, sans-serif"><span style="font-size: 12pt; white-space-collapse: preserve;">In this article, we check out a couple of workflow processes you can perform with Titan Flow and how its workflow management can minimize manual labor and enhance productivity. Titan Flow is completely declarative and enables you to create flows using absolutely no code. </span></span> </span></p><p dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline;"><span face="Arial, sans-serif"><span style="white-space-collapse: preserve;"><br /></span></span></span></p><p dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline;"><span face="Arial, sans-serif"><span style="white-space-collapse: preserve;"><b><span style="font-size: large;">Process Automation for Loan Approvals</span></b>
First up, we take a look at a use case that illustrates a loan approval process in Titan Flow. Here, we explain how data can be approved before it gets to Salesforce so that you don’t have to clutter your CRM with unnecessary data and you don’t have to add extra automation, flows, and process builders inside Salesforce.
Using Titan Flow it is possible to set up a loan request form, enable applicants to submit a loan request, have this request sent to multiple approvers, and trigger rejection or acceptance emails. All this data is synced seamlessly to Salesforce in real-time using absolutely no code.
In this use case, these are the main steps in our flow:
1. In this Flow we start with a form, where a loan applicant can fill in their details including contact information, requested loan amount, and the reason they are applying for the loan.
2. Once the form is completed and submitted, the loan applicant gets sent a thank you email.
3. The form is then sent to an approver, this can be based on an object in Salesforce, or a role particular to your business flow. They can approve or reject the form using a button via email, which enables them to review the complete information on the form. If the form is approved it goes to a second approver. If it is rejected then the original applicant gets an email to say that they have been rejected for the loan.
4. If the form is sent to the second approver they can choose to either trigger a rejection email or approve the loan.
5. If the second approver approves the loan request form then this is pushed to Salesforce.
6. Finally an approval email is sent to the loan applicant to inform them that they have been successful on their application.
This is just one way that you can make the lives of your employees and customers easier and more seamless. See an example of a use case like this as set up in the Titan Flow Builder:
</span></span>
</span></p><p dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt;"><span face="Arial,sans-serif" style="background-color: transparent; color: black; font-size: 12pt; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;"><br /></span><span face="Arial,sans-serif" style="background-color: transparent; color: black; font-size: 12pt; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;"><span style="border: medium; display: inline-block; height: 345px; overflow: hidden; width: 624px;"><img height="345" src="https://lh7-us.googleusercontent.com/26QUBp717ML6PIvQ5i_-ZLaMg5mXbG6tUDOG6oJPJbzzgxTYJeebOF5ABS4Qze8hCZaUVDrk-hJGD6sX6qkSnWw2-GapEdLPooys4SuNJaUDV84jCpx14deO4UiJCuactxVQqA8fpr8SNTdl4GN6Vkg" style="margin-left: 0px; margin-top: 0px;" width="624" /></span></span></p><p><br /></p><p><span style="font-family: arial;">Work Process: Convert a Single File to PDF </span></p><p><span style="font-family: arial;">Another nifty action you can perform easily and code-free with Titan Flow is converting a single File to PDF. Check out this YouTube video below for all the details: </span></p><p dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt;"><a href="https://www.youtube.com/watch?v=Fy9mlVqe8aY" style="text-decoration: none;"><span data-rich-links="{"fple-t":"Titan Flow - Convert a Single File to PDF","fple-u":"https://www.youtube.com/watch?v=Fy9mlVqe8aY","fple-mt":null,"type":"first-party-link"}" face="Arial,sans-serif" style="-webkit-text-decoration-skip: none; background-color: transparent; color: #1155cc; font-size: 12pt; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variant: normal; font-weight: 400; text-decoration-skip-ink: none; text-decoration: underline; vertical-align: baseline; white-space: pre;">Titan Flow - Convert a Single File to PDF</span></a> </p><p dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt;"></p><div class="separator" style="clear: both; text-align: center;"><iframe allowfullscreen="" class="BLOG_video_class" height="266" src="https://www.youtube.com/embed/Fy9mlVqe8aY" width="320" youtube-src-id="Fy9mlVqe8aY"></iframe></div><br /><span style="background-color: transparent; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; vertical-align: baseline;"><br />
<span face="Arial, sans-serif"><span style="white-space-collapse: preserve;">
In this example, we see that you can use Titan Flow to convert a single file (for example a Word document or Excel Sheet) to a PDF in just a few simple clicks. This is achieved using the merge function in Titan Flow.
Remember that before you can execute this conversion in Titan, you need to have uploaded the document you want to convert. This can be a document from anywhere you like including Salesforce or a Titan Web project.
Steps to set up Flow:
1. First up, you need to click the plus icon to insert a node. After this, the Add Node screen opens in your Titan Flow:
</span></span></span><p></p><div><span face="Arial,sans-serif" style="background-color: transparent; color: black; font-size: 12pt; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;"><br /></span></div><p dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt;"><span face="Arial,sans-serif" style="background-color: transparent; color: black; font-size: 12pt; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;"><span style="border: medium; display: inline-block; height: 237px; overflow: hidden; width: 300px;"><img height="237" src="https://lh7-us.googleusercontent.com/HJLijijR382o9Gek6y7NtMFvwX_LTxtLcxyPc-LBBYmB02x08j6eXPS0sWQrmamtUnZUp2gYoGdPJ-ljoadVkkZtS7G1R7dPsTkwIC7_DlRJdO4bF2RDl1H3R2WbYm0Dw68zWkfIETKkcNxl-kDzBBI" style="margin-left: 0px; margin-top: 0px;" width="300" /></span></span></p><p><span style="font-family: arial;"><br />2. Under the Action sections, be sure to select the Merge Files option because this is what will trigger your file conversion: </span></p><p dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt;"><span face="Arial,sans-serif" style="background-color: transparent; color: black; font-size: 12pt; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;"><span style="border: medium; display: inline-block; height: 372px; overflow: hidden; width: 624px;"><img height="372" src="https://lh7-us.googleusercontent.com/624ce3LdmXZljrBcfMlhfShViwWP3cK4qFepLIw7iUCNR_8wpTh2XPbHSsl3r_zHf-PshNBLoCGCdLbY4_WcoR6MxZ_mNMRsm39dV8RChf74W0CUXZif6N7pRxyND4ff3OlbBq_7X_u6NxjYWQ_OUh0" style="margin-left: 0px; margin-top: 0px;" width="624" /></span></span></p><p dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt;"><span face="Arial, sans-serif"><span style="white-space-collapse: preserve;"><br /></span></span><span style="font-family: arial;">3. After this, you can choose to either select the custom static variable from your dropdown (this is the ID associated with your uploaded doc) or to select the file from the Files dropdown. Next, select the custom file variable from “Map To”, and PDF as your desired output format. </span></p><p dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt;"><span face="Arial,sans-serif" style="background-color: transparent; color: black; font-size: 12pt; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;"><span style="border: medium; display: inline-block; height: 371px; overflow: hidden; width: 624px;"><img height="371" src="https://lh7-us.googleusercontent.com/0pJCg8dD9ifqhZtEyEyoPClLz4tyUBtf6imph0_D7iYlmy7tA6LjBWXvqw7w13b5SLJcEkx5fFLb0j1TuecfxFFpK03APP1QdBdlQqlLjU7xrnXFE6SH2W6b8UN7JMAL1LfcbLu8RyBbWy7Q4G8pNfw" style="margin-left: 0px; margin-top: 0px;" width="624" /></span></span><span face="Arial,sans-serif" style="background-color: transparent; color: black; font-size: 12pt; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;"><br /></span><span style="font-family: arial;"><br />4. In this instance, we are only working with one Word Document so there is no need to change the File order list: </span></p><p dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt;"><span face="Arial,sans-serif" style="background-color: transparent; color: black; font-size: 12pt; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;"><span style="border: medium; display: inline-block; height: 375px; overflow: hidden; width: 624px;"><img height="375" src="https://lh7-us.googleusercontent.com/E9DtLsd7nfTIRSpMGWOOrZKj952bwna4BH4uy9Yxweh4o5WUujPmIcguAPbL6BYeDdwInFVtlCiNdgfxFU2XLF8LKjmlRkx6efHuIP-lNOk7iyMJUHEtSStlPX4q-MNlsWHxaXCX1HVv9imVo0-df9o" style="margin-left: 0px; margin-top: 0px;" width="624" /></span></span><br /></p><p dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt;"><span style="white-space-collapse: preserve;"><span face="Arial, sans-serif">
</span></span></p><div style="text-align: left;"><span style="white-space-collapse: preserve;"><span style="font-family: arial;">5. Finally, you can write a custom tag for this merge action and insert it into your flow. You of course need to save the project to make sure your flow works properly. </span></span></div><div style="text-align: left;"><span style="font-family: arial;"><br /></span></div><div style="text-align: left;"><span style="font-family: arial;"><span style="font-size: large;"><b>Titan Flow Wrapped<br /></b></span></span><span style="font-family: arial;">Thanks for reading, we hope you learned more about the ease and convenience with which you can create automated workflows with the speed, power, and precision of Titan Flow. Its robust workflow tools enable you to set up custom workflows in the blink of an eye using zero code. Titan Flow complements other Titan modules such as Titan Web, empowering you to create end-to-end business processes that transform the lives of your employees and customers. </span></div><p></p><div><span face="Arial,sans-serif" style="background-color: transparent; color: black; font-size: 12pt; font-style: normal; font-variant-alternates: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-position: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;"><br /></span></div>AJINKYA DHAS http://www.blogger.com/profile/13223328981950114267noreply@blogger.com0tag:blogger.com,1999:blog-8457518975744463615.post-76036067571491581742023-11-30T01:35:00.000-08:002023-11-30T02:26:16.405-08:00Top 10 Salesforce eSign Solutions<p style="text-align: justify;"><b><span style="font-family: arial;"> </span></b></p><p style="text-align: center;"><span style="font-size: 34.6667px; text-align: left; white-space-collapse: preserve;"><span style="font-family: arial;"><b>Top 10 Salesforce eSign Solutions</b></span></span></p><p style="text-align: left;"></p><div style="text-align: justify;"><span style="font-family: arial;"><br /></span></div><span style="font-family: arial;"><div style="text-align: justify;">Today let's talk about what the best Top 10 Salesforce eSign Solutions are available in the market.</div></span><p></p><h1 dir="ltr" style="line-height: 1.8; margin-bottom: 6pt; margin-top: 20pt; text-align: justify;"><span style="background-color: transparent; color: black; font-family: arial; font-size: large; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre;">What is eSign?</span></h1><div style="text-align: justify;"><span style="font-family: arial;"><span style="white-space-collapse: preserve;"><span style="font-size: 14.6667px;">“eSign” stands for e-signature or electronic signature. In short: It's a digital alternative to physically signing documents.
An electronic signature is a way of signing documents online using a digital image of one's signature, a typed name, a unique identifier, or other methods to authenticate and show agreement to the content of a document or contract.
eSignatures are legally binding in many countries and industries when certain criteria are met, such as ensuring the signers’ intent to sign, the authenticity of the document, and the ability to verify the identity of the signer. Various laws and regulations, such as the Electronic Signatures in Global and National Commerce (ESIGN) Act in the United States and the eIDAS Regulation in the European Union, govern the use and validity of electronic signatures.
eSignatures are convenient, quick, and efficient when signing contracts, agreements, forms, and other documents without the need for physical copies or in-person signatures, streamlining processes and reducing paperwork.
What are the three main types of electronic signatures?
</span><b><span style="font-size: medium;">Basic Electronic Signature (BES): </span></b><span style="font-size: 14.6667px;">
This is the most basic type of electronic signature and is not legally binding in all jurisdictions. It is typically used for documents where the level of risk associated with the agreement or document is relatively low, such as routine agreements, online forms or informal contracts. It can be as straightforward as typing your name into a document, clicking an "I agree" checkbox, or using a scanned image of your signature.
</span><b><span style="font-size: medium;">Advanced Electronic Signature (AES): </span></b></span></span></div><div style="text-align: justify;"><span style="font-family: arial;"><span style="white-space-collapse: preserve;"><span style="font-size: 14.6667px;">This type of electronic signature is more secure than BES and is typically used for documents that require a higher level of security, such as legally binding contracts, regulatory requirements or international agreements. AES often incorporates elements like cryptographic techniques to uniquely link the signature to the signer and detect any changes made to the document after signing.
</span><b><span style="font-size: medium;">Qualified Electronic Signature (QES): </span></b></span></span></div><div style="text-align: justify;"><span style="font-family: arial;"><span style="white-space-collapse: preserve;"><span style="font-size: 14.6667px;">This is the most secure type of electronic signature and is legally equivalent to a handwritten signature. They meet specific standards and requirements set by laws and regulations in various regions, such as the eIDAS Regulation in the European Union. QES often involve stringent identity verification and rely on certified digital signature creation devices or qualified service providers to create highly secure signatures. QES are used on legal and government documents, financial and banking transactions and long-term agreements where the future proof of authenticity is crucial.
Each type of electronic signature varies in terms of security, legality, and the level of assurance they provide regarding the identity of the signer and the integrity of the signed document. The choice of which type to use often depends on the specific requirements of the document, the level of security needed, and the legal regulations governing electronic signatures in a particular jurisdiction.
How are electronic signatures created and applied?
</span><b><span style="font-size: medium;">Built-in Software: </span></b></span></span></div><div style="text-align: justify;"><span style="font-family: arial;"><span style="white-space-collapse: preserve;"><span style="font-size: 14.6667px;">Many applications and software, like Adobe Acrobat, Microsoft Word, and others, offer built-in e-signature functionalities that allow users to create and apply electronic signatures directly within the software itself.
</span><b><span style="font-size: medium;">Digital Pen or Stylus:</span></b></span></span></div><div style="text-align: justify;"><span style="font-family: arial;"><span style="white-space-collapse: preserve;"><span style="font-size: 14.6667px;"> Some devices, such as tablets or touchscreens, allow users to create handwritten signatures using a digital pen or stylus, which can be captured and applied to documents.
</span><b><span style="font-size: medium;">Custom-built Solutions:</span></b></span></span></div><div style="text-align: justify;"><span style="font-family: arial;"><span style="font-size: 14.6667px; white-space-collapse: preserve;">Organizations might develop their own systems or workflows that facilitate the creation and management of electronic signatures without relying on third-party platforms.
<br /></span></span></div><div style="text-align: justify;"><span style="font-family: arial;"><span style="white-space-collapse: preserve;"><span style="font-size: 14.6667px;">However, third-party platforms offer additional benefits:
</span><ul style="font-size: 14.6667px;"><li><span style="font-family: arial;"><span style="font-size: 14.6667px; white-space-collapse: preserve;">Reputable e-signature platforms often have robust security measures and comply with legal standards and regulations concerning electronic signatures.
<br /></span></span></li><li><span style="font-family: arial;"><span style="font-size: 14.6667px; white-space-collapse: preserve;">Dedicated e-signature platforms often provide user-friendly interfaces and tools that streamline the signature process, making it easier for multiple parties to sign documents.
Third-party platforms frequently offer features like audit trails, tracking, and notifications, providing a clearer record of the signature process and enhancing accountability.
<br /></span></span></li><li><span style="font-family: arial;"><span style="font-size: 14.6667px; white-space-collapse: preserve;">Third-party platforms can simplify and enhance the electronic signature process, especially when dealing with multiple signers, complex documents, or when compliance and security are critical factors.
</span></span></li></ul><span style="font-size: 14.6667px;">Dedicated e-signature platforms often provide user-friendly interfaces and tools that streamline the signature process, making it easier for multiple parties to sign documents.
Third-party platforms frequently offer features like audit trails, tracking, and notifications, providing a clearer record of the signature process and enhancing accountability.
Third-party platforms can simplify and enhance the electronic signature process, especially when dealing with multiple signers, complex documents, or when compliance and security are critical factors.
</span><b><br /></b></span></span></div><div style="text-align: justify;"><span style="font-family: arial; font-size: medium;"><span style="white-space-collapse: preserve;"><b>Who are the top 10 eSign platforms?</b></span></span></div><div style="text-align: justify;"><span style="font-family: arial;"><span style="white-space-collapse: preserve;">
<b><span style="font-size: large;">DocuSign</span></b>
This widely used platform is known for its robust features, integrations with various applications, and compliance with multiple legal standards worldwide. It offers a range of features such as document preparation, signing, and tracking.</span></span></div><div style="text-align: justify;"><span style="font-family: arial;"><span style="white-space-collapse: preserve;">
<b><span style="font-size: large;">Adobe Sign</span></b>
Part of the Adobe Document Cloud, this highly accessible and powerful digital signature tool offers powerful e-signature capabilities integrated with Adobe's suite of document tools.</span></span></div><div style="text-align: justify;"><span style="font-family: arial;"><span style="white-space-collapse: preserve;">
<b><span style="font-size: large;">PandaDoc</span></b>
This all-in-one document automation solution includes e-signatures, proposals, quotes, and contracts. It is a powerful platform that is well-suited for businesses that need to automate their document workflows.</span></span></div><div style="text-align: justify;"><span style="font-family: arial;"><span style="white-space-collapse: preserve;">
<b><span style="font-size: large;">HelloSign</span></b>
HelloSign is known for its ease of use and seamless integration with Google Workspace and is favored for its simplicity and accessibility.</span></span></div><div style="text-align: justify;"><span style="font-family: arial;"><span style="white-space-collapse: preserve;">
<b><span style="font-size: large;">SignNow</span></b>
This provider offers a user-friendly interface, various integrations, and customizable templates for document signing and is an affordable e-signature platform that is popular for its value.
<span style="font-size: large;">
<b>eSignatures.io </b></span>
eSignatures.io is a cloud-based e-signature platform that is designed for developers. It is a powerful platform that is easy to integrate with other applications. </span></span></div><div style="text-align: justify;"><span style="font-family: arial;"><span style="white-space-collapse: preserve;">
<b><span style="font-size: large;">SignEasy</span></b>
This option is known for its straightforward mobile-friendly interface and ease of use for individuals and small businesses. It provides options for iOS and mobile platforms.</span></span></div><div style="text-align: justify;"><span style="font-family: arial;"><span style="white-space-collapse: preserve;">
<b><span style="font-size: large;">OneSpan Sign </span></b>
OneSpan Sign offers strong security features and compliance with various regulations and is often used in industries with high-security requirements.</span></span></div><div style="text-align: justify;"><span style="font-family: arial;"><span style="white-space-collapse: preserve;">
<b><span style="font-size: large;">Zoho Sign</span></b>
Part of the Zoho suite, it provides seamless integration with other Zoho products and offers a range of features for document signing.</span></span></div><div style="text-align: justify;"><span style="font-family: arial;"><span style="white-space-collapse: preserve;">
<span style="font-size: large;"><b><a href="https://titandxp.com/salesforce/e-signature/" rel="nofollow" target="_blank">Titan Sign</a></b>
</span>Sign, seal, and deliver agreements instantly anywhere in the world with everything tracked in Salesforce using Titan’s no-code eSignature solution for computer and mobile devices.
<br /></span></span></div><div style="text-align: justify;"><span style="font-family: arial;"><span style="white-space-collapse: preserve;">Key features of Titan Sign include:
<ol><li><span style="font-family: arial;"><span style="white-space-collapse: preserve;">Titan Sign integrates seamlessly with Salesforce, so users can send, sign, and manage documents directly from within Salesforce without switching between applications.
<br /></span></span></li><li><span style="font-family: arial;"><span style="white-space-collapse: preserve;">Titan Sign provides a code-free signature builder that makes it easy to create and customize signature requests. Users can easily add fields, annotations, and other elements to their signature requests.
<br /></span></span></li><li><span style="font-family: arial;"><span style="white-space-collapse: preserve;">It supports multiple signature workflows, allowing businesses to customize the process for collecting signatures. This makes it possible to accommodate different types of documents and business processes.
<br /></span></span></li><li><span style="font-family: arial;"><span style="white-space-collapse: preserve;">Titan Sign enables real-time collaboration on documents, allowing multiple signers to view and sign documents simultaneously. This streamlines the process and reduces the time it takes to complete transactions.
<br /></span></span></li><li><span style="font-family: arial;"><span style="white-space-collapse: preserve;">The platform maintains an audit trail of all e-signatures, ensuring that the signing process is transparent and compliant with all relevant laws and regulations.
<br /></span></span></li><li><span style="font-family: arial;"><span style="white-space-collapse: preserve;">Titan Sign is a scalable solution that can accommodate the needs of businesses of all sizes, from small businesses to enterprises. It can handle large volumes of documents and multiple users simultaneously.
<br /></span></span></li><li><span style="font-family: arial;"><span style="white-space-collapse: preserve;">Titan Sign offers competitive pricing plans that are tailored to the needs of different businesses. It can save businesses money on paper, postage, and labor costs associated with traditional paper-based signatures.</span></span></li></ol></span></span></div><p dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt; text-align: justify;"><span style="color: #1f1f1f; font-family: arial; font-size: 14.6667px; white-space-collapse: preserve;"><br /></span></p><p dir="ltr" style="line-height: 1.8; margin-bottom: 0pt; margin-top: 0pt; text-align: center;"><span style="color: #1f1f1f; font-family: arial; font-size: 14.6667px; white-space-collapse: preserve;">Happy learning ❤️</span></p>AJINKYA DHAS http://www.blogger.com/profile/13223328981950114267noreply@blogger.com0tag:blogger.com,1999:blog-8457518975744463615.post-5319822288261389072023-10-19T03:15:00.000-07:002023-10-19T03:15:03.533-07:00Salesforce Automation for Document Generation & Signing<p> </p><span id="docs-internal-guid-b9c27dfb-7fff-a3d9-7f34-546e11c98d06"><p dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;">If you are a Salesforce geek, then you probably already know that automation is one of the biggest advantages the #1 CRM provides. The Salesforce platform and its workflow automation tools can help you streamline almost any business process you can think of. In this article, we focus on how to automate document generation and signing processes in Salesforce, with the help of Titan, a no-code platform built for Salesforce. The benefits of automating both your doc gen processes and your</span><a href="https://titandxp.com/salesforce-e-signatures/" style="text-decoration-line: none;"><span style="color: #1155cc; font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;"> Salesforce eSignatures</span></a><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;"> are that you will ramp up efficiency, save on administrative time, promote accurate data entry, and close your biggest deals fast.</span></p><h2 dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 4pt; margin-top: 18pt;"><span style="font-family: Arial, sans-serif; font-size: 17pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;">Business Automation for Salesforce Doc Gen</span></h2><p dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;">First up, we take a look at how you can automate your document generation for Salesforce using Titan combined with the power of Salesforce Flows.</span></p><p dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;">Salesforce Flows is a workflow tool designed to help you automate your business processes and increase efficiency in your organization. Using Salesforce Flows, you have the ability to curate guided and personalized experiences for users by automating any number of steps in a workflow process to suit the needs of your company and niche.</span></p><p dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;">Titan Docs is a market-leading Salesforce solution that enables you to dynamically generate documents, such as quotes, proposals, and invoices, using real-time Salesforce data. You can work with any standard or custom object in Salesforce and push any doc to Salesforce in seconds.</span></p><p dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;">Before we learn more about triggering a Titan document from within a Salesforce Flow, ensure that you have an API-enabled edition of Salesforce and that you have installed</span><a href="https://appexchange.salesforce.com/appxListingDetail?listingId=a0N3A00000EvaSKUAZ" style="text-decoration-line: none;"><span style="color: black; font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;"> </span><span style="color: #1155cc; font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;">Titan via the AppExchange</span></a><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;">. Finally, remember to</span><a href="https://support.titandxp.com/platform/salesforce/integration-connect/?_ga=2.265322447.1331846978.1697446637-1414535010.1689847058" style="text-decoration-line: none;"><span style="color: black; font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;"> </span><span style="color: #1155cc; font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;">connect Titan to Salesforce</span></a><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;">.</span></p><p dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;">You can work with any Salesforce record but for this use case, we will look at an Account:</span></p><p dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;"><span style="border: none; display: inline-block; height: 319px; overflow: hidden; width: 624px;"><img height="319" src="https://lh5.googleusercontent.com/_ramqTHhw66nkLvxQZeqd-MXkn5e-9dmOYWX6V3lWGyV1dMgpyfMMOUzE4T89H5jobdwMgfskXaVEgGw4FKir9WGqHU2eT7GW4BgXedV8cqIuidon1Po_3mVKGCWBvx6o7VFAxkI2Nrye3bVflmyxdY" style="margin-left: 0px; margin-top: 0px;" width="624" /></span></span></p><p dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;">After this, as an example, you can log a call:</span></p><p dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;"><span style="border: none; display: inline-block; height: 768px; overflow: hidden; width: 624px;"><img height="768" src="https://lh5.googleusercontent.com/l25gHzPju1F6upuAbgxfgQ9EZI_41CBo7MPN0Vm2nyhqB8-SZX5BTbG-c8BYdggeDahNE5N1uEjddNL5ey9AX1LwTpSdAkfbR9kzMD3PaDIP8YiNHO0Ud2nkQET_JL4z9T73xOWBvbEHNCncsGDirUE" style="margin-left: 0px; margin-top: 0px;" width="624" /></span></span></p><br /><p dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;">After you click save, this data will be visible in a document that will be sent to you and relevant users. Let’s see how this works in a Salesforce Flow!</span></p><p dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;">Visualize your process automation solution in a Salesforce Flow, where you can use a trigger of your choice to send your document. In the scenario below, we have set up our flow for the Account object, where the trigger is pulled every time an Account record is updated:</span></p><p dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;"><span style="border: none; display: inline-block; height: 251px; overflow: hidden; width: 624px;"><img height="251" src="https://lh5.googleusercontent.com/zoUeksDE2D-0BhOT8CgB8m67aBvdEN5wTcjrNFKKE1oGcuDIkgfq4KDF3OSD1UpRVbGj0W4fnkZ1AlDtUlDr0Kqcrv_81BhtF4uWtnyzWRDuwimlYkpirmw4oCJjbWSklYAviehX4U_5TEDEz30zIhg" style="margin-left: 0px; margin-top: 0px;" width="624" /></span></span></p><br /><br /><p dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;">Using Titan’s package for Salesforce, you can call Titan using a custom Apex Class. It is this Apex Class that will ultimately generate your document. The Apex Class is called FTDocGen and for it to work properly, you need to correctly set its input values: the APIKey and FormHash of your document, as well as the ID of your object:</span></p><p dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;"><span style="border: none; display: inline-block; height: 381px; overflow: hidden; width: 624px;"><img height="381" src="https://lh5.googleusercontent.com/NXfc40Rzeb5O53zcpRRAi-XglgAvxZep6FxB45M-WZ1OKomm5l_-DzUtdjfFgkJF3MIOn_8R4CEqulkkM7GSN8eDprZy2gLVaY-CG-QuG2xNhjXeWHKkOEtL_WUjSaegjokgVXt7e06sran1plDwMOo" style="margin-left: 0px; margin-top: 0px;" width="624" /></span></span></p><p dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;">To get complete information on how to find these input values, check out the section on document generation in this</span><a href="https://support.titandxp.com/platform/apex-class-ftdocgen/" style="text-decoration-line: none;"><span style="color: black; font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;"> </span><span style="color: #1155cc; font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;">FTDocGen guide</span></a><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;">. To find out more about how Titan’s package can streamline your process automation solutions, read more about its</span><a href="https://support.titandxp.com/platform/formtitan-package-for-salesforce/" style="text-decoration-line: none;"><span style="color: black; font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;"> </span><span style="color: #1155cc; font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;">Salesforce package</span></a><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;">.</span></p><p dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;">Once these steps are complete, your document and all its changes will be attached to an email. You will be able to see the call you logged in your Account. This document is fully dynamic:</span></p><p dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;"><span style="border: none; display: inline-block; height: 225px; overflow: hidden; width: 624px;"><img height="225" src="https://lh4.googleusercontent.com/VsKffuMDJq7owdOrcbrVlkd7qSBrmPobSD-zGW4d8X9VCJJeBycncPRmlGTX2Q5H7de-trT2jlYhL__TmtHr-ek44QBmORiT2XW87M_WU1SS_T1mTtQdoQcOzSkAnSHy9A73ybTe-nl19v-pQJGybkY" style="margin-left: 0px; margin-top: 0px;" width="624" /></span></span></p><p dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;">Check out this video to learn more:</span><a href="https://www.youtube.com/watch?v=YhNQDLwziTk" style="text-decoration-line: none;"><span style="color: black; font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;"> </span><span style="color: #1155cc; font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;">Automate Doc Gen with Salesforce Flow</span></a><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;">.</span></p><h2 dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 4pt; margin-top: 18pt;"><span style="font-family: Arial, sans-serif; font-size: 17pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;">Process Automation for Signing Documents</span></h2><p dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;">Now that we have taken a look at a use case for automating document generation from within a Salesforce Flow, let’s examine how you can automate signing processes using Titan Sign and Salesforce’s workflow tools. </span></p><p dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;">As mentioned in the above Doc Gen section, you will need to have installed Titan and have an API-enabled edition of Salesforce to get going.</span></p><p dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;">Titan Sign enables you to work with any record of your choosing in Salesforce, but for the sake of this example, we are using a Standard Opportunity:</span></p><p dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;"><span style="border: none; display: inline-block; height: 277px; overflow: hidden; width: 624px;"><img height="277" src="https://lh4.googleusercontent.com/vmGgJ525ZXnEnIql8Yszwpg7D7uh-581rAc7NAL8oooNzNJpEni25MgkyYkndkGS1w4hLd8CHrksfGU8Mqzj7adYgxCAIFQ36SHtWlHOY4nO25UVnmihYQzsEuMOe7cZs-H2wIfx6d4y3Ss6d-VKdsU" style="margin-left: 0px; margin-top: 0px;" width="624" /></span></span></p><br /><p dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;">In order to illustrate this use case, we have changed the stage of the Opportunity below to “Proposal/ Price Quote”, before marking it as complete:</span></p><p dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;"><span style="border: none; display: inline-block; height: 297px; overflow: hidden; width: 624px;"><img height="297" src="https://lh5.googleusercontent.com/mjGKoskZkhxNxOPHr17xdEkLzbuCSA7Yvgpy2wYlkCBdXcRMjggyqXhnpnT1u1UO1NKzcQIrDN9iofzDsh4gS7ASftkfM0gOJdb6-ppoCnyOsPuPfVttTygQkVl3tNUyF8fvVSPNBuptPDvMbyIoxN4" style="margin-left: 0px; margin-top: 0px;" width="624" /></span></span></p><p dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;">As we will see in just a moment, this is the action that will send a dynamic document to be signed by an internal or external user.</span></p><p dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;">Let’s head over to our Salesforce Flow to see how this is all setup. You can see that the Opportunity object is configured at the start of the flow:</span></p><p dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;"><span style="border: none; display: inline-block; height: 304px; overflow: hidden; width: 624px;"><img height="304" src="https://lh4.googleusercontent.com/U7-lmBUKKtmYfM7e5wHUTxNvL_HU7974330a8mZB33eRXMg9g1wFLKKO92z9z4nj-7gtM-e6lAq-Fs_20z6tnKJ7c6gVuy75gJYHyHuAQujNU-HYGDNHV86nKJW0-fjZakx0Xjd57bY4YGAPrLebHv8" style="margin-left: 0px; margin-top: 0px;" width="624" /></span></span></p><br /><p dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;">Simply click on this object to find out what makes it tick and you will see that the flow will be triggered every time you update a record:</span></p><p dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;"><span style="border: none; display: inline-block; height: 303px; overflow: hidden; width: 624px;"><img height="303" src="https://lh5.googleusercontent.com/y1IIUuvwclGAwb2ca2cUsb4DizHTfmx97migQBXWHE6vtn2uT9z5ArWkdrab3eXrNjXbob1wqy-IhtIk3jb8y2oYADgMv9RawK2qAqhT7SOgp5xVKPI9VSMLWkYimhawDXaj9j0ENHsLT5OUpwnHMlk" style="margin-left: 0px; margin-top: 0px;" width="624" /></span></span></p><p dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;">You will also be able to see that the conditions for this record are “StageName Equals Proposal/Price Quote”. (You might remember that you met this condition a few steps back when updating your Opportunity).</span></p><p dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;"><span style="border: none; display: inline-block; height: 304px; overflow: hidden; width: 624px;"><img height="304" src="https://lh4.googleusercontent.com/o-2a9EUuhBtyV309FQMpTSO6gswIWZ6jgMquZFiquQ03_a4v4gIXbQAyImtP2inh031Eo8O8Uek48hMFO-bCORHlFJSIedWLeef7BI-c6DBdgMSs-bs_f3L-cS19nNzg3DYR5pNUw8mQwPF0hfiVPxg" style="margin-left: 0px; margin-top: 0px;" width="624" /></span></span></p><p dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;">But how does this trigger a signing process? Well, Titan Sign is triggered by an Apex Class, FTDocGen, that you can call from within your Salesforce Flow. This empowers you to automate the entire signing process.</span></p><p dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;">This Apex action requires the API Key and FormHash input values from the document you want signed as well as the ID of your object. Learn how to get these values in the section on</span><a href="https://support.titandxp.com/platform/apex-class-ftdocgen/" style="text-decoration-line: none;"><span style="color: black; font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;"> </span><span style="color: #1155cc; font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;">Titan Sign in this guide</span></a><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;">.</span></p><p dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;"><span style="border: none; display: inline-block; height: 384px; overflow: hidden; width: 624px;"><img height="384" src="https://lh5.googleusercontent.com/Yj4jgcrKE0EywtxibspOeT1Or9aays58blhdUvSocry5Y99ixwJ_UkQI1qaZQkH4kPpwBr_wj9KhgLSF-quj596zyw52fsb2FA6EqBU1lrX50eYtLtH4_ABMy1RWbz9rL1IxfpBUwcMief9dZ-gyNs8" style="margin-left: 0px; margin-top: 0px;" width="624" /></span></span></p><br /><p dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;">You have viewed what this automation looks like within a Salesforce Flow. Next, check your inbox to verify that the action has been triggered successfully. And hey presto, you will see you received a request to sign a document. You can sign by clicking on the link to your document:</span></p><p dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;"><span style="border: none; display: inline-block; height: 244px; overflow: hidden; width: 624px;"><img height="244" src="https://lh5.googleusercontent.com/I9TNqAaL75omrfSA_Scedc44X9Mn0HixXl_8tuB6tw9Wu-pnmZh9ajyZPswFtL_kkf15ZkfCmlG_rSqX3FEP1TkdjTlaD7dk5jHXOCjPf6XKqrfVFq7TJvbAHZKN9AGBZ34RjSsrbAaBuCaexRNp5rQ" style="margin-left: 0px; margin-top: 0px;" width="624" /></span></span></p><p dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;">If you want, you can choose to set up 2FA so that the user will need to authenticate themselves at this stage. When your document opens in the Titan software, you can fill it in, map relevant fields to Salesforce, and click Finish Sign.</span></p><p dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;"><span style="border: none; display: inline-block; height: 332px; overflow: hidden; width: 624px;"><img height="332" src="https://lh5.googleusercontent.com/AIFJItZtzoyVm35-84isEl0TqjBIQdNbZBfsw4TIa-UvitV2jpTNxnbvadQ2IrIA_zVaCvvWJYft8TATl-KjhCt1t_VfLxw9evExBlfuPFkeZp6VlDzB4U5B0p1lJgf3HTyiJuatp_Kf5N3HrbGx-JY" style="margin-left: 0px; margin-top: 0px;" width="624" /></span></span></p><br /><p dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;">This is how you trigger a signing process from within a Salesforce Flow using Titan. Learn more via this video on Titan’s</span><a href="https://www.youtube.com/watch?v=6ERHLKRNDYg" style="text-decoration-line: none;"><span style="color: black; font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;"> </span><span style="color: #1155cc; font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; text-decoration-line: underline; text-decoration-skip-ink: none; vertical-align: baseline; white-space-collapse: preserve;">eSignatures for Salesforce</span></a><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;">.</span></p><h2 dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 4pt; margin-top: 18pt;"><span style="font-family: Arial, sans-serif; font-size: 17pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;">Workflow Automation Software for Salesforce</span></h2><p dir="ltr" style="line-height: 1.7999999999999998; margin-bottom: 12pt; margin-top: 12pt;"><span style="font-family: Arial, sans-serif; font-size: 11pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;">Thanks for reading, we hope you enjoyed learning more about Titan’s business automation software for Salesforce. Why not try this no-code solution next time you want to automate your document generation or signing processes? </span></p><br /></span>AJINKYA DHAS http://www.blogger.com/profile/13223328981950114267noreply@blogger.com0tag:blogger.com,1999:blog-8457518975744463615.post-56475235353945138992023-05-21T13:08:00.005-07:002023-05-23T05:03:19.995-07:00Automation Hunter For Salesforce | Find All Automations With 2 Clicks<h1 style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizLIUKpmH5m4n646t3rq4_fYdHcBFY8chTjKmS5lEdfFVnVnT64PnuSktpQZ0eLvqhELYx6WOpnuBbEJZPqRO9PWMSZjc_TUo1UJllWERROWro7r9IV8fgLNCqLbVcMpDwGsc9c5SqCx3KXf_nU8JZzGjatiXGWWhxTPMQgi0uSaNbp3QK22hVYQ3H/s5047/youTubePoster%20copy.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Automation Hunter For Salesforce" border="0" data-original-height="2837" data-original-width="5047" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizLIUKpmH5m4n646t3rq4_fYdHcBFY8chTjKmS5lEdfFVnVnT64PnuSktpQZ0eLvqhELYx6WOpnuBbEJZPqRO9PWMSZjc_TUo1UJllWERROWro7r9IV8fgLNCqLbVcMpDwGsc9c5SqCx3KXf_nU8JZzGjatiXGWWhxTPMQgi0uSaNbp3QK22hVYQ3H/s16000/youTubePoster%20copy.jpg" title="Automation Hunter For Salesforce" /></a></h1><h1 style="text-align: center;"><span style="font-family: verdana;">Automation Hunter For Salesforce</span></h1><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Hello Kid ✋, I know you might be busy with your office work or hopping around different blogs to learn something new today.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">But, what if I help you to speed up your salesforce tasks so that you will get more freedom, to focus on your learnings? Well, yes that's absolutely possible to save plenty amount of time.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Let me ask you this, how do you will you find out what all automation will run on a particular object to know which all automation is running when you are making record changes on that particular object?</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Now, you may think that's so simple I will just go to Object settings and under Object Manager and there I can find Validations, Apex Triggers etc.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">But, along with this, how will you find out which Apex Classes (Batch class, controllers etc.) are updating your records? Also, with manual effort you may go to the list and find your classes one by one. Isn't it too time-consuming?</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Okay, fine! Ummmm.....let me ask you this, how will you find which apex triggers are written on another object which is utilising/performing operations on any specific object, for example, to find out which apex triggers are written on Contact Object which are updating values on Account object?</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">That's mind-boggling 🤯 right? And exactly situations like these in many use cases will consume hours of time just to find all the automation running on a particular object.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Now, Don't Find The Automation, Hunt The Automation.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Introducing.....Automation Hunter For Salesforce Chrome Extension, to find all the automation running on a particular object with just 2 clicks and within a few seconds.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Woww...Is it real? Absoluetely Yess.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Just take a look at below intro video for a quick sneak peek:</span></div><div><span style="font-family: verdana;"><br /></span></div><div><div class="separator" style="clear: both; text-align: center;"><iframe allowfullscreen="" class="BLOG_video_class" height="357" src="https://www.youtube.com/embed/yQ-tHj99sOI" width="517" youtube-src-id="yQ-tHj99sOI"></iframe></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;"><span style="background-color: white; color: #5e5e5e; font-family: verdana; font-size: 15px;">Let's quickly take a look at the installation process :</span></div><div class="separator" style="clear: both; text-align: left;"><span style="background-color: white; color: #5e5e5e; font-family: verdana; font-size: 15px;"><br /></span></div><div class="separator" style="clear: both; text-align: left;"><div style="background: 0px 0px rgb(255, 255, 255); border: 0px; color: #5e5e5e; font-family: Roboto, sans-serif; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><span style="background: 0px 0px; border: 0px; font-family: verdana; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><b style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">STEP 1</b>: </span></div><div style="background: 0px 0px rgb(255, 255, 255); border: 0px; color: #5e5e5e; font-family: Roboto, sans-serif; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><span style="background: 0px 0px; border: 0px; font-family: verdana; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">Please click <a href="https://chrome.google.com/webstore/detail/automation-hunter-for-sal/fdchniigoflpdlaecnmajmdkmcailcbc" rel="nofollow" style="background: 0px 0px; border: 0px; color: #008bc7; margin: 0px; outline: 0px; padding: 0px; text-decoration-line: none; transition: all 0.3s ease 0s; vertical-align: baseline;" target="_blank"><b style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">HERE</b></a> to install the Automation Hunter Chrome extension for Salesforce.</span></div><div style="background: 0px 0px rgb(255, 255, 255); border: 0px; color: #5e5e5e; font-family: Roboto, sans-serif; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><span style="background: 0px 0px; border: 0px; font-family: verdana; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><br style="outline: 0px; transition: all 0.3s ease 0s;" /></span></div><div style="background: 0px 0px rgb(255, 255, 255); border: 0px; color: #5e5e5e; font-family: Roboto, sans-serif; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><span style="background: 0px 0px; border: 0px; font-family: verdana; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><b style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">STEP 2</b>: </span></div><div style="background: 0px 0px rgb(255, 255, 255); border: 0px; color: #5e5e5e; font-family: Roboto, sans-serif; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><span style="background: 0px 0px; border: 0px; font-family: verdana; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">Once you have installed the plugin, simply login to your Salesforce org.</span></div><div style="background: 0px 0px rgb(255, 255, 255); border: 0px; color: #5e5e5e; font-family: Roboto, sans-serif; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><span style="background: 0px 0px; border: 0px; font-family: verdana; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><br style="outline: 0px; transition: all 0.3s ease 0s;" /></span></div><div style="background: 0px 0px rgb(255, 255, 255); border: 0px; color: #5e5e5e; font-family: Roboto, sans-serif; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><span style="background: 0px 0px; border: 0px; font-family: verdana; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><b style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">STEP 3: </b></span></div><div style="background: 0px 0px rgb(255, 255, 255); border: 0px; color: #5e5e5e; font-family: Roboto, sans-serif; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><span style="background: 0px 0px; border: 0px; font-family: verdana; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">It works in both Salesforce Classic and Salesforce Lightning so please don't worry Kid.</span></div><div style="background: 0px 0px rgb(255, 255, 255); border: 0px; color: #5e5e5e; font-family: Roboto, sans-serif; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><span style="background: 0px 0px; border: 0px; font-family: verdana; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><br style="outline: 0px; transition: all 0.3s ease 0s;" /></span></div><div style="background: 0px 0px rgb(255, 255, 255); border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><span style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><div style="background: 0px 0px; border: 0px; color: #5e5e5e; font-family: verdana; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">* In <b style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">Lightning </b></div><div style="background: 0px 0px; border: 0px; color: #5e5e5e; font-family: verdana; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">Login To <b style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">Salesforce</b> -> <b style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">Setup</b> -> <b style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">SetupHome</b> (Extension will be loaded on the right side)</div><div style="background: 0px 0px; border: 0px; color: #5e5e5e; font-family: verdana; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><br /></div><div class="separator" style="clear: both; color: #5e5e5e; font-family: verdana; font-size: 15px; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiKfkYVxivuzsXDX0dDTg-rR422lo8YDsUnVQLh9f8gn4os275DuGsX0d63tkTAEuWus_dCiEapL9h81s9DQTh_glOpSto61UZrt3zLCSbogyRJHHn1CdWAkkJ_LIzl-L6LMPY9JqYt1MBM1_TOoGIHq9yLGLHxtRfi46GLOiMMuHei9p3GbwvbhBh/s2550/Screenshot%202023-05-23%20at%204.41.36%20PM.png" style="margin-left: 1em; margin-right: 1em;"><img alt="Automation Hunter for Salesforce 1" border="0" data-original-height="1342" data-original-width="2550" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiKfkYVxivuzsXDX0dDTg-rR422lo8YDsUnVQLh9f8gn4os275DuGsX0d63tkTAEuWus_dCiEapL9h81s9DQTh_glOpSto61UZrt3zLCSbogyRJHHn1CdWAkkJ_LIzl-L6LMPY9JqYt1MBM1_TOoGIHq9yLGLHxtRfi46GLOiMMuHei9p3GbwvbhBh/s16000/Screenshot%202023-05-23%20at%204.41.36%20PM.png" title="Automation Hunter for Salesforce 1" /></a></div><div class="separator" style="clear: both; color: #5e5e5e; font-family: verdana; font-size: 15px; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: left;"><div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px 0px; background-repeat: initial; background-size: initial; border: 0px; color: #5e5e5e; font-family: verdana; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><br /></div><div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px 0px; background-repeat: initial; background-size: initial; border: 0px; color: #5e5e5e; font-family: verdana; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">*In <b style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">Classic </b></div><div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px 0px; background-repeat: initial; background-size: initial; border: 0px; color: #5e5e5e; font-family: verdana; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">Login To <b style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">Salesforce</b> -> <b style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">Setup</b> -> <b style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">HomePage</b> (Extension will be available above recent items)</div><div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px 0px; background-repeat: initial; background-size: initial; border: 0px; color: #5e5e5e; font-family: verdana; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><br /></div><div class="separator" style="clear: both; color: #5e5e5e; font-family: verdana; font-size: 15px; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmPicxA2GrKVlcTPFJLm7NF2_UUz74ZIbPgSMvpSmRuty5D0AswpRP9utYiTgrdhdxIsfxR5pjlnAtSGB6R-FN8b9DTY-YJBVaFvwJl3AobMCkesCFUrLcCFhGK7WLM34w2pgGwy3dBflFGJQS70S5oGcDM6AZUc4q2V-9yLkij38chYrWIZukWMpY/s2278/Screenshot%202023-05-23%20at%204.43.50%20PM.png" style="margin-left: 1em; margin-right: 1em;"><img alt="Automation Hunter For Salesforce 2" border="0" data-original-height="1342" data-original-width="2278" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmPicxA2GrKVlcTPFJLm7NF2_UUz74ZIbPgSMvpSmRuty5D0AswpRP9utYiTgrdhdxIsfxR5pjlnAtSGB6R-FN8b9DTY-YJBVaFvwJl3AobMCkesCFUrLcCFhGK7WLM34w2pgGwy3dBflFGJQS70S5oGcDM6AZUc4q2V-9yLkij38chYrWIZukWMpY/s16000/Screenshot%202023-05-23%20at%204.43.50%20PM.png" title="Automation Hunter For Salesforce 2" /></a></div><div class="separator" style="clear: both; color: #5e5e5e; font-family: verdana; font-size: 15px; text-align: left;"><br /></div><div class="separator" style="clear: both; color: #5e5e5e; font-family: verdana; font-size: 15px; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;"><div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px 0px; background-repeat: initial; background-size: initial; border: 0px; color: #5e5e5e; font-family: verdana; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><span style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><b>STEP 4</b></span><b style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">: </b></div><div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px 0px; background-repeat: initial; background-size: initial; border: 0px; color: #5e5e5e; font-family: verdana; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">* Now select the object on which, you would like to hunt the automation and click on 'Load Automation'. That's it, it will just take a few seconds to hunt all automation in your org for the selected object in tabular format and it will show you the list of automation category-wise which all the details.</div><div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px 0px; background-repeat: initial; background-size: initial; border: 0px; color: #5e5e5e; font-family: verdana; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><br /></div><div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px 0px; background-repeat: initial; background-size: initial; border: 0px; color: #5e5e5e; font-family: verdana; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><br /></div><div class="separator" style="clear: both; color: #5e5e5e; font-family: verdana; font-size: 15px; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp4m9SWkUSxlCCgzWj2fQbzOBB4VgOIS1FN-Ue3NUxdwg9ZDSkg6RDpBb2YubnGkMW_mN7eB33bUQPqqDTLJF81Ijb4xQkYK_NBPEbZsBgkmj7meMfRlgSvfzC-DRfNXmVZZ4jcw-oTC-XI8fHHdzzKrd-VetZODZSZdBkZ7A9-lCgjhqH1TZ6qAyH/s2990/Screenshot%202023-05-23%20at%204.55.28%20PM.png" style="margin-left: 1em; margin-right: 1em;"><img alt="Automation Hunter For Salesforce 3" border="0" data-original-height="1650" data-original-width="2990" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp4m9SWkUSxlCCgzWj2fQbzOBB4VgOIS1FN-Ue3NUxdwg9ZDSkg6RDpBb2YubnGkMW_mN7eB33bUQPqqDTLJF81Ijb4xQkYK_NBPEbZsBgkmj7meMfRlgSvfzC-DRfNXmVZZ4jcw-oTC-XI8fHHdzzKrd-VetZODZSZdBkZ7A9-lCgjhqH1TZ6qAyH/s16000/Screenshot%202023-05-23%20at%204.55.28%20PM.png" title="Automation Hunter For Salesforce 3" /></a></div><div class="separator" style="clear: both; color: #5e5e5e; font-family: verdana; font-size: 15px; text-align: center;"><br /></div><div class="separator" style="clear: both; color: #5e5e5e; font-family: verdana; font-size: 15px; text-align: left;"><div class="separator" style="clear: both;">****** Automation Report Includes ******</div><div class="separator" style="clear: both;">1. Flows Automation</div><div class="separator" style="clear: both;">2. Apex Triggers Automation</div><div class="separator" style="clear: both;">3. Workflow Automation</div><div class="separator" style="clear: both;">4. Validation Rules</div><div class="separator" style="clear: both;">5. Apex Classes With Selected Object Reference</div><div class="separator" style="clear: both;">6. Other Apex Triggers With Selected Object Reference</div><div class="separator" style="clear: both;">7. Email Template With Selected Object Reference</div></div><div class="separator" style="clear: both; text-align: left;"><div class="separator" style="clear: both;"><span style="font-family: verdana;"><br /></span></div><div class="separator" style="clear: both;"><span style="font-family: verdana;">It will give you all the above automation written on selected objects.</span></div><div class="separator" style="clear: both;"><span style="font-family: verdana;"><br /></span></div><div class="separator" style="clear: both;"><span style="font-family: verdana;">Now let's take a look at how we can download this report in case you want to share it with your team. Smart decision right 😎 ?</span></div><div class="separator" style="clear: both;"><span style="font-family: verdana;"><br /></span></div><div class="separator" style="clear: both;"><span style="font-family: verdana;"><div class="separator" style="clear: both;"><b>STEP 5</b>: </div><div class="separator" style="clear: both;">* You can download this profile difference report by clicking on the '<b>Export Report</b>' button in the form of a pdf on your system and share it with your team if you want.</div><div class="separator" style="clear: both;"><br /></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqeklWSrEP2tATXZJC3UQyeHxN2V5HD15ZWf2C4iGo6GVA_TsoNXPZpW6jRashnR7JujLy7H1qI1iTnZJbKKjLdE079RCe2dbM2av7AKJnKOC36qI24z4iJHo_mWcqvop6FBUwD9xALxDsjyyUhC5CboJKj_2xHnSSXJ8OrWaKKdRruAJ89p1jvi31/s2904/Screenshot%202023-05-23%20at%205.02.47%20PM.png" style="margin-left: 1em; margin-right: 1em;"><img alt="Automation Hunter For Salesforce 4" border="0" data-original-height="1796" data-original-width="2904" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqeklWSrEP2tATXZJC3UQyeHxN2V5HD15ZWf2C4iGo6GVA_TsoNXPZpW6jRashnR7JujLy7H1qI1iTnZJbKKjLdE079RCe2dbM2av7AKJnKOC36qI24z4iJHo_mWcqvop6FBUwD9xALxDsjyyUhC5CboJKj_2xHnSSXJ8OrWaKKdRruAJ89p1jvi31/s16000/Screenshot%202023-05-23%20at%205.02.47%20PM.png" title="Automation Hunter For Salesforce 4" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">Woohoo!! your long hectic task is now completed within a few seconds. Now don't be afraid to Automation Hunter For Salesforce is there to help you always.</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;"><div class="separator" style="clear: both;">****** Feedback ******</div><div class="separator" style="clear: both;">* If this tool helps you to save your time while working on projects in any way. Please help to share your valuable feedback.</div><div class="separator" style="clear: both;"><br /></div><div class="separator" style="clear: both;">And at the end purpose of creating this extension is to save you time. Hence Smile Please 😊</div><div class="separator" style="clear: both;"><br /></div><div class="separator" style="clear: both;">****** Disclaimer ******</div><div class="separator" style="clear: both;">This is not a Salesforce.com product</div><div class="separator" style="clear: both;"><br /></div><div class="separator" style="clear: both;">The information provided by Automation Hunter ('we', 'us', or 'our') on extension is for a utility purpose only. We do not store any of your personal information. All information on the extension is provided in good faith, however, we make no representation or warranty of any kind, express or implied, regarding the accuracy, adequacy, validity, reliability, availability, or completeness of any information on the Site. UNDER NO CIRCUMSTANCE SHALL WE HAVE ANY LIABILITY TO YOU FOR ANY LOSS OR DAMAGE OF ANY KIND INCURRED AS A RESULT OF THE USE OF THIS EXTENSION OR RELIANCE ON ANY INFORMATION PROVIDED REGARDING THE EXTENSION. YOUR USE OF THE EXTENSION AND</div><div class="separator" style="clear: both;">YOUR RELIANCE ON ANY INFORMATION ON THE EXTENSION IS SOLELY AT YOUR OWN RISK.</div><div class="separator" style="clear: both;"><br /></div><div class="separator" style="clear: both;"><div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px 0px; background-repeat: initial; background-size: initial; border: 0px; color: #5e5e5e; font-family: Roboto, sans-serif; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px 0px; background-repeat: initial; background-size: initial; border: 0px; font-family: verdana; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">Yieeee!! Kid party time finally</span></div><div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px 0px; background-repeat: initial; background-size: initial; border: 0px; color: #5e5e5e; font-family: Roboto, sans-serif; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px 0px; background-repeat: initial; background-size: initial; border: 0px; font-family: verdana; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><br style="outline: 0px; transition: all 0.3s ease 0s;" /></span></div><div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px 0px; background-repeat: initial; background-size: initial; border: 0px; color: #5e5e5e; font-family: Roboto, sans-serif; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><span style="background: 0px 0px; border: 0px; font-family: verdana; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><span face="verdana, sans-serif" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px 0px; background-repeat: initial; background-size: initial; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">If you like this</span><span face="verdana, sans-serif" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px 0px; background-repeat: initial; background-size: initial; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"> </span><a href="https://www.sfdckid.com/" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px 0px; background-repeat: initial; background-size: initial; border: 0px; clear: none; color: #008bc7; float: none; margin: 0px; outline: 0px; padding: 0px; text-decoration-line: none; transition: all 0.3s ease 0s; vertical-align: baseline;">SFDC Kid</a><span face="verdana, sans-serif" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px 0px; background-repeat: initial; background-size: initial; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"> </span><span face="verdana, sans-serif" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px 0px; background-repeat: initial; background-size: initial; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">learning platform please let me know in the Comment section...Also, Share with your salesforce folks wish you all</span><br style="outline: 0px; transition: all 0.3s ease 0s;" /><span face="verdana, sans-serif" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px 0px; background-repeat: initial; background-size: initial; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><b style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">Happy Learning</b> ☁️⚡️ (Learn. Help. Share.) 😊</span></span></div><div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px 0px; background-repeat: initial; background-size: initial; border: 0px; color: #5e5e5e; font-family: Roboto, sans-serif; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><span style="background: 0px 0px; border: 0px; font-family: verdana; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><span face="verdana, sans-serif" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px 0px; background-repeat: initial; background-size: initial; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><br /></span></span></div><div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px 0px; background-repeat: initial; background-size: initial; border: 0px; color: #5e5e5e; font-family: Roboto, sans-serif; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><span style="background: 0px 0px; border: 0px; font-family: verdana; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><span face="verdana, sans-serif" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px 0px; background-repeat: initial; background-size: initial; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><br /></span></span></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPTaiq30oQU45HghcY-NY1ASbFL7nc6ck6l80aa1clv3qoDoBaWUUr5D8_mE6axU8VvuwXDIGmXQ746FnGPGmIvwCShTqP3QFNj4GG4EGAnn3KOdj8gvFlSLoKpIT-iM3YC6i9Z0OnS-6xJ5eIXlsHju3vpSfVGdGKKJGZSnWhrQDaj-qAmkjDEVvY/s2730/blogBottom.jpg" style="margin-left: 1em; margin-right: 1em;"><img alt="SFDC Kid bottom" border="0" data-original-height="469" data-original-width="2730" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPTaiq30oQU45HghcY-NY1ASbFL7nc6ck6l80aa1clv3qoDoBaWUUr5D8_mE6axU8VvuwXDIGmXQ746FnGPGmIvwCShTqP3QFNj4GG4EGAnn3KOdj8gvFlSLoKpIT-iM3YC6i9Z0OnS-6xJ5eIXlsHju3vpSfVGdGKKJGZSnWhrQDaj-qAmkjDEVvY/s16000/blogBottom.jpg" title="SFDC Kid bottom" /></a></div><br /><div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px 0px; background-repeat: initial; background-size: initial; border: 0px; color: #5e5e5e; font-family: Roboto, sans-serif; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><br /></div></div></div></span></div></div></div></div></span></div></div></div>AJINKYA DHAS http://www.blogger.com/profile/13223328981950114267noreply@blogger.com4tag:blogger.com,1999:blog-8457518975744463615.post-19639499294412309862022-10-08T14:50:00.005-07:002022-10-27T06:57:26.994-07:00Salesforce Profile Compare Tool : Crazy Compare<h1 style="text-align: center;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiySLIhGsmgHi0l9J8yk1jblkawSPlWomJrzIeloDGK5ctk_mSicKJrjScFCz4tZN4EEaMC2AAjQV8qtXjwjFT9QcgOrNQDqgvdqN5ETx0q4ZyyyO1YaIgNvsxYPOaA0Arj99yTLCot2pcFwgsG7KBLxA-cfZAcpVGUntABdxKexWkCt-xBkVh1zDLo/s1280/page4.jpg" style="margin-left: 1em; margin-right: 1em;"><img alt="Salesforce Crazy Compare Chrome Extension" border="0" data-original-height="800" data-original-width="1280" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiySLIhGsmgHi0l9J8yk1jblkawSPlWomJrzIeloDGK5ctk_mSicKJrjScFCz4tZN4EEaMC2AAjQV8qtXjwjFT9QcgOrNQDqgvdqN5ETx0q4ZyyyO1YaIgNvsxYPOaA0Arj99yTLCot2pcFwgsG7KBLxA-cfZAcpVGUntABdxKexWkCt-xBkVh1zDLo/s16000/page4.jpg" title="Salesforce Crazy Compare Chrome Extension" /></a></div><span style="font-family: verdana;"><br /></span></h1><h1 style="text-align: center;"><span style="font-family: verdana;">Crazy Compare Extension: User Guide </span></h1><div><br /></div><div><span style="font-family: verdana;">Hello Kid ✋, I hope you are doing absolutely fantastic. I know I know I know!! you are struggling to compare two different profiles in salesforce. </span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Most likely in org migration scenarios, access or permission issues or when one user is not able to perform the same activities other users are, etc.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">And now they are assigning this task to you to compare all field levels, object levels, apex class levels, visualforce page access etc one by one. This is a tedious job as we all know right?</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">But what if there is a tool that can do this for you within a few seconds. </span></div><div><span style="font-family: verdana;">Wait WHAT? </span></div><div><span style="font-family: verdana;">Yeah, that's possible now Kid 🙂.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Let me introduce you to Crazy Compare for Salesforce Chrome extension which can help you to compare two different profiles without processing any data outside of your browser. No Heroku apps are needed now as you always want to keep your data safe and secure.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">It's plug n play tool where you just install this in your chrome browser and it will become part of your salesforce org setup home page. Where you can simply select two different profiles and find the difference between two profiles. It is as simple, earlier and expert as it sounds.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">And the best part is it's absolutely FREE!!</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Before you begin take a look at a small glimpse of this extension 👇</span></div><div><span style="font-family: verdana;"><br /></span></div><div><div class="separator" style="clear: both; text-align: center;"><iframe allowfullscreen="" class="BLOG_video_class" height="352" src="https://www.youtube.com/embed/EFbDHN5TJqE" width="485" youtube-src-id="EFbDHN5TJqE"></iframe></div><br /></div><div><br /></div><div><span style="font-family: verdana;">Let's quickly take a look at the installation process :</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;"><b>STEP 1</b>: </span></div><div><span style="font-family: verdana;">Please click <a href="https://chrome.google.com/webstore/detail/crazy-compare-for-salesfo/bncmdklijpjfpmpdmobeafcegnnkkjff" rel="nofollow" target="_blank"><b>HERE</b></a> to install the Crazy Compare chrome extension for salesforce.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;"><b>STEP 2</b>: </span></div><div><span style="font-family: verdana;">Once you have installed the plugin, simply login to your salesforce org.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;"><b>STEP 3: </b></span></div><div><span style="font-family: verdana;">It works in both Salesforce Classic and Salesforce Lightning so please don't worry Kid.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;"><div>* In <b>Lightning </b></div><div>Login To <b>Salesforce</b> -> <b>Setup</b> -> <b>SetupHome</b> (Extension will be loaded on right side)</div><div><br /></div><div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEhlme212lXAm_75lbtKBA_cHEWVXKwLLXvUkuKZy5vpv4e-sdJguqbjkprBWsQ7CLc3TBVD51BaJD_coTWZYAR9bDm5xiJP1GA2-ntdXYZVrNx4Ik01wjjFDsPtvkfbDANwv4qnKWcJ98EWDZdS9t3JtI3C6K4lX-Q4N85EHetMPd3R-3Fa7nE72BBB" style="margin-left: 1em; margin-right: 1em;"><img alt="Salesforce Crazy Compare lightning" data-original-height="1462" data-original-width="2448" src="https://blogger.googleusercontent.com/img/a/AVvXsEhlme212lXAm_75lbtKBA_cHEWVXKwLLXvUkuKZy5vpv4e-sdJguqbjkprBWsQ7CLc3TBVD51BaJD_coTWZYAR9bDm5xiJP1GA2-ntdXYZVrNx4Ik01wjjFDsPtvkfbDANwv4qnKWcJ98EWDZdS9t3JtI3C6K4lX-Q4N85EHetMPd3R-3Fa7nE72BBB=s16000" title="Salesforce Crazy Compare lightning" /></a></div><br /></div><div><div>*In <b>Classic </b></div><div>Login To <b>Salesforce</b> -> <b>Setup</b> -> <b>HomePage</b> (Extension will be available above recent items)</div></div><div><br /></div><div><br /></div><div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEjkb7TbI2luAACSLkgaJ9h-9x0sll2n557ChLtdBA54L7D2SUKD4VOc2uWmo4EgwMP3Vm2wch3yPJJZxiIr_Ksg5XpGutuECuw1v1eR-TAgJBSBwhS3NkM7tLS9tZwAa7c0jSpRASKzjuIg3ke2_QXaDZxpdtr1Itvljd550dAw0eriS2WU9D2bewYk" style="margin-left: 1em; margin-right: 1em;"><img alt="Salesforce Crazy Compare Classic" data-original-height="1434" data-original-width="2002" src="https://blogger.googleusercontent.com/img/a/AVvXsEjkb7TbI2luAACSLkgaJ9h-9x0sll2n557ChLtdBA54L7D2SUKD4VOc2uWmo4EgwMP3Vm2wch3yPJJZxiIr_Ksg5XpGutuECuw1v1eR-TAgJBSBwhS3NkM7tLS9tZwAa7c0jSpRASKzjuIg3ke2_QXaDZxpdtr1Itvljd550dAw0eriS2WU9D2bewYk=s16000" title="Salesforce Crazy Compare Classic" /></a></div></div><div><br /></div><div><b>STEP : </b></div><div>* Now select 2 different profiles and click on find difference. That's it, your difference will be loaded in a tabular format and it will only show the access difference. </div><div><br /></div><div><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEgVnEJz5PD9-QaiRKNYq47sPR0RwUt9QIi3Xp4zXw2BwuX-XI3QgRjmCiX2VnxQXAAIg0LVKq0tM_RZbv2YgTjUduv-Lmp8xnkzcfN6I7Y5q8-3uuQN0NmaDsR6wZOLPuAclnTcxizDVYgJCsXOpZBILzEi9ypxismQnezagOqfENuo70GdEwHPs2Nm" style="margin-left: 1em; margin-right: 1em;"><img alt="Salesforce Crazy Compare Results" data-original-height="1746" data-original-width="3024" src="https://blogger.googleusercontent.com/img/a/AVvXsEgVnEJz5PD9-QaiRKNYq47sPR0RwUt9QIi3Xp4zXw2BwuX-XI3QgRjmCiX2VnxQXAAIg0LVKq0tM_RZbv2YgTjUduv-Lmp8xnkzcfN6I7Y5q8-3uuQN0NmaDsR6wZOLPuAclnTcxizDVYgJCsXOpZBILzEi9ypxismQnezagOqfENuo70GdEwHPs2Nm=s16000" title="Salesforce Crazy Compare Results" /></a></div><br /><br /></div></div><div><b>*</b>Here you will get only the difference between the two profiles to isolate the difference where red ❌ represents <b>NO ACCESS </b> and ✅ represents <b>HAS ACCESS </b>to that respected profile.</div><div><br /></div><div>*As I mentioned Simple, Easier, and Expert. </div><div><br /></div><div>Now let's take a look at how we can download this report in case you want to share it with your team. Smart decision right 😎 ?</div><div><br /></div><div><b><br /></b></div><div><b>STEP 5: </b></div><div>* You can download this profile difference report by clicking on the '<b>Print Report</b>' button in the form of a pdf on your system and share it with your team if you want.</div><div><br /></div><div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEjpa6P2A31t6XOptS_KwH-d0OR4-iudUZTg2UVq6ki_1eLh-ZAOgex8Jn-7XgKMaas9mYMn_gKbCZed7OKnMwD5uAWeCrbt00TQfqLlmf9SkZPtxb8OvBkRD3-VS97tgVOMJwN0dzpcDastHHpRxRTjAIJ1fWMBxp8yef7g0Ep3kC6fgTTpIO5_FIMl" style="margin-left: 1em; margin-right: 1em;"><img alt="Salesforce crazy compare report" data-original-height="1472" data-original-width="2448" src="https://blogger.googleusercontent.com/img/a/AVvXsEjpa6P2A31t6XOptS_KwH-d0OR4-iudUZTg2UVq6ki_1eLh-ZAOgex8Jn-7XgKMaas9mYMn_gKbCZed7OKnMwD5uAWeCrbt00TQfqLlmf9SkZPtxb8OvBkRD3-VS97tgVOMJwN0dzpcDastHHpRxRTjAIJ1fWMBxp8yef7g0Ep3kC6fgTTpIO5_FIMl=s16000" title="Salesforce crazy compare report" /></a></div><br /><br /></div><div><br /></div></span></div><div><span style="font-family: verdana;">Woohoo!! your long hectic task is now completed within a few seconds. Now don't be afraid to compare profiles because the Crazy Compare extension is there to help you always.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="background-color: white; color: #3c4043; font-family: verdana; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;">====== </span><b style="background-color: white; color: #3c4043; font-family: verdana; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;">Features Summary</b><span style="background-color: white; color: #3c4043; font-family: verdana; font-size: 16px; letter-spacing: 0.1px; white-space: pre-wrap;"> =====
- Faster · Easier · Expert 🔍
- Available in both Classic ☁️ and Lightning ⚡️
- Just select the profile and find difference in 3 clicks 🪄
- Download Profile Difference Report 🖨</span></div><div><span style="background-color: white; color: #3c4043; font-family: verdana; letter-spacing: 0.1px; white-space: pre-wrap;"><br /></span></div><div><span style="color: #3c4043; font-family: verdana;"><span style="letter-spacing: 0.1px; white-space: pre-wrap;"><b>v1.0
===== Currently Profile Supported Comparison ===== </b>
- Field Level Comparison
- Object Level Comparison
- Apex Class Access Comparison
- Visualforce Page Access Comparison</span></span><span style="background-color: white; color: #3c4043; font-family: verdana; letter-spacing: 0.1px; white-space: pre-wrap;"> </span></div><div><span style="background-color: white; color: #3c4043; font-family: verdana; letter-spacing: 0.1px; white-space: pre-wrap;"><br /></span></div><div><span style="background-color: white; letter-spacing: 0.1px; white-space: pre-wrap;"><span style="color: #3c4043; font-family: verdana;"><b>===== Feedback ===== </b>
* If this tool helps you to save time while working on projects in any way. Please help to share your valuable feedback.
And at the purpose of creating this extension is to save your time. Hence Smile Please 😊</span></span></div><div><span style="background-color: white; letter-spacing: 0.1px; white-space: pre-wrap;"><span style="color: #3c4043; font-family: verdana;"><br /></span></span></div><div><span style="background-color: white; letter-spacing: 0.1px; white-space: pre-wrap;"><span style="color: #3c4043; font-family: verdana;"><b>===== Disclaimer ===== </b>
This is not a Salesforce.com product and was created to help automate profile comparison purposes only.
The information provided by Crazy Compare ('we', 'us', or 'our') on extension is for a utility purpose only. We do not store any of your personal information. All information on the extension is provided in good faith, however, we make no representation or warranty of any kind, express or implied, regarding the accuracy, adequacy, validity, reliability, availability, or completeness of any information on the Site. UNDER NO CIRCUMSTANCE SHALL WE HAVE ANY LIABILITY TO YOU FOR ANY LOSS OR DAMAGE OF ANY KIND INCURRED AS A RESULT OF THE USE OF THIS EXTENSION OR RELIANCE ON ANY INFORMATION PROVIDED REGARDING THE EXTENSION. YOUR USE OF THE EXTENSION AND
YOUR RELIANCE ON ANY INFORMATION ON THE EXTENSION IS SOLELY AT YOUR OWN RISK.</span></span></div><div><span style="background-color: white; letter-spacing: 0.1px; white-space: pre-wrap;"><span style="color: #3c4043; font-family: verdana;"><br /></span></span></div><div><span style="background-color: white; color: #5e5e5e; font-family: verdana; font-size: 15px;">Yieeee!! Kid party time finally</span></div><div><span style="background-color: white; color: #5e5e5e; font-family: verdana; font-size: 15px;"><br /></span></div><div><span style="font-family: verdana;"><span face="verdana, sans-serif" style="background: 0px 0px white; border: 0px; color: #5e5e5e; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">If you like this</span><span face="verdana, sans-serif" style="background: 0px 0px white; border: 0px; color: #5e5e5e; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"> </span><a href="https://www.sfdckid.com/" style="background: 0px 0px rgb(255, 255, 255); border: 0px; clear: none; color: #008bc7; float: none; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; text-decoration-line: none; transition: all 0.3s ease 0s; vertical-align: baseline;">SFDC Kid</a><span face="verdana, sans-serif" style="background: 0px 0px white; border: 0px; color: #5e5e5e; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"> </span><span face="verdana, sans-serif" style="background: 0px 0px white; border: 0px; color: #5e5e5e; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">learning platform please let me know in the Comment section...Also, Share with your salesforce folks wish you all</span><br style="background-color: white; color: #5e5e5e; font-size: 15px; outline: 0px; transition: all 0.3s ease 0s;" /><span face="verdana, sans-serif" style="background: 0px 0px white; border: 0px; color: #5e5e5e; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><b style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">Happy Learning</b> ☁️⚡️ (Learn. Help. Share.) 😊</span></span></div><div><span style="font-family: verdana;"><span face="verdana, sans-serif" style="background: 0px 0px white; border: 0px; color: #5e5e5e; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><br /></span></span></div><div><span style="font-family: verdana;"><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0F_-cLBR5DWADilWfhXVPNDGogqGHE0TUHaenRyOKV8jA3PlywVI1aX-Isc2GASfY421ZFaf7VrWJCQGwyAO_jkpHE1HD_ZgHY_qEV0DKuQw7DvPQH3PUF3OrfIcWl5FcWBVpHuSYrePe_7zCxyqKfPdqB_RGjfuky4i4cVPARbchEtWAHpL5SOWP/s2730/blogBottom.jpg" style="margin-left: 1em; margin-right: 1em;"><img alt="SFDC Kid For Salesforce" border="0" data-original-height="469" data-original-width="2730" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0F_-cLBR5DWADilWfhXVPNDGogqGHE0TUHaenRyOKV8jA3PlywVI1aX-Isc2GASfY421ZFaf7VrWJCQGwyAO_jkpHE1HD_ZgHY_qEV0DKuQw7DvPQH3PUF3OrfIcWl5FcWBVpHuSYrePe_7zCxyqKfPdqB_RGjfuky4i4cVPARbchEtWAHpL5SOWP/s16000/blogBottom.jpg" title="SFDC Kid For Salesforce" /></a></div><br /><br /></div><br /></span></div>AJINKYA DHAS http://www.blogger.com/profile/13223328981950114267noreply@blogger.com4tag:blogger.com,1999:blog-8457518975744463615.post-30258850213930513402021-12-18T01:40:00.005-08:002021-12-18T02:03:53.589-08:00Salesforce and Youtube Integration | LWC | Lightning web component <h1 style="text-align: left;"><b><span style="font-family: verdana;"> <div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEh4wEWGmr9LOrIfnmkiYr2ivlWUT__tsJKd3b4AQRG-dYTshTF8hymX-Ylqgyz5yraPxPSHnlwaqodfUfxYcHs3KwtfADCBP7im-1mmoQpSQPflv7wbNYvZQvklsbZUL_z8zXOgPywjU7Wa1zjT2dd7Rer4tiMI_HIeierTIGNhwiDRrMANhqne-b0E=s1366" style="margin-left: 1em; margin-right: 1em;"><img alt="Salesforce and Youtube Integration" border="0" data-original-height="768" data-original-width="1366" src="https://blogger.googleusercontent.com/img/a/AVvXsEh4wEWGmr9LOrIfnmkiYr2ivlWUT__tsJKd3b4AQRG-dYTshTF8hymX-Ylqgyz5yraPxPSHnlwaqodfUfxYcHs3KwtfADCBP7im-1mmoQpSQPflv7wbNYvZQvklsbZUL_z8zXOgPywjU7Wa1zjT2dd7Rer4tiMI_HIeierTIGNhwiDRrMANhqne-b0E=s16000" title="Salesforce and Youtube Integration" /></a></div><br /></span></b></h1><h1 style="text-align: center;"><b><span style="font-family: verdana;">Salesforce and Youtube Integration</span></b></h1><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Hello Kid, hope you and your family is healthy and safe!! While the market demand is increasing for the salesforce developer we need to more focus on advanced skills like integration as well.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Earlier we have learnt about the basics of integration. Today we are going to build something wonderful recipe i.e. salesforce and most popular youtube platform integration with a very easy process.</span></div><div><br /></div><div><span style="font-family: verdana;">Salesforce and youtube integration will help the users to search for knowledge videos within the platform as well as you can play music and continue your work. </span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;"><b>HOW IT WILL LOOK LIKE </b>?? 👇 </span><span style="font-family: verdana;">Isn't it cool kid?? 😎</span></div><div><span style="font-family: verdana;">====</span></div><div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEjqsBpv-_spQ4v-a3nBkPhlkQ52tIsFjO-X2W6VdA2KsJNTPZIQ3wBuYQh42b6sls2-JqyQc7LSlfRXX0mqi7aJt-QldKoKTfhs_BfXPhYlqPSG2xgnerDWMII0pwIgbTX6Ov0JtZ7yRPA_k3mFgkHNsRP0iYioYUSju6j2rhShBCLZc5eWOlC49WLn=s2600" style="margin-left: 1em; margin-right: 1em;"><img alt="Salesforce and youtube Integration" border="0" data-original-height="1209" data-original-width="2600" src="https://blogger.googleusercontent.com/img/a/AVvXsEjqsBpv-_spQ4v-a3nBkPhlkQ52tIsFjO-X2W6VdA2KsJNTPZIQ3wBuYQh42b6sls2-JqyQc7LSlfRXX0mqi7aJt-QldKoKTfhs_BfXPhYlqPSG2xgnerDWMII0pwIgbTX6Ov0JtZ7yRPA_k3mFgkHNsRP0iYioYUSju6j2rhShBCLZc5eWOlC49WLn=s16000" title="Salesforce and youtube Integration" /></a></div></div><div><span style="font-family: verdana;">====</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">So let's get started...</span></div><div><br /></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;"><b>Pre-requisites</b> :</span></div><div><span style="font-family: verdana;">- First thing first, in order to integrate the platform we will be using YouTube Data API to receive the video data from the youtube platform.</span></div><div><span style="font-family: verdana;">- For this, we need to create an API key and EndPoint from the google cloud console.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Now just follow me Kid 🏃🏻♂️</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;"><b>STEP 1 </b>:</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">- Go to below google cloud console to generate your YouTube API key :</span></div><div><span style="font-family: verdana;"><b><a href="https://console.developers.google.com " rel="nofollow" target="_blank">https://console.developers.google.com </a></b></span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">- Create a new YoiuTube Integration project just like below :</span></div><div><span style="font-family: verdana;"><br /></span></div><div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEj27WVoS-Sfwdisz5IrxHd_6z8-QH6rv483Re3jfzyzKAvPke0fRQOETTaxW2E6jsIWPg20KdVTmcJxOzjhCT45X5W5RqzuCIdeT4qsd4l8CdbYOBKB27c7hKYA2i-Gfj2gLUU5yCoOfWZB9czbKM3I4OQA9B0Vd-NUrOHqWEN-QngQVfX5OwaYtw4h=s1455" style="margin-left: 1em; margin-right: 1em;"><img alt="Salesforce and Youtube Integration" border="0" data-original-height="776" data-original-width="1455" src="https://blogger.googleusercontent.com/img/a/AVvXsEj27WVoS-Sfwdisz5IrxHd_6z8-QH6rv483Re3jfzyzKAvPke0fRQOETTaxW2E6jsIWPg20KdVTmcJxOzjhCT45X5W5RqzuCIdeT4qsd4l8CdbYOBKB27c7hKYA2i-Gfj2gLUU5yCoOfWZB9czbKM3I4OQA9B0Vd-NUrOHqWEN-QngQVfX5OwaYtw4h=s16000" title="Salesforce and Youtube Integration" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: left;"><b style="font-family: verdana;">STEP 2 </b><span style="font-family: verdana;">:</span></div><div class="separator" style="clear: both; text-align: left;"><span style="font-family: verdana;"><br /></span></div><div class="separator" style="clear: both; text-align: left;">- <span style="font-family: verdana;">Once you have selected the project, Now on the left side you click on the <b>Library</b> :</span></div><div class="separator" style="clear: both; text-align: left;"><span style="font-family: verdana;"><br /></span></div><div class="separator" style="clear: both; text-align: left;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEgVKSOpxFy9gd0VH6CbNa7v-L_cP2oWzzRTh41X-e7waYW_XJY20jX_ChRLBPCXMu6VKB6fGHZnAp7kCJ9ATUPaY-Xu_oLSocDh7DO99qlAd-R-AR0gt6b7dqgtjpItEOnmt1BWx9uL9DX3tYuxoyzCm3lU2PnnQQg45FZMaXX6dHVXIVxbY_ZdP1cM=s1378" style="margin-left: 1em; margin-right: 1em;"><img alt="Salesforce and Youtube Integration" border="0" data-original-height="775" data-original-width="1378" src="https://blogger.googleusercontent.com/img/a/AVvXsEgVKSOpxFy9gd0VH6CbNa7v-L_cP2oWzzRTh41X-e7waYW_XJY20jX_ChRLBPCXMu6VKB6fGHZnAp7kCJ9ATUPaY-Xu_oLSocDh7DO99qlAd-R-AR0gt6b7dqgtjpItEOnmt1BWx9uL9DX3tYuxoyzCm3lU2PnnQQg45FZMaXX6dHVXIVxbY_ZdP1cM=s16000" title="Salesforce and Youtube Integration" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: left;"><span style="font-family: verdana;">- Now search for <b>Youtube Data API :</b></span></div><div class="separator" style="clear: both; text-align: left;"><span style="font-family: verdana;"><b><br /></b></span></div><div class="separator" style="clear: both; text-align: left;"><span style="font-family: verdana;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEiywTQKHK-fzamjaY7_HvpHElbI6Zy_2ucYoY-CFXaozCtSyFMcbtiYL2cuIOrRnUndO_vSi9BTwbXbSaZR40wzgbpG0jrYQx4kKcDad2xSNyJwRQlDbbTYO5ZBAXouwEgXn-UErLXu1B1cpR5PNusJUSG2Jkvmx2OD1hduN1VHg2HA608Y3Umemym0=s1371" style="margin-left: 1em; margin-right: 1em;"><img alt="Salesforce and Youtube Integration" border="0" data-original-height="775" data-original-width="1371" src="https://blogger.googleusercontent.com/img/a/AVvXsEiywTQKHK-fzamjaY7_HvpHElbI6Zy_2ucYoY-CFXaozCtSyFMcbtiYL2cuIOrRnUndO_vSi9BTwbXbSaZR40wzgbpG0jrYQx4kKcDad2xSNyJwRQlDbbTYO5ZBAXouwEgXn-UErLXu1B1cpR5PNusJUSG2Jkvmx2OD1hduN1VHg2HA608Y3Umemym0=s16000" title="Salesforce and Youtube Integration" /></a></div><div class="separator" style="clear: both; text-align: left;">Now select the First result <b>YouTube Data API V3 </b>and now enable it on the next screen </div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEhv6sFLYI50FeBpnbdNuwbCdHaa7YAkjeIVj5bb25DlJXVXmD_YiZ6xhNruGT-CSB-RguH4obJ4vDgXdbq1jLbZhYeubuE268_Wc4vSr1n__HdXeh4bveHnXZfZAYGDLAWOASNdlyvc9j9OirEL-y8kyHUBOoqOW56emdQkfVlkSAQql92zrHTtfcF0=s1455" style="margin-left: 1em; margin-right: 1em;"><img alt="Salesforce and Youtube Integration" border="0" data-original-height="776" data-original-width="1455" src="https://blogger.googleusercontent.com/img/a/AVvXsEhv6sFLYI50FeBpnbdNuwbCdHaa7YAkjeIVj5bb25DlJXVXmD_YiZ6xhNruGT-CSB-RguH4obJ4vDgXdbq1jLbZhYeubuE268_Wc4vSr1n__HdXeh4bveHnXZfZAYGDLAWOASNdlyvc9j9OirEL-y8kyHUBOoqOW56emdQkfVlkSAQql92zrHTtfcF0=s16000" title="Salesforce and Youtube Integration" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">- Then click on the <b>Manage</b> button </div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;"><b>STEP 3 </b>:</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">- Now select the <b>Credentials</b> tab on left side :</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEiqcdT5O_vX7HJpe1A0toCwzuOVm6-XLVvvpPTEjCgbe3gJHocjPUEZUWjst9HYWSjmPrGBRwe9Tsu7tTVceIyV72YmxobqYjbXnBXbTsXuTBdcqN4IsT9ueO2mCvxypvryQzGqComN2XoL_zHAgpwgabtKznTmc-t4ww5wPdSxXwiW_E2_lpj1lqpR=s1719" style="margin-left: 1em; margin-right: 1em;"><img alt="Salesforce and Youtube Integration" border="0" data-original-height="776" data-original-width="1719" src="https://blogger.googleusercontent.com/img/a/AVvXsEiqcdT5O_vX7HJpe1A0toCwzuOVm6-XLVvvpPTEjCgbe3gJHocjPUEZUWjst9HYWSjmPrGBRwe9Tsu7tTVceIyV72YmxobqYjbXnBXbTsXuTBdcqN4IsT9ueO2mCvxypvryQzGqComN2XoL_zHAgpwgabtKznTmc-t4ww5wPdSxXwiW_E2_lpj1lqpR=s16000" title="Salesforce and Youtube Integration" /></a></div></span></div></div></div><div><div class="separator" style="clear: both; text-align: left;"><div class="separator" style="clear: both; text-align: left;"><span style="font-family: verdana;"><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">- Here, you will get that magical API <b>Key</b> 🪄 . <b>PLEASE COPY THIS API KEY SOMEWHERE IN NOTEPAD. </b>We will be using it in a later part.</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">- Also, please note the <b>ENDPOINT URL</b> is :</div><div class="separator" style="clear: both; text-align: left;"><b><span style="color: #0b5394;">https://www.googleapis.com/youtube/v3/search</span></b></div><div class="separator" style="clear: both; text-align: left;"><b><span style="color: #0b5394;"><br /></span></b></div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">Good job kid!! These both API Key and EndPoint which we have created will be just like your school Id card where your teachers will not allow you without your Id card 😄.</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;"><b>STEP 4 </b>:</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">Now, it's time to hit this endpoint URL and make an API callout from your apex class right ??</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">Let's do it...⏭</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">- Create an Apex class called <b>YTController </b></div><div class="separator" style="clear: both; text-align: left;">- Please note that we will be creating the wrapper class here get all those required data into the wrapper so that further we will be using this in our lightning web component.</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;"><b><span style="font-size: large;">YTController.cls</span></b></div><div class="separator" style="clear: both; text-align: left;">====</div><div class="separator" style="clear: both;"><b>public with sharing class <span style="color: #0b5394;">YTController</span> {</b></div><div class="separator" style="clear: both;"><b> private static final String SEARCH_URL = <span style="color: #cc0000;">'https://www.googleapis.com/youtube/v3/search'</span>;</b></div><div class="separator" style="clear: both;"><b> private static final String API_KEY = <span style="color: #cc0000;">'XXXXXXXXXXX'</span>; <span style="color: #38761d;">//Put your API_KEY here </span></b></div><div class="separator" style="clear: both;"><b> </b></div><div class="separator" style="clear: both;"><b> <span style="color: #3d85c6;">@AuraEnabled(cacheable=true)</span></b></div><div class="separator" style="clear: both;"><b> public static list<mywrapper> getYTVideos(string searchKey){</b></div><div class="separator" style="clear: both;"><b> searchKey = searchKey == null ? 'salesforce' : searchKey;</b></div><div class="separator" style="clear: both;"><b> <span style="color: #38761d;"> // YouTube API Callouts</span></b></div><div class="separator" style="clear: both;"><b> Http http = new Http();</b></div><div class="separator" style="clear: both;"><b> HttpRequest req = new HttpRequest();</b></div><div class="separator" style="clear: both;"><b> Httpresponse res = null;</b></div><div class="separator" style="clear: both;"><b> String endpoint = <span style="color: #cc0000;">SEARCH_URL +</span></b></div><div class="separator" style="clear: both;"><b><span style="color: #cc0000;"> '?part=snippet' +</span></b></div><div class="separator" style="clear: both;"><b><span style="color: #cc0000;"> '&maxResults=20' +</span></b></div><div class="separator" style="clear: both;"><b><span style="color: #cc0000;"> '&type=video' +</span></b></div><div class="separator" style="clear: both;"><b><span style="color: #cc0000;"> '&q=' + EncodingUtil.urlEncode(searchKey, 'UTF-8') +</span></b></div><div class="separator" style="clear: both;"><b><span style="color: #cc0000;"> '&key=' + API_KEY</span>;</b></div><div class="separator" style="clear: both;"><b> </b></div><div class="separator" style="clear: both;"><b> req.setEndPoint(endpoint);</b></div><div class="separator" style="clear: both;"><b> req.setMethod('GET');</b></div><div class="separator" style="clear: both;"><b> res = http.send(req);</b></div><div class="separator" style="clear: both;"><b> </b></div><div class="separator" style="clear: both;"><b> <span style="color: #38761d;"> //Deserializing json data</span></b></div><div class="separator" style="clear: both;"><b> YouTubeResult.Response response = (YouTubeResult.Response)JSON.deserialize(res.getBody(), YouTubeResult.Response.class);</b></div><div class="separator" style="clear: both;"><b> List<YouTubeResult.Item> items = response.items;</b></div><div class="separator" style="clear: both;"><b> </b></div><div class="separator" style="clear: both;"><b> <span style="color: #38761d;">//Filling Wrapper Data for lightning component</span></b></div><div class="separator" style="clear: both;"><b> List<mywrapper> wrp = new List<mywrapper>();</b></div><div class="separator" style="clear: both;"><b> </b></div><div class="separator" style="clear: both;"><b> for (YouTubeResult.Item itemObj : items) {</b></div><div class="separator" style="clear: both;"><b> mywrapper YTWrap = new mywrapper();</b></div><div class="separator" style="clear: both;"><b> YTWrap.videoId = itemObj.id.videoId;</b></div><div class="separator" style="clear: both;"><b> YTWrap.description = itemObj.Snippet.description;</b></div><div class="separator" style="clear: both;"><b> YTWrap.thumbnails = itemObj.Snippet.thumbnails.medium.url;</b></div><div class="separator" style="clear: both;"><b> YTWrap.title = itemObj.Snippet.title;</b></div><div class="separator" style="clear: both;"><b> YTWrap.channelTitle = itemObj.Snippet.channelTitle;</b></div><div class="separator" style="clear: both;"><b> </b></div><div class="separator" style="clear: both;"><b> wrp.add(YTWrap);</b></div><div class="separator" style="clear: both;"><b> }</b></div><div class="separator" style="clear: both;"><b> return wrp;</b></div><div class="separator" style="clear: both;"><b> </b></div><div class="separator" style="clear: both;"><b> }</b></div><div class="separator" style="clear: both;"><b> public class <span style="color: #0b5394;">mywrapper</span>{</b></div><div class="separator" style="clear: both;"><b> <span style="color: #3d85c6;">@AuraEnabled</span> public string videoId <span style="color: #cc0000;">{get;set;}</span></b></div><div class="separator" style="clear: both;"><b> </b><b><span style="color: #3d85c6;">@AuraEnabled</span></b><b> public string description </b><b><span style="color: #cc0000;">{get;set;}</span></b></div></span><span style="font-family: verdana;"><div class="separator" style="clear: both;"><b> </b><b><span style="color: #3d85c6;">@AuraEnabled</span></b><b> public String thumbnails </b><b><span style="color: #cc0000;">{get;set;}</span></b></div></span><span style="font-family: verdana;"><div class="separator" style="clear: both;"><b> </b><b><span style="color: #3d85c6;">@AuraEnabled</span> </b><b>public String title </b><b><span style="color: #cc0000;">{get;set;}</span></b></div></span><span style="font-family: verdana;"><div class="separator" style="clear: both;"><b> </b><b><span style="color: #3d85c6;">@AuraEnabled</span> </b><b>public String channelTitle </b><b><span style="color: #cc0000;">{get;set;}</span></b></div></span><span style="font-family: verdana;"><div class="separator" style="clear: both;"><b> </b><b><span style="color: #3d85c6;">@AuraEnabled</span> </b><b>public String publishedAt </b><b><span style="color: #cc0000;">{get;set;}</span></b></div></span><span style="font-family: verdana;"><div class="separator" style="clear: both;"><b> }</b></div><div class="separator" style="clear: both;"><b>}</b></div><div class="separator" style="clear: both; text-align: left;">====</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">- In the above code, you need to put your API key which you have received or copied in <span style="color: #cc0000; font-weight: bold;">'XXXXXXXXXXX' </span><span>here in the above code. This was the major secret of that secret API key kid 😅.</span></div><div class="separator" style="clear: both; text-align: left;"><span><br /></span></div><div class="separator" style="clear: both; text-align: left;">- Next, we have created the <b>endpoint</b> URL in the format in which youtube is excepting the request from our end.</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">- Further, we are just hitting the endpoint using HTTP callout.</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">This pattern is just like this kid :</div><div class="separator" style="clear: both; text-align: left;"><b>Salesforce hitting endpoint </b>-> <b>YouTube will receive the request</b> -> <b>It will respond to the request as per the search query</b> -> <b>Response received at salesforce end</b>.</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">- Now here is the tricky part where most of the people are stuck i.e. managing the JSON response received. (The response is in JSON format hope you remember this).</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">- Sample response reference from the YouTube API documentation :</div><div class="separator" style="clear: both; text-align: left;"><b><a href="https://developers.google.com/youtube/v3/getting-started">https://developers.google.com/youtube/v3/getting-started</a></b></div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgodscXROLeSKdzdw5k8EIeh-qpV1vj5ZKrs8ieivus58oH6FgwDS0zFxb1OoxYwg_x270O17h71EviLkktZtg5D2TWuuru3jJyGekVuyjR-02myeIK6Q_8MA2NCj31K4P3eNj9zou_EY4/" style="margin-left: 1em; margin-right: 1em;"><img alt="Salesforce and youtube integration" data-original-height="1352" data-original-width="1460" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgodscXROLeSKdzdw5k8EIeh-qpV1vj5ZKrs8ieivus58oH6FgwDS0zFxb1OoxYwg_x270O17h71EviLkktZtg5D2TWuuru3jJyGekVuyjR-02myeIK6Q_8MA2NCj31K4P3eNj9zou_EY4/s16000/Screenshot+2021-12-15+at+4.21.38+PM.png" title="Salesforce and youtube integration" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: left;">Above is the sample response format you will your video details. </div><br /><br /></div><div class="separator" style="clear: both; text-align: left;">Now, as you are smart enough to understand that we have to retrieve the required data from this JSON and store it in variables in the apex class.</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">This is why we need class <b>YouTuberesult </b>so that that JSON response can be further fetched from that JSON tree and map to a variable so that we can use it further to map to the wrapper as you can see in filling wrapper data section.</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">Now let's take a look at <b>YouTubeResult </b>apex class.</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;"><b><br /></b></div><div class="separator" style="clear: both; text-align: left;"><b><span style="font-size: large;">YouTubeResult.cls</span></b></div><div class="separator" style="clear: both; text-align: left;">====</div><div class="separator" style="clear: both;"><b>public class <span style="color: #3d85c6;">YouTubeResult</span>{</b></div><div class="separator" style="clear: both;"><b> public List<YouTubeResult.Item> <span style="color: #3d85c6;">items</span> { get; set; } </b></div><div class="separator" style="clear: both;"><b> public class Response {</b></div><div class="separator" style="clear: both;"><b> public String kind { get; set; }</b></div><div class="separator" style="clear: both;"><b> public String etag { get; set; }</b></div><div class="separator" style="clear: both;"><b> public String nextPageToken { get; set; }</b></div><div class="separator" style="clear: both;"><b> public String prevPageToken { get; set; }</b></div><div class="separator" style="clear: both;"><b> public YouTubeResult.PageInfo pageInfo { get; set; }</b></div><div class="separator" style="clear: both;"><b> public List<YouTubeResult.Item> items { get; set; }</b></div><div class="separator" style="clear: both;"><b> }</b></div><div class="separator" style="clear: both;"><b> </b></div><div class="separator" style="clear: both;"><b> public class <span style="color: #3d85c6;">PageInfo</span> {</b></div><div class="separator" style="clear: both;"><b> public Integer totalResults { get; set; }</b></div><div class="separator" style="clear: both;"><b> public Integer resultsPerPage { get; set; }</b></div><div class="separator" style="clear: both;"><b> }</b></div><div class="separator" style="clear: both;"><b> </b></div><div class="separator" style="clear: both;"><b> public class <span style="color: #3d85c6;">Item</span> {</b></div><div class="separator" style="clear: both;"><b> public String kind { get; set; }</b></div><div class="separator" style="clear: both;"><b> public String etag { get; set; }</b></div><div class="separator" style="clear: both;"><b> public YouTubeResult.Id id { get; set; }</b></div><div class="separator" style="clear: both;"><b> public YouTubeResult.Snippet snippet { get; set; }</b></div><div class="separator" style="clear: both;"><b> }</b></div><div class="separator" style="clear: both;"><b> </b></div><div class="separator" style="clear: both;"><b> public class <span style="color: #3d85c6;">Id</span> {</b></div><div class="separator" style="clear: both;"><b> public String kind { get; set; }</b></div><div class="separator" style="clear: both;"><b> public String videoId { get; set; }</b></div><div class="separator" style="clear: both;"><b> }</b></div><div class="separator" style="clear: both;"><b> </b></div><div class="separator" style="clear: both;"><b> public class <span style="color: #3d85c6;">Snippet</span> {</b></div><div class="separator" style="clear: both;"><b> public Datetime publishedAt { get; set; }</b></div><div class="separator" style="clear: both;"><b> public String channelId { get; set; }</b></div><div class="separator" style="clear: both;"><b> public String title { get; set; }</b></div><div class="separator" style="clear: both;"><b> public String description { get; set; }</b></div><div class="separator" style="clear: both;"><b> public YouTubeResult.Thumbnails thumbnails { get; set; }</b></div><div class="separator" style="clear: both;"><b> public String channelTitle { get; set; }</b></div><div class="separator" style="clear: both;"><b> public String liveBroadcastContent { get; set; }</b></div><div class="separator" style="clear: both;"><b> }</b></div><div class="separator" style="clear: both;"><b> </b></div><div class="separator" style="clear: both;"><b> public class <span style="color: #3d85c6;">Thumbnails</span> {</b></div><div class="separator" style="clear: both;"><b> public YouTubeResult.Thumbnail medium { get; set; }</b></div><div class="separator" style="clear: both;"><b> public YouTubeResult.Thumbnail high { get; set; }</b></div><div class="separator" style="clear: both;"><b> }</b></div><div class="separator" style="clear: both;"><b> </b></div><div class="separator" style="clear: both;"><b> public class <span style="color: #3d85c6;">Thumbnail</span> {</b></div><div class="separator" style="clear: both;"><b> public String url { get; set; }</b></div><div class="separator" style="clear: both;"><b> }</b></div><div class="separator" style="clear: both; text-align: left;"><b>}</b></div><div class="separator" style="clear: both; text-align: left;">====</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">In the above class, you can see we are retrieving the required data from the JSON response tree as there are multi-level we have to deep dive to get the Thumbnail, id, page info etc.</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">So this is how we are making a callout and managing our response in apex.</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">Now, the next part is our LWC component. Here we are just taking the input string entered by the user and passing it to apex so that :</div><div class="separator" style="clear: both; text-align: left;">1. we can make a callout from our apex class for the search string</div><div class="separator" style="clear: both; text-align: left;">2. we can retrieve the response and map that too wrapper variable and return that wrapper.</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">Let's check the below </div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;"><b>STEP 5 </b>:</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">- <b>Lightning web component</b></div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;"><b><span style="font-size: large;">yTSearchPlayer.html </span></b></div><div class="separator" style="clear: both; text-align: left;">====</div><div class="separator" style="clear: both;"><b><template></b></div><div class="separator" style="clear: both;"><b> <lightning-card></b></div><div class="separator" style="clear: both;"><b> <center style="font-size: 2rem; background-color:#f0f0f0;"><img src="https://upload.wikimedia.org/wikipedia/commons/0/09/YouTube_full-color_icon_%282017%29.svg" width="65" height="60"><b> YouTube Search</b></center></b></div><div class="separator" style="clear: both;"><b> <span style="color: #38761d;"><!-- Default/basic --></span></b></div><div class="separator" style="clear: both;"><b> <div class="slds-p-around_medium lgc-bg"></b></div><div class="separator" style="clear: both;"><b> <div class="slds-grid slds-gutters"></b></div><div class="separator" style="clear: both;"><b> <div class="slds-col slds-size_2-of-3"></b></div><div class="separator" style="clear: both;"><b> <span style="color: #cc0000;"><lightning-input type="text" placeholder="type here..." value={searchInput} onchange={handleSearch}></lightning-input></span></b></div><div class="separator" style="clear: both;"><b> </div></b></div><div class="separator" style="clear: both;"><b> <div class="slds-col slds-size_1-of-3" style="padding-top: 19px;"></b></div><div class="separator" style="clear: both;"><b> <lightning-button variant="brand" title="Let's Go Go" label="Search Video On Youtube" onclick={handleSubmit} ></lightning-button></b></div><div class="separator" style="clear: both;"><b> </div></b></div><div class="separator" style="clear: both;"><b> </div></b></div><div class="separator" style="clear: both;"><b> </div></b></div><div class="separator" style="clear: both;"><b> </lightning-card></b></div><div class="separator" style="clear: both;"><b> </b></div><div class="separator" style="clear: both;"><b> <lightning-card title="Results"></b></div><div class="separator" style="clear: both;"><b> <template for:each={finalresult} for:item="acc"></b></div><div class="separator" style="clear: both;"><b> <div key={acc.Id}></b></div><div class="separator" style="clear: both;"><b> {acc.Name}</b></div><div class="separator" style="clear: both;"><b> </div></b></div><div class="separator" style="clear: both;"><b> </template></b></div><div class="separator" style="clear: both;"><b> <div class="slds-grid slds-gutters"></b></div><div class="separator" style="clear: both;"><b> <div class="slds-col slds-size_2-of-3"></b></div><div class="separator" style="clear: both;"><b> <article class="slds-card" style="margin: 5px;"></b></div><div class="separator" style="clear: both;"><b> <div class="slds-card__body slds-card__body_inner" style="padding: 0px;margin: 3px;"></b></div><div class="separator" style="clear: both;"><b> <span style="color: #cc0000;"><iframe style="height:400px;width:100%;border-radius: 2px;" allowfullscreen src={viewUrl}></iframe></span></b></div><div class="separator" style="clear: both;"><b> </div></b></div><div class="separator" style="clear: both;"><b> </article></b></div><div class="separator" style="clear: both;"><b> </div></b></div><div class="separator" style="clear: both;"><b> <div class="slds-border_left"></b></div><div class="separator" style="clear: both;"><b> <div style="height: 400px; width:auto" class="slds-scrollable_y slds-col slds-size_1-of-3"></b></div><div class="separator" style="clear: both;"><b> </b></div><div class="separator" style="clear: both;"><b> <template for:each={<span style="color: #cc0000;">videoResults</span>} for:item="item"></b></div><div class="separator" style="clear: both;"><b> <span <span style="color: #cc0000;">key={item.id}</span>></b></div><div class="separator" style="clear: both;"><b> <div class="slds-box"></b></div><div class="separator" style="clear: both;"><b> <article class="slds-card" style="margin: 5px;"></b></div><div class="separator" style="clear: both;"><b> <div class="slds-card__header slds-grid"></b></div><div class="separator" style="clear: both;"><b> <header class="slds-media slds-media_center slds-has-flexi-truncate"></b></div><div class="separator" style="clear: both;"><b> <div class="slds-media__figure"></b></div><div class="separator" style="clear: both;"><b> <span style="color: #cc0000;"><img style="width: 50px;height: 50px;border-radius: 9px;" src={item.thumbnails}/></span></b></div><div class="separator" style="clear: both;"><b> </div></b></div><div class="separator" style="clear: both;"><b> <div class="slds-media__body"></b></div><div class="separator" style="clear: both;"><b> <h2 class="slds-card__header-title"></b></div><div class="separator" style="clear: both;"><b> <a <span style="color: #cc0000;">onclick={watchVideo}</span> class="slds-card__header-link" <span style="color: #cc0000;">data-id={item.videoId}</span>></b></div><div class="separator" style="clear: both;"><b> <span><span style="color: #cc0000;">{item.title}</span></span></b></div><div class="separator" style="clear: both;"><b> </a></b></div><div class="separator" style="clear: both;"><b> </h2></b></div><div class="separator" style="clear: both;"><b> </div></b></div><div class="separator" style="clear: both;"><b> </header></b></div><div class="separator" style="clear: both;"><b> </div></b></div><div class="separator" style="clear: both;"><b> <div class="slds-card__body slds-card__body_inner "></b></div><div class="separator" style="clear: both;"><b> <span style="font-weight: bold;">By: <span style="color: #cc0000;">{item.channelTitle}</span></span> <br></b></div><div class="separator" style="clear: both;"><b> <span><span style="color: #cc0000;">{item.description}</span></span> --> </b></div><div class="separator" style="clear: both;"><b> </div></b></div><div class="separator" style="clear: both;"><b> </article></b></div><div class="separator" style="clear: both;"><b> </div></b></div><div class="separator" style="clear: both;"><b> </span></b></div><div class="separator" style="clear: both;"><b> </template></b></div><div class="separator" style="clear: both;"><b> </b></div><div class="separator" style="clear: both;"><b> </div></b></div><div class="separator" style="clear: both;"><b> </div></b></div><div class="separator" style="clear: both;"><b> </div></b></div><div class="separator" style="clear: both;"><b></lightning-card></b></div><div class="separator" style="clear: both; text-align: left;"><b></template></b></div><div class="separator" style="clear: both; text-align: left;">====</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">In the above code, we have created the search box and below the result section for the response of callout.</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">The important thing here to notice is "<b><span style="color: #cc0000;">data-id={item.videoId}</span></b>" where this data-id will actually help you to identify on which video you have clicked and give you that particular record in your javascript code (we will see that don't;t worry in JS code 👨💻)</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">To view UI you need to deploy this kid let's quickly check the JS code and then we will see the complete framework we have built at the end.</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;"><b><span style="font-size: large;">yTSearchPlayer.js</span></b></div><div class="separator" style="clear: both; text-align: left;">====</div><div class="separator" style="clear: both;"><b>import { LightningElement ,track} from 'lwc';</b></div><div class="separator" style="clear: both;"><b>import getVideos from '@salesforce/apex/YTController.getYTVideos';</b></div><div class="separator" style="clear: both;"><b>export default class YTSearchPlayer extends LightningElement {</b></div><div class="separator" style="clear: both;"><b> @track finalresult = [];</b></div><div class="separator" style="clear: both;"><b> @track finalError = '';</b></div><div class="separator" style="clear: both;"><b> @track searchInput = 'salesforce trailblazer';</b></div><div class="separator" style="clear: both;"><b> @track videoResults = [];</b></div><div class="separator" style="clear: both;"><b> @track viewUrl = '';</b></div><div class="separator" style="clear: both;"><b> <span style="color: #6aa84f;">//Below method will be called on load of component </span></b></div><div class="separator" style="clear: both;"><b> connectedCallback(){</b></div><div class="separator" style="clear: both;"><b> this.handleSubmit();</b></div><div class="separator" style="clear: both;"><b> }</b></div><div class="separator" style="clear: both;"><b> <span style="color: #6aa84f;"> // If you wanted to do something when user is entering the string</span></b></div><div class="separator" style="clear: both;"><b> handleSearch(event){</b></div><div class="separator" style="clear: both;"><b> this.searchInput = event.target.value;</b></div><div class="separator" style="clear: both;"><b> console.log('This is searchInput::'+ this.searchInput);</b></div><div class="separator" style="clear: both;"><b> }</b></div><div class="separator" style="clear: both;"><b> <span style="color: #6aa84f;">//To map the videoResults to iframe and related list </span></b></div><div class="separator" style="clear: both;"><b> handleSubmit(){</b></div><div class="separator" style="clear: both;"><b> getVideos({<span style="color: #cc0000;">searchKey:this.searchInput</span>})</b></div><div class="separator" style="clear: both;"><b> .then ((results)=>{</b></div><div class="separator" style="clear: both;"><b> <span style="color: #cc0000;">this.videoResults = results;</span></b></div><div class="separator" style="clear: both;"><b> console.log('This is final video results ::'+ JSON.stringify(this.videoResults));</b></div><div class="separator" style="clear: both;"><b><br /></b></div><div class="separator" style="clear: both;"><b> if (this.videoResults.length > 0) {</b></div><div class="separator" style="clear: both;"><b> this.showVideoInIframe(this.videoResults[0].videoId);</b></div><div class="separator" style="clear: both;"><b> }</b></div><div class="separator" style="clear: both;"><b> })</b></div><div class="separator" style="clear: both;"><b> .catch((error)=>{</b></div><div class="separator" style="clear: both;"><b> this.finalError = error.body.message;</b></div><div class="separator" style="clear: both;"><b> console.log('This is final video results ::'+ this.finalError);</b></div><div class="separator" style="clear: both;"><b> })</b></div><div class="separator" style="clear: both;"><b><br /></b></div><div class="separator" style="clear: both;"><b> }</b></div><div class="separator" style="clear: both;"><b><br /></b></div><div class="separator" style="clear: both;"><b> <span style="color: #6aa84f;">//To show youtube video</span></b></div><div class="separator" style="clear: both;"><b> showVideoInIframe(videoId){</b></div><div class="separator" style="clear: both;"><b> this.viewUrl = 'https://www.youtube.com/embed/'+videoId;</b></div><div class="separator" style="clear: both;"><b> }</b></div><div class="separator" style="clear: both;"><b> <span style="color: #6aa84f;">// Play video from related results</span></b></div><div class="separator" style="clear: both;"><b> watchVideo(event){</b></div><div class="separator" style="clear: both;"><b> let slt = <span style="color: #cc0000;">event.currentTarget.dataset.id</span>;</b></div><div class="separator" style="clear: both;"><b> console.log('This is selected video:'+ slt);</b></div><div class="separator" style="clear: both;"><b> this.viewUrl = 'https://www.youtube.com/embed/'+slt;</b></div><div class="separator" style="clear: both;"><b> }</b></div><div class="separator" style="clear: both; text-align: left;"><b>}</b></div><div class="separator" style="clear: both; text-align: left;">====</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">In the above code, we are mapping the <span style="color: #cc0000; font-weight: bold;">searchInput </span><span>field and sending it to the server-side controller (apex) to get related youtube video results for it and storing all the results in </span><span style="color: #cc0000; font-weight: bold;">videoResults </span><span>and finally we are iterating those results received in this video results in .<b>HTML </b>file <b>for:each </b>section and displaying the youtube video.</span></div><div class="separator" style="clear: both; text-align: left;"><span><br /></span></div><div class="separator" style="clear: both; text-align: left;"><span>Also, for the main iframe screen, we have this <b>viewURL </b>in youTube video URL link format.</span></div><div class="separator" style="clear: both; text-align: left;"><span><br /></span></div><div class="separator" style="clear: both; text-align: left;"><span>All other sections are self-explanatory where we are just handling the onclick events.</span></div><div class="separator" style="clear: both; text-align: left;"><span><br /></span></div><div class="separator" style="clear: both; text-align: left;"><span>Now as mentioned in the above you will have question that <b>how to identify on which video you have clicked ?</b></span></div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">Here is the answer kid, <b><span style="color: #cc0000;">event.currentTarget.dataset.id</span>; </b>in above code will give you current videoID. </div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;"><b>How ??</b></div><div class="separator" style="clear: both; text-align: left;">Do you remember the important point in HTML file above, yess!! that's correct its <b>data-id </b>which will tell you the current item id from the loop.</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">This will be helpful for you in future as well. Hence please make a note of this kid. High five ✋ </div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;"><b><span style="font-size: large;">yTSearchPlayer.js-meta.xml</span></b></div><div class="separator" style="clear: both; text-align: left;">====</div><div class="separator" style="clear: both;"><b><?xml version="1.0" encoding="UTF-8"?></b></div><div class="separator" style="clear: both;"><b><LightningComponentBundle xmlns=<span style="color: #cc0000;">"http://soap.sforce.com/2006/04/metadata"</span>></b></div><div class="separator" style="clear: both;"><b> <span style="color: #3d85c6;"><apiVersion></span>52.0<span style="color: #3d85c6;"></apiVersion></span></b></div><div class="separator" style="clear: both;"><b> <span style="color: #3d85c6;"><isExposed></span>true<span style="color: #3d85c6;"></isExposed></span></b></div><div class="separator" style="clear: both;"><b><br /></b></div><div class="separator" style="clear: both;"><b> <span style="color: #3d85c6;"><targets></span></b></div><div class="separator" style="clear: both;"><b> <span style="color: #3d85c6;"> <target></span>lightning__RecordPage<span style="color: #3d85c6;"></target></span></b></div><div class="separator" style="clear: both;"><b> <span style="color: #3d85c6;"><target></span>lightning__AppPage<span style="color: #3d85c6;"></target></span></b></div><div class="separator" style="clear: both;"><b> <span style="color: #3d85c6;"><target></span>lightning__HomePage<span style="color: #3d85c6;"></target></span></b></div><div class="separator" style="clear: both;"><b> <span style="color: #3d85c6;"><target></span>lightning__Tab<span style="color: #3d85c6;"></target></span></b></div><div class="separator" style="clear: both;"><b> <span style="color: #3d85c6;"></targets></span></b></div><div class="separator" style="clear: both; text-align: left;"><b></LightningComponentBundle></b></div><div class="separator" style="clear: both; text-align: left;">====</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">Further, we need to add this component anywhere on the page. I used this in the lightning tab but its my style of putting it. Please don't copy my style kid. Everyone's life exams are different hence you have to think differently than others and create in your own way. Shhhhh!! OKEY..too much talking sorry! 🤭</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;"><b>IMPORTANT :</b></div><div class="separator" style="clear: both; text-align: left;">====</div><div class="separator" style="clear: both; text-align: left;">Now the very very important to get your YouTube API allow to make callout is by <b>adding</b> it to the <b>Remote Site Settings </b>without this your endpoint will not work.</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">To add this go to <b>Setup</b> -> <b>Remote Site Settings </b></div><div class="separator" style="clear: both; text-align: left;"><b><br /></b></div><div class="separator" style="clear: both; text-align: left;">Just like below. :</div><div class="separator" style="clear: both; text-align: left;">====</div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEiEtCWflKAzrMh2wyb6VFk0_KbZWS9JfFGGoQPH7XzPEfe_ESBvrdPZ8rifSMvES8DBtXQ4qCh3U828gy5k4BivESkIrlrHwYLbnfOojpkU5Fo9ditZx_u8xfoaNe83NXd5IayjvPLNvn8PJqjd2wErBO7RQatwFunvgqa2ypZzyYEgGjKLmZfAZN_Y=s1431" style="margin-left: 1em; margin-right: 1em;"><img alt="Salesforce and Youtube Integration" border="0" data-original-height="550" data-original-width="1431" src="https://blogger.googleusercontent.com/img/a/AVvXsEiEtCWflKAzrMh2wyb6VFk0_KbZWS9JfFGGoQPH7XzPEfe_ESBvrdPZ8rifSMvES8DBtXQ4qCh3U828gy5k4BivESkIrlrHwYLbnfOojpkU5Fo9ditZx_u8xfoaNe83NXd5IayjvPLNvn8PJqjd2wErBO7RQatwFunvgqa2ypZzyYEgGjKLmZfAZN_Y=s16000" title="Salesforce and Youtube Integration" /></a></div><br /><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">====</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">Now it's showtime to check our recipe what we have created. Hence just deploy the component</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;"><b>OUTPUT :</b></div><div class="separator" style="clear: both; text-align: left;">====</div><div class="separator" style="clear: both; text-align: center;"><iframe allowfullscreen="" class="BLOG_video_class" height="266" src="https://www.youtube.com/embed/X0mgmJm9DrU" width="320" youtube-src-id="X0mgmJm9DrU"></iframe></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: left;">====</div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;">Yieeee!! Kid party time finally you are now able to search and watch videos inside your salesforce org. You can use this as a knowledge base for your salesforce user specially the service agents who are looking for some extra knowledge related to the topic or issues.</div><div class="separator" style="clear: both; text-align: left;"><br /></div>Hope you liked it!! See you in the next episode Kid 😉</span></div><div class="separator" style="clear: both; text-align: left;"><br /></div><div class="separator" style="clear: both; text-align: left;"><span style="font-family: verdana;"><span face="verdana, sans-serif" style="background: 0px 0px rgb(255, 255, 255); border: 0px; color: #5e5e5e; font-size: small; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><b style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">WOHOOO !! YOU HAVE JUST COMPLETED SALESFORCE AND YOUTUBE INTEGRATION WITH LWC </b></span><span face="verdana, sans-serif" style="background: 0px 0px rgb(255, 255, 255); border: 0px; color: #5e5e5e; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><b style="background: 0px 0px; border: 0px; font-size: medium; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">EPISODE</b></span><br style="background-color: white; color: #5e5e5e; font-family: Roboto, sans-serif; font-size: 15px; outline: 0px; transition: all 0.3s ease 0s;" /><span face="verdana, sans-serif" style="background: 0px 0px white; border: 0px; color: #5e5e5e; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">If you like this</span><span face="verdana, sans-serif" style="background: 0px 0px white; border: 0px; color: #5e5e5e; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"> </span><a href="https://www.salesforcekid.com/" style="background: 0px 0px rgb(255, 255, 255); border: 0px; color: #008bc7; font-family: verdana, sans-serif; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; text-decoration-line: none; transition: all 0.3s ease 0s; vertical-align: baseline;">salesforcekid</a><span face="verdana, sans-serif" style="background: 0px 0px white; border: 0px; color: #5e5e5e; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"> </span><span face="verdana, sans-serif" style="background: 0px 0px white; border: 0px; color: #5e5e5e; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">learning platform please let me know in the Comment section...Also, Share with your salesforce folks wish you all</span><br style="background-color: white; color: #5e5e5e; font-family: Roboto, sans-serif; font-size: 15px; outline: 0px; transition: all 0.3s ease 0s;" /><span face="verdana, sans-serif" style="background: 0px 0px white; border: 0px; color: #5e5e5e; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><b style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">Happy Learning</b> ☁️⚡️ (Learn. Help. Share.) 😊</span></span></div><div class="separator" style="clear: both; text-align: left;"><span style="font-family: verdana;"><span face="verdana, sans-serif" style="background: 0px 0px white; border: 0px; color: #5e5e5e; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><br /></span></span></div><div class="separator" style="clear: both; text-align: left;"><b><span style="font-family: verdana;"><a href="https://www.sfdckid.com//2020/04/apex-rest-api-salesforce-basic-hands-on.html" rel="nofollow" target="_blank"><< PREVIOUS </a></span></b></div><div class="separator" style="clear: both; text-align: left;"><span><span face="verdana, sans-serif"><br style="background-color: white; color: #5e5e5e; font-size: 15px; outline: 0px; transition: all 0.3s ease 0s;" /></span><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEggKBqdGVqKF7twhddKKaRbH7fhyAxjCDp802xUrQkHxGH3CsTElLuJdGYKCFBli_9OjgaCHaCg88sgFaqa4tdLJ8rXuTakds5vG6CefgKAmCsKbdbOLiitfzMVd_eRwQbQTvwkrD58jGvpgCCGYkHc2OMSy5F8nX-sfTj8eNf8_A9N61BmmtVcDH6P=s2730" style="margin-left: 1em; margin-right: 1em;"><img alt="Salesforce and Youtube Integration on play store" border="0" data-original-height="469" data-original-width="2730" src="https://blogger.googleusercontent.com/img/a/AVvXsEggKBqdGVqKF7twhddKKaRbH7fhyAxjCDp802xUrQkHxGH3CsTElLuJdGYKCFBli_9OjgaCHaCg88sgFaqa4tdLJ8rXuTakds5vG6CefgKAmCsKbdbOLiitfzMVd_eRwQbQTvwkrD58jGvpgCCGYkHc2OMSy5F8nX-sfTj8eNf8_A9N61BmmtVcDH6P=s16000" title="Salesforce and Youtube Integration on play store" /></a></div></span></div></div></div><div><div class="separator" style="clear: both; text-align: left;"><div class="separator" style="clear: both; text-align: left;"><span style="font-family: verdana;"><div class="separator" style="clear: both; text-align: center;"><br /></div></span></div></div></div>AJINKYA DHAS http://www.blogger.com/profile/13223328981950114267noreply@blogger.com4tag:blogger.com,1999:blog-8457518975744463615.post-17356785022317009452021-07-15T05:21:00.000-07:002021-07-15T05:21:32.854-07:00How To Fetch And Display Record Data In Lightning Web Component| LWC | @wire | Salesforce <h1 style="text-align: center;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfwIoGbIPAyWpq67fR-FE7f6uYiwxuDZubYi7qNLU6IyUzF3OT9ALsCjJew8XE6-rpRwiB9AA4cKPYt9zCkSBaySc95n02YpyEhXXDq-fkYJF_Y-WhcWaGfoGXHKiM4HfrKOOfbooDSnM/s1366/fetchAndDisplayData.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="fetch and display data in lwc | salesforce" border="0" data-original-height="768" data-original-width="1366" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfwIoGbIPAyWpq67fR-FE7f6uYiwxuDZubYi7qNLU6IyUzF3OT9ALsCjJew8XE6-rpRwiB9AA4cKPYt9zCkSBaySc95n02YpyEhXXDq-fkYJF_Y-WhcWaGfoGXHKiM4HfrKOOfbooDSnM/s16000/fetchAndDisplayData.jpg" title="fetch and display data in lwc | salesforce" /></a></div><br /><span style="font-family: verdana;"><br /></span></h1><h1 style="text-align: center;"><span style="font-family: verdana;">How To Fetch And Display Record Data In LWC</span></h1><div><span style="font-family: verdana;">Hello kid 👶🏻, after a long vacation let's get started with new learning sessions. These days are crazy and you know it.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">In the previous <b>EPISODE</b>, we discussed how we can pass data from child component to parent with the help of events.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">In this episode, we are going to learn methods to fetch data and different ways to display it. This will be your one-stop for all the queries regarding fetching and displaying data in the lightning web component in the easiest way possible.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">So for all of that and more let's get started...</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">There are two major learning aspects for this episode i.e. <b>WHAT</b> and <b>WHY</b>.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">WHAT - What exactly each terminology/decorator mean.</span></div><div><span style="font-family: verdana;">WHY - Why we are using it.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">If these two W's are clear to you. You can climb mountains in future easily.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Now there are two different concepts we are going to cover here first is </span><span style="font-family: verdana;">different ways of f</span><span style="font-family: verdana;">etching the data and the second one is </span><span style="font-family: verdana;">different ways of </span><span style="font-family: verdana;">displaying that data.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Let's discuss about ways of fetching data.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana; font-size: large;"><b>FETCHING DATA :</b></span></div><div><span> </span><span> </span><br /></div><div><span><br /></span></div><div><span style="font-family: verdana;"><b>WAYS OF FETCHING DATA :</b></span></div><div><span style="font-family: verdana;"><br /></span></div><div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcQyjveU1cKIvjdhIGpylKFzIu87Ixwq9ypXQJnlBDQ1GS39rg2Qxetn_Ik7dJjpIcMpC1PfAmSYKwWfP9z6jq82WrMWnCGhehLxxKrz619zsZ3AqsGIZVKJeLem_hZ7ueGq8Tfee9DpQ/s2616/autodraw+11_07_2021.png" style="margin-left: 1em; margin-right: 1em;"><img alt="salesforceServerClient" border="0" data-original-height="1202" data-original-width="2616" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcQyjveU1cKIvjdhIGpylKFzIu87Ixwq9ypXQJnlBDQ1GS39rg2Qxetn_Ik7dJjpIcMpC1PfAmSYKwWfP9z6jq82WrMWnCGhehLxxKrz619zsZ3AqsGIZVKJeLem_hZ7ueGq8Tfee9DpQ/s16000/autodraw+11_07_2021.png" title="salesforceServerClient" /></a></div><br /><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Before starting out with the ways let's first understand how this mechanism works.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Let's consider an example of you are going for fishing 🎣 today. Whenever you want to get the fish 🐟 from water </span><span style="font-family: verdana;">🌊 </span><span style="font-family: verdana;">you will just use your fishing rod 🦯 and a hook 🪝 to catch a fish from water. Once you received the expected fish you store that in your fish basket </span><span style="font-family: verdana;">🧺</span><span style="font-family: verdana;">. </span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">So that whenever you want that fish, you will just have to pick one 🐟 from the fish basket 🧺. I don't really go for fishing, anyways 🤔.</span><span style="font-family: verdana;"> </span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Now from the above scenario :</span></div><div><span style="font-family: verdana;">- Water 🌊 is SERVER</span></div><div><span style="font-family: verdana;">- Fish 🐟 is Data</span></div><div><span style="font-family: verdana;">- Fishing rod </span><span style="font-family: verdana;">🎣 is tool i.e. @wire in our case for lwc.</span></div><div><span style="font-family: verdana;">- Fish basket </span><span style="font-family: verdana;">🧺 is a client-side cache in our case for lwc.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Now let's talk about different ways to understand this in more detail.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">There are two major ways we can fetch the data from server-side controller (apex controller)</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">1. Direct Binding (@wire to a property)</span></div><div><span style="font-family: verdana;">2. Using Promises (@wire as a function)</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">In both ways, we are trying to fetch the records from the server-side controller (Apex) to our client-side controller(component javascript).</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">In both of the above ways, we are going to use the @wire property to fetch the data. Please note that the data you are trying to fetching with the help of these methods is immutable, which means you can read that data, but you will not be able to modify that.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Let's understand this more clearly with the help of code.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Let's talk about the apex controller first :</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;"><b>Apex Controller </b>:</span></div><div><span style="font-family: verdana;">===========</span></div><div><span style="font-family: verdana;"><div style="line-height: 21px;"><div style="background-color: white; font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><b><span style="color: blue;">public</span> with sharing <span style="color: blue;">class</span> getRecordDataController {</b></div><div style="background-color: white; font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><b> <span style="color: green;">//@AuraEnabled is annotation enables LWC to access below apex method</span></b></div><div style="background-color: white; font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><b> <span style="color: green;">//(cacheable=true) is for caching the data on client side storage without </span></b></div><div style="background-color: white; font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><b><span style="color: green;"><span> </span> waiting for server trips. Which imporves the performance</span></b></div><div style="background-color: white; font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><b> <span style="color: blue;">@AuraEnabled</span>(cacheable=<span style="color: blue;">true</span>)</b></div><div style="background-color: white; font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><b> <span style="color: blue;">public</span> <span style="color: blue;">static</span> <span style="color: blue;">List</span><<span style="color: blue;">Account</span>> getAccounts() {</b></div><div style="background-color: white; font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><b> <span style="color: blue;">return</span> [SELECT <span style="color: blue;">Id</span>, <span style="color: blue;">Name</span>, <span style="color: blue;">Phone</span> FROM <span style="color: blue;">Account</span>];</b></div><div style="background-color: white; font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><b> }</b></div><div style="background-color: white; font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><b>}</b></div><div style="background-color: white; font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><span style="font-family: verdana; font-size: medium; white-space: normal;">===========</span></div><div style="background-color: white; font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><span style="font-family: verdana; font-size: medium; white-space: normal;"><br /></span></div><div style="background-color: white;">In the above class, if you are familiar with lightning aura components, you might have already used the @AuraEnabled annotation, enabling the method to be used in the lightning components.</div><div style="background-color: white;"><br /></div><div style="background-color: white;">Now, this time we have <b>(cacheable=true) </b>additional<b> </b>which is nothing but the 🧺 basket we have learned when understanding the concept at the beginning of this episode to store the cache on the client-side.</div><div style="background-color: white;"><br /></div><div style="background-color: white;">And yes the method is returning the list of Accounts as you are smart enough now to understand that kid 😎.</div><div style="background-color: white;"><br /></div><div style="background-color: white;">So what's next on our list ?? js..js..js ? Yess </div><div style="background-color: white;"><br /></div><div style="background-color: white;">As this part is about fetching the data we will be talking about javascript (client-side controller) before the .HTML markup file as we will be discussing this in displaying data section.</div><div style="background-color: white;"><br /></div><div style="background-color: white;"><b>getDataDisplayData.js </b>:</div><div style="background-color: white;">===============</div><div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; line-height: 21px; white-space: pre;"><div style="background-color: white;"><b><span style="color: blue;">import</span> { LightningElement, wire} <span style="color: blue;">from</span> <span style="color: #a31515;">'lwc'</span>;</b></div><div><b style="background-color: #eeeeee;"><span style="color: blue;">import</span> getAccounts <span style="color: blue;">from</span> <span style="color: #a31515;">'@salesforce/apex/getRecordDataController.getAccounts'</span>;</b></div><b style="background-color: white;"><br /></b><div style="background-color: white;"><b><span style="color: blue;">export</span> <span style="color: blue;">default</span> <span style="color: blue;">class</span> GetDataDisplayData <span style="color: blue;">extends</span> LightningElement {</b></div><div><b><span style="background-color: white;"> </span><span style="background-color: #eeeeee;">@wire(getAccounts) wiredAccounts;</span></b></div><div style="background-color: white;"><b>}</b></div></div></div><span style="background-color: white;">===============</span></div></span></div><div><div style="background-color: white; font-size: 14px; line-height: 21px; white-space: pre;"><br /></div></div><div><span style="font-family: verdana;">In the above code, the first highlighted line will import the method which we have created and you can give any variable name just like I have given it as <b>getAccounts</b>.</span></div><div><br /></div><div><span style="font-family: verdana;">Next, we have used @wire property to wired the <b>getAccount </b>to <b>wiredAccounts</b> so that we can use this whenever we want to use it further. One thing to be noticed here is we need to append <b>wiredXXX</b> when wiring to the property. This is a direct binging method.</span></div><div><br /></div><div><span style="font-family: verdana;">Now, let's take a look at the next way of fetching the data on the client-side which is using javascript promises.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Quick intro about promises, this is just like you promise your mother that you will go to market and come back with the groceries requested (I was talking about true promises 🤪). Now there can be two outcomes of it either you will come back with requested groceries or you may face issues for example, the store was closed, you forgot wallet at home etc.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Similarly, javascript promises works, when you use promises there can be two outcomes of it:</span></div><div><span style="font-family: verdana;">1. Either you will get the request <b>data</b> from the server.</span></div><div><span style="font-family: verdana;">2. There can be <b>error</b> when trying to get the data.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Let's check this with the help of code as below :</span></div><div><b style="font-family: verdana;"><br /></b></div><div><b style="font-family: verdana;">getDataDisplayData.js </b><span style="background-color: white; font-family: verdana;">:</span></div><div><span style="font-family: verdana;"><span style="background-color: white;">===============</span></span></div><div><div style="background-color: white; line-height: 21px;"><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><b><span style="color: blue;">import</span> { LightningElement, wire} <span style="color: blue;">from</span> <span style="color: #a31515;">'lwc'</span>;</b></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><b><span style="color: blue;">import</span> getAccounts <span style="color: blue;">from</span> <span style="color: #a31515;">'@salesforce/apex/getRecordDataController.getAccounts'</span>;</b></div><b style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><br /></b><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><b><span style="color: blue;">export</span> <span style="color: blue;">default</span> <span style="color: blue;">class</span> GetDataDisplayData <span style="color: blue;">extends</span> LightningElement {</b></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><b> <span style="color: green;">//Method 2</span></b></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><b> @wire (getAccounts) wiredAccounts({data,error}){</b></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><b> <span style="color: blue;">if</span> (data) {</b></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><b> console.log(data); </b></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><b> } <span style="color: blue;">else</span> <span style="color: blue;">if</span> (error) {</b></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><b> console.log(error);</b></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><b> }</b></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><b> }</b></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><b>}</b></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><span style="font-family: verdana; font-size: medium; white-space: normal;">===============</span></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><span style="font-family: verdana; font-size: medium; white-space: normal;"><br /></span></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><span style="font-family: verdana; font-size: medium; white-space: normal;">As you can see in the above method, we are just using javascript promises as an extra piece of code 🧑💻. Here we have better control over the returned data on the outcome. As simple as if we get the data use that data or if we get error display that error.</span></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><span style="font-family: verdana; font-size: medium; white-space: normal;">For testing you can add this component in you lightning application and check the browser console logs if you are getting data or not before displaying it.</span></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><span style="font-family: verdana; font-size: medium; white-space: normal;"><br /></span></div><div><span style="font-family: verdana;">NOTE: Please note that in both cases it will store the data/error. Hence we can use it as wiredAccounts.data or wiredAcconts.error as we will be using in upcoming displaying the data part.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEic9MuoWPq4VY3IF53GoKHGplfMq0hGzKEcC9r07SMlGdapp8teUIduXiwbXI5qC6Khq5mfyr1WYjPG9qd2gaugY9pHtXv2caDi-upKY3eCrG16a_EfW1Hwkldpy4fIAAO_IgVSW1lidHk/" style="margin-left: 1em; margin-right: 1em;"><img alt="Developer Console[www.sfdckid.com]" data-original-height="650" data-original-width="2560" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEic9MuoWPq4VY3IF53GoKHGplfMq0hGzKEcC9r07SMlGdapp8teUIduXiwbXI5qC6Khq5mfyr1WYjPG9qd2gaugY9pHtXv2caDi-upKY3eCrG16a_EfW1Hwkldpy4fIAAO_IgVSW1lidHk/s16000/Screenshot+2021-07-15+at+1.06.21+PM.png" title="Developer Console[www.sfdckid.com]" /></a></div><br /><br /></span></div><div><span style="font-family: verdana;">There we go..we can see all the accounts console logs.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Now let's take a look at the most exciting part of displaying the data.</span></div><div><br /></div><div><b style="background-color: transparent; font-family: verdana; white-space: pre;"><span style="font-size: large;">DISPLAY DATA :</span></b></div></div></div><div><span><span style="font-family: verdana;"><span><br /></span></span></span></div><div><span><span style="font-family: verdana;"><span>Now, once you have the material to construct the house you can always design and display that as per your need. It is as important as fetching the data.</span></span></span></div><div><span><span style="font-family: verdana;"><span><br /></span></span></span></div><div><span><span style="font-family: verdana;"><span>Now as we have already seen in the previous episode how to display the data when we have a list of records to display.</span></span></span></div><div><span><span style="font-family: verdana;"><span><br /></span></span></span></div><div><span style="font-family: verdana;">Now its totally depends on your imagination of displaying this data.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Let's take a look at the very basic way of it and then we will go a little advance.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;"><b>Displaying it as list :</b></span></div><div><br /></div><div><span style="font-family: verdana;">Now as you know we have all our data <b>wired </b>to <b>wiredAccounts </b>hence we will be using the <b>data </b>from it.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">If you remember the method 1 :</span></div><div><span style="font-family: verdana;"><br /></span></div><div><div style="background-color: white; font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; line-height: 21px; white-space: pre;"><div><b> <span style="color: green;">//Method 1 </span></b></div><div><b> @wire(getAccounts) wiredAccounts;</b></div><div><br /></div></div></div><div><span style="font-family: verdana;">If you want to display the data of this method in the list then we will be iterating it with <b>for:each </b>like this :</span></div><div><span style="font-family: verdana;"><br /></span></div><div><b style="font-family: verdana;">getDataDisplayData.html </b><span style="background-color: white; font-family: verdana;">:</span></div><div><span style="font-family: verdana;">======</span></div><div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; line-height: 21px; white-space: pre;"><div style="background-color: white;"><span style="color: maroon;"><b><template></b></span></div><div><b><span style="background-color: white;"> </span><span style="background-color: white; color: maroon;"><template</span><span style="background-color: white;"> </span><span style="background-color: #eeeeee;"><span style="color: red;">for:each</span>=<span style="color: blue;">{wiredAccounts.data}</span></span><span style="background-color: white;"> </span><span style="background-color: #eeeeee;"><span style="color: red;">for:item</span>=<span style="color: blue;">"acc"</span></span><span style="background-color: white; color: maroon;">></span></b></div><div><b><span style="background-color: white;"> </span><span style="background-color: white; color: maroon;"><p</span><span style="background-color: white;"> </span><span style="background-color: #eeeeee;"><span style="color: red;">key</span>=<span style="color: blue;">{acc.id}</span></span><span style="background-color: white; color: maroon;">></span></b></div><div style="background-color: white;"><b> {acc.Name}</b></div><div style="background-color: white;"><b> <span style="color: maroon;"></p></span></b></div><div style="background-color: white;"><b> <span style="color: maroon;"></template></span></b></div><div style="background-color: white;"><span style="color: maroon;"><b></template></b></span></div></div></div><div><span style="font-family: verdana;">=====</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">And the output will look like this :</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;"><b>Output :</b></span></div><div><span style="font-family: verdana;">=====</span></div><div><span style="font-family: verdana;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHuJnAqiBe_dTuLNwtagwocAXs-ZS-nQNhqM6sCRUHG67e-lbkr1aAZLNkaBlEMeYaSpp3W4vSX1kfDGh5iCDzZaQ4PFvmE5QXk7GNujtKLcXu16LVYoD77XT3z_wcSzvzgZjuMaacZCo/" style="margin-left: 1em; margin-right: 1em;"><img alt="OutputLWC" data-original-height="1056" data-original-width="2048" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHuJnAqiBe_dTuLNwtagwocAXs-ZS-nQNhqM6sCRUHG67e-lbkr1aAZLNkaBlEMeYaSpp3W4vSX1kfDGh5iCDzZaQ4PFvmE5QXk7GNujtKLcXu16LVYoD77XT3z_wcSzvzgZjuMaacZCo/s16000/Screenshot+2021-07-15+at+1.34.21+PM.png" title="OutputLWC" /></a></div></span></div><div><span style="font-family: verdana;">=====</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Now, let's suppose you want to display the data into data table using the second way of fetching the data i.e. using js promises.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">You need to modify and assign the value of data a bit and define columns so fo datatable example.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Let's have a look at .JS file. After modification it will look like this :</span></div><div><span style="font-family: verdana;"><br /></span></div><div><div><b style="font-family: verdana;">getDataDisplayData.js </b><span style="background-color: white; font-family: verdana;">:</span></div><div><span style="font-family: verdana;">===============</span></div></div><div><div style="background-color: white; font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; line-height: 21px; white-space: pre;"><div><b><span style="color: blue;">import</span> { LightningElement, track, wire} <span style="color: blue;">from</span> <span style="color: #a31515;">'lwc'</span>;</b></div><div><b><span style="color: blue;">import</span> getAccounts <span style="color: blue;">from</span> <span style="color: #a31515;">'@salesforce/apex/getRecordDataController.getAccounts'</span>;</b></div><b><br /></b><div><b><span style="color: blue;">export</span> <span style="color: blue;">default</span> <span style="color: blue;">class</span> GetDataDisplayData <span style="color: blue;">extends</span> LightningElement {</b></div><div><b> @track columns = [</b></div><div><b> { label: <span style="color: #a31515;">'Name'</span>, fieldName: <span style="color: #a31515;">'Name'</span> },</b></div><div><b> { label: <span style="color: #a31515;">'Id'</span>, fieldName: <span style="color: #a31515;">'Id'</span>}</b></div><div><b> ];</b></div><div><b> @track accountList;</b></div><div><b><br /></b></div><div><b> <span style="color: green;">//Method 2</span></b></div><div><b> @wire (getAccounts) wiredAccounts({data,error}){</b></div><div><b> <span style="color: blue;">if</span> (data) {</b></div><div><b> <span style="color: blue;">this</span>.accountList = data;</b></div><div><b> console.log(data); </b></div><div><b> } <span style="color: blue;">else</span> <span style="color: blue;">if</span> (error) {</b></div><div><b> console.log(error);</b></div><div><b> }</b></div><div><b> }</b></div><div><b>}</b></div></div></div><div><span style="font-family: verdana;">===============</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">And after adding lightning datatable to our HTML file it will look like this:</span></div><div><span style="font-family: verdana;"><br /></span></div><div><b style="font-family: verdana;">getDataDisplayData.html </b><span style="font-family: verdana;">:</span></div><div><span style="font-family: verdana;">=================</span></div><div><div style="background-color: white; line-height: 21px;"><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><span style="color: maroon;"><b><template></b></span></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><b><span style="color: maroon;"><div</span> <span style="color: red;">style</span>=<span style="color: blue;">"height: 500px;"</span><span style="color: maroon;">></span></b></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><b><span style="color: maroon;"><template</span> <span style="color: red;">if:true</span>=<span style="color: blue;">{accountList}</span><span style="color: maroon;">></span></b></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><b> <span style="color: maroon;"><lightning-datatable</span></b></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><b> <span style="color: red;">key-field</span>=<span style="color: blue;">"id"</span></b></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><b> <span style="color: red;">data</span>=<span style="color: blue;">{accountList}</span></b></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><b> <span style="color: red;">columns</span>=<span style="color: blue;">{columns}</span><span style="color: maroon;">></span></b></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><b> <span style="color: maroon;"></lightning-datatable></span></b></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><span style="color: maroon;"><b></template></b></span></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><span style="color: maroon;"><b></div></b></span></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><span style="color: maroon;"><b></template></b></span></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><span style="font-family: verdana; font-size: medium; white-space: normal;">=================</span></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><span style="font-family: verdana; font-size: medium; white-space: normal;"><br /></span></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><span style="font-family: verdana; font-size: medium; white-space: normal;">and the final output of above code will be :</span></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><span style="font-family: verdana; font-size: medium; white-space: normal;"><br /></span></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><div style="font-family: Times; font-size: medium; white-space: normal;"><span style="font-family: verdana;"><b>Output :</b></span></div></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><span style="font-family: verdana; font-size: medium; white-space: normal;">======</span></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><span style="font-family: verdana; font-size: medium; white-space: normal;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi609YUmRz0nzz0ezU4gQYXinqtCETM3Fyhe4UJMx9Am9AusecUkSSNQwZeg6gqsO81bpXREFLEsCtj3NYw6nHt_ERpdOobUCDOGqEvoH0js4hEsoK8AboS0zm2mJ_zTWQRQNe-van0VlY/" style="margin-left: 1em; margin-right: 1em;"><img alt="lwcDatatable" data-original-height="1096" data-original-width="2560" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi609YUmRz0nzz0ezU4gQYXinqtCETM3Fyhe4UJMx9Am9AusecUkSSNQwZeg6gqsO81bpXREFLEsCtj3NYw6nHt_ERpdOobUCDOGqEvoH0js4hEsoK8AboS0zm2mJ_zTWQRQNe-van0VlY/s16000/Screenshot+2021-07-15+at+1.57.37+PM.png" title="lwcDatatable" /></a></div></span></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><span style="font-family: verdana; font-size: medium; white-space: normal;">======</span></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><span style="font-family: verdana; font-size: medium; white-space: normal;"><br /></span></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><span style="font-family: verdana; font-size: medium; white-space: normal;">Yaay!! Now you can display this data as beautiful as your girlfriend </span></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><span style="font-family: verdana; font-size: medium; white-space: normal;"><br /></span></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><span style="font-family: verdana; font-size: medium; white-space: normal;">Let's take some samples I have created for you :</span></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><span style="font-family: verdana; font-size: medium; white-space: normal;"><br /></span></div><div><span style="font-family: verdana;">1) </span><span style="font-family: verdana;">If you want to display the same data as the badge tag :</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">your HTML file will look like this :</span></div><div><span style="font-family: verdana;">====</span></div><div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; line-height: 21px; white-space: pre;"><div><span style="color: maroon;"><b><template></b></span></div><div><b> <span style="color: maroon;"><div</span> <span style="color: red;">class</span>=<span style="color: blue;">"slds-grid slds-wrap"</span><span style="color: maroon;">></span></b></div><div><b> <span style="color: maroon;"><template</span> <span style="color: red;">for:each</span>=<span style="color: blue;">{accountList}</span> <span style="color: red;">for:item</span>=<span style="color: blue;">"acc"</span><span style="color: maroon;">></span></b></div><div><b> <span style="color: maroon;"><span</span> <span style="color: red;">key</span>=<span style="color: blue;">{acc.id}</span><span style="color: maroon;">></span></b></div><div><b> <span style="color: maroon;"><div</span> <span style="color: red;">class</span>=<span style="color: blue;">"slds-col slds-size_3-of-12"</span><span style="color: maroon;">></span></b></div><div><b> <span style="color: maroon;"><lightning-badge</span> <span style="color: red;">label</span>=<span style="color: blue;">{acc.Name}</span><span style="color: maroon;">></lightning-badge></span> &nbsp;</b></div><div><b> <span style="color: maroon;"></div></span></b></div><div><b> <span style="color: maroon;"></span></span></b></div><div><b> <span style="color: maroon;"></template></span></b></div><div><b> <span style="color: maroon;"></div></span></b></div><div><span style="color: maroon;"><b></template></b></span></div></div></div><div><span style="font-family: verdana;">====</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;"><b>Output :</b></span></div><div><span style="font-family: verdana;">====</span></div><div><span style="font-family: verdana;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjg8pQvpOIjfU0LGUeAUzvl1qXWn3y9wOKb1VrLNbbUKt57FisvmFZQlJ3AksjpQoAVvKZXCext54gPGndG5LLeRM99C0dE_jglHtccseTyF3BOrRQAVtu77UKDbbLNAena_b3m6URyeKA/" style="margin-left: 1em; margin-right: 1em;"><img alt="output" data-original-height="1096" data-original-width="2560" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjg8pQvpOIjfU0LGUeAUzvl1qXWn3y9wOKb1VrLNbbUKt57FisvmFZQlJ3AksjpQoAVvKZXCext54gPGndG5LLeRM99C0dE_jglHtccseTyF3BOrRQAVtu77UKDbbLNAena_b3m6URyeKA/s16000/Screenshot+2021-07-15+at+2.20.00+PM.png" title="output" /></a></div></span></div><div><span style="font-family: verdana;">====</span></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><span style="font-family: verdana; font-size: medium; white-space: normal;"><br /></span></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><span style="font-family: verdana; font-size: medium; white-space: normal;"><b>2) Display as a checkbox :</b></span></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><span style="font-family: verdana; font-size: medium; white-space: normal;">=====</span></div><div style="font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; white-space: pre;"><div style="line-height: 21px;"><div><span style="color: maroon;"><b><template></b></span></div><div><b> <span style="color: maroon;"><div</span> <span style="color: red;">class</span>=<span style="color: blue;">"slds-box"</span><span style="color: maroon;">></span></b></div><div><b> <span style="color: maroon;"><template</span> <span style="color: red;">for:each</span>=<span style="color: blue;">{accountList}</span> <span style="color: red;">for:item</span>=<span style="color: blue;">"acc"</span><span style="color: maroon;">></span></b></div><div><b> <span style="color: maroon;"><span</span> <span style="color: red;">key</span>=<span style="color: blue;">{acc.id}</span><span style="color: maroon;">></span></b></div><div><b> <span style="color: maroon;"><div</span> <span style="color: red;">class</span>=<span style="color: blue;">"slds-col"</span><span style="color: maroon;">></span></b></div><div><b> <span style="color: maroon;"><lightning-input</span> <span style="color: red;">type</span>=<span style="color: blue;">"checkbox"</span> <span style="color: red;">label</span>=<span style="color: blue;">{acc.Name}</span> <span style="color: maroon;">></lightning-input></span></b></div><div><b> <span style="color: maroon;"></div></span></b></div><div><b> <span style="color: maroon;"></span></span></b></div><div><b> <span style="color: maroon;"></template></span></b></div><div><b> <span style="color: maroon;"></div></span> </b></div><div><span style="color: maroon;"><b></template></b></span></div></div></div></div></div><div><span style="font-family: verdana;">=====</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;"><b>Output :</b></span></div><div><span style="font-family: verdana;">=====</span></div><div><div style="background-color: white; font-family: Menlo, Monaco, "Courier New", monospace; font-size: 14px; line-height: 21px; white-space: pre;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-ry70Qbeu0JgFYixDp2GTk-LbOsfMsGLHIHlLkIb0dAe9C537jI5cImdS3khqbaHflXGveWtJ0iqqEh282o0PKTTdnXlHtia15cPJL2M6PF52e3nKmu-A8KImvE1bHmrm0Uh2U_YBBdM/" style="margin-left: 1em; margin-right: 1em;"><img alt="output" data-original-height="1096" data-original-width="2560" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-ry70Qbeu0JgFYixDp2GTk-LbOsfMsGLHIHlLkIb0dAe9C537jI5cImdS3khqbaHflXGveWtJ0iqqEh282o0PKTTdnXlHtia15cPJL2M6PF52e3nKmu-A8KImvE1bHmrm0Uh2U_YBBdM/s16000/Screenshot+2021-07-15+at+2.26.25+PM.png" title="output" /></a></div></div></div><div><span style="font-family: verdana;">=====</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Yay!! Kid 💃, now you are good to go and play around with this. </span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Now next time when your senior ask questions like why do we use <b>(cacheable=true) </b>throw that fishing basket example to them. If someone asks how many ways we can use wire to get the data to throw the examples to them and finally if some ask you how to fetch and display the data throw this blog link into their inbox 📥.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Now some special part of fetching the data :</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;"><b>1) Get the recordId of current record</b>. Then you can directly do that by </span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;"><b>STEP 1 : Add below lone of code inside your .JS file </b>(on top)</span></div><div><span style="font-family: verdana;"><b><br /></b></span></div><div><span style="font-family: verdana;"><b>- ><span style="color: #38761d;"> import</span> { getRecord } from <span style="color: #990000;">'lightning/uiRecordApi'</span>;</b></span></div><div><span style="font-family: verdana;"><b><br /></b></span></div><div><span style="font-family: verdana;"><b>STEP 2 : Declararing default variable recordId</b></span></div><div><span style="font-family: verdana;"><b><br /></b></span></div><div><span style="font-family: verdana;"><b>- > @api recordId;</b></span></div><div><span style="font-family: verdana;"><b><br /></b></span></div><div><span style="font-family: verdana;">Now, you can directly use this recordId to perform further logic on current record as required.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;"><b>2) Get object data :</b></span></div><div><span style="font-family: verdana;">Although we have learned about the fetching the account object data using server call but if you do not want any filtered data then you can use below piece of code directly without writing apex controller by using schema :</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Import object using below syntax inside your .js file :</span></div><div><span style="font-family: verdana;"><br /></span></div><div><b><span style="font-family: verdana;">-><span style="color: #38761d;"> import</span> objectName from <span style="color: #990000;">'@salesforce/schema/object'</span>;</span></b></div><div><b><span style="font-family: verdana;"><br /></span></b></div><div><span style="font-family: verdana;">Replace object with your object API name.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">for example : </span></div><div><span style="font-family: verdana;"><br /></span></div><div><b><span style="font-family: verdana;"><span style="color: #38761d;">import</span> <span style="color: #3d85c6;">ACCOUNT_OBJECT</span> from <span style="color: #990000;">'@salesforce/schema/Account'</span>;</span></b></div><div><b><span style="font-family: verdana;"><br /></span></b></div><div><span style="font-family: verdana;">Now you can use this ACCOUNT_OBJECT directly. Also please note that please use naming convention for objects as OBJECTNAME_OBJECT. </span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;"><b>3) Get field data :</b></span></div><div><span style="font-family: verdana;">Similar to object data we can also fetch the particular field directly from schema inside lwc component.</span></div><div><br /></div><div><span style="font-family: verdana;">Please find the below syntax which can be use to import the field from the object :</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;"><b><span style="color: #38761d;">import</span> <span style="color: #0b5394;">ACCOUNT_NAME_FIELD</span> from <span style="color: #990000;">'@salesforce/schema/Account.Name'</span>;</b></span></div><div><span style="font-family: verdana;"><b><br /></b></span></div><div><span style="font-family: verdana;">Here as well we need to follow the naming convention as FEILDNAME_FEILD similar to object.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Now, the purpose of this is to directly bing these fields and recordId and get the value using @wire adoptor in salesforce lightning web component.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Want to see how ?</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;"><b>For example :</b></span></div><div><span style="font-family: verdana;">=========</span></div><div><b><span style="background-color: #eeeeee; font-family: courier;"><span style="color: #38761d;">import</span> { getRecord } from <span style="color: #990000;">'lightning/uiRecordApi'</span>;</span></b></div><div><b><span style="background-color: #eeeeee; font-family: courier;"><span style="color: #38761d;">import</span> <span style="color: #0b5394;">ACCOUNT_NAME_FIELD</span> from <span style="color: #990000;">'@salesforce/schema/Account.Name'</span>;</span></b></div><div><b><span style="font-family: courier;"><br /></span></b></div><div><b><span style="font-family: courier;"><span style="color: #0b5394;">export default class</span> GetDataDisplayData <span style="color: #0b5394;">extends</span> LightningElement {</span></b></div><div><span style="color: #38761d; font-family: courier;">//This is how you will bind your recordId and fields</span></div><div><div><span style="background-color: #eeeeee; font-family: courier;"><b><span style="color: #a64d79;">@wire</span>(getRecord, { recordId: <span style="color: #990000;">'$recordId',</span>fields: </b><b><span style="color: #0b5394;">ACCOUNT_NAME_FIELD</span></b><b> })</b></span></div><div><b><span style="font-family: courier;"><span style="background-color: #eeeeee;"> accountData</span>;</span></b></div></div><div><b><span style="font-family: courier;"><br /></span></b></div><div><span style="color: #38761d; font-family: courier;">//Now if you want to access Account Name of current record then simply you can use it for example :</span></div><div><span style="font-family: courier;"><br /></span></div><div><b><span style="font-family: courier;"><span style="color: #38761d;"> get</span> <span style="color: #741b47;">accName</span>(){</span></b></div><div><span style="color: #38761d; font-family: courier;">// This is how you will get the value </span></div><div><b><span style="font-family: courier;"> <span style="color: #38761d;">return</span> <span style="background-color: #eeeeee;">accountData.data.<span style="color: #000814; font-size: 1em; word-spacing: normal;">fields</span><span class="token punctuation" componentreference-codehighlighter_codehighlighter="" componentreference-externaldocumentationcontent_externaldocumentationcontent="" style="box-sizing: border-box; color: #000814; font-size: 1em; word-spacing: normal;">.</span><span style="color: #000814; font-size: 1em; word-spacing: normal;">Name</span><span class="token punctuation" componentreference-codehighlighter_codehighlighter="" componentreference-externaldocumentationcontent_externaldocumentationcontent="" style="box-sizing: border-box; color: #000814; font-size: 1em; word-spacing: normal;">.</span><span style="color: #000814; font-size: 1em; word-spacing: normal;">value</span></span><span style="background-color: white; color: #000814; font-size: 1em; word-spacing: normal;">;</span></span></b></div><div><b><span style="font-family: courier;"> }</span></b></div><div><b><span style="font-family: courier;">}</span></b></div><div><span style="font-family: verdana;">=========</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">This way you can also display only specific data as per your requirement. You need to play with all the ways we discussed in episode to get better and better when playing with the data. </span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">In the upcoming episode we will try to create mini project modules with salesforce LWC components and the boss level challenging components as well. So all of that see you in the next episode. Till then keep learning...keep growing and keep sharing.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><div style="background: 0px 0px rgb(255, 255, 255); border: 0px; color: #5e5e5e; font-family: Roboto, sans-serif; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><span style="background: 0px 0px; border: 0px; font-family: verdana; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><span face="verdana, sans-serif" style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><b style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">WOHOOO !! YOU HAVE JUST COMPLETED HOW TO FETCH AND DISPLAY DATA IN LWC</b><span face="verdana, sans-serif" style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"> <b style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">EPISODE</b></span></span><br style="outline: 0px; transition: all 0.3s ease 0s;" /><span face="verdana, sans-serif" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px 0px; background-repeat: initial; background-size: initial; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">If you like this</span><span face="verdana, sans-serif" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px 0px; background-repeat: initial; background-size: initial; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"> </span><a href="https://www.sfdckid.com/" style="background: 0px 0px; border: 0px; color: #008bc7; margin: 0px; outline: 0px; padding: 0px; text-decoration-line: none; transition: all 0.3s ease 0s; vertical-align: baseline;"><b style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">SFDCkid</b></a><span face="verdana, sans-serif" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px 0px; background-repeat: initial; background-size: initial; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"> </span><span face="verdana, sans-serif" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px 0px; background-repeat: initial; background-size: initial; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">learning platform please let me know in the Comment section...Also, Share with your salesforce folks wish you all </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px 0px; background-repeat: initial; background-size: initial; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">⚡️</span><span face="verdana, sans-serif" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px 0px; background-repeat: initial; background-size: initial; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><b style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">Happy Learning</b> ☁️⚡️ (Learn. Help. Share.)</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: 0px 0px; background-repeat: initial; background-size: initial; border: 0px; font-family: Times; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"> 😊</span><span style="background: 0px 0px; border: 0px; font-family: Times; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"> </span></span></div></div><div style="background: 0px 0px rgb(255, 255, 255); border: 0px; color: #5e5e5e; font-family: Roboto, sans-serif; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><span style="background: 0px 0px; border: 0px; font-family: verdana; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><span style="background: 0px 0px; border: 0px; font-family: Times; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><br /></span></span></div><div style="background: 0px 0px rgb(255, 255, 255); border: 0px; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><span style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><span style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><span style="font-family: verdana;"><b><a href="https://www.sfdckid.com/2020/09/communicate-with-events-in-lwc.html" rel="nofollow" target="_blank"><< PREVIOUS</a></b></span><br /></span></span></div><div style="background: 0px 0px rgb(255, 255, 255); border: 0px; color: #5e5e5e; font-family: Roboto, sans-serif; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><span style="background: 0px 0px; border: 0px; font-family: verdana; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><span style="background: 0px 0px; border: 0px; font-family: Times; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><br /></span></span></div><div style="background: 0px 0px rgb(255, 255, 255); border: 0px; color: #5e5e5e; font-family: Roboto, sans-serif; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><span style="background: 0px 0px; border: 0px; font-family: verdana; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnl-MbJkV9uZ0bfe3olaKQRckSY1G-FUSzqzaWOeqGc3pDQTkbWUiDo6qKv9V8uVinLE3kpqNBaOZcLt4pZ9bUUs7k4W8MFYFZZ9FwWvh9dm9GSIpH-oZE1mOMsAZTUqTIqiZMJ9kSvXw/s2730/blogBottom.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="sfdckidFooter" border="0" data-original-height="469" data-original-width="2730" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnl-MbJkV9uZ0bfe3olaKQRckSY1G-FUSzqzaWOeqGc3pDQTkbWUiDo6qKv9V8uVinLE3kpqNBaOZcLt4pZ9bUUs7k4W8MFYFZZ9FwWvh9dm9GSIpH-oZE1mOMsAZTUqTIqiZMJ9kSvXw/s16000/blogBottom.jpg" title="sfdckidFooter" /></a></div><br /></span></div>
AJINKYA DHAS http://www.blogger.com/profile/13223328981950114267noreply@blogger.com8tag:blogger.com,1999:blog-8457518975744463615.post-9468801526746833892021-03-10T03:58:00.001-08:002021-03-10T19:10:19.006-08:00System.NullPointerException: Attempt to de-reference a null object | Troubleshooting | Salesforce Error<h1 style="text-align: center;"><span style="font-family: verdana;"><b><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGllmQX83AIZrqM9-9mWS0fxWp1BGiDDKyYMp9bcU9rvp9jyxKXmokyyOVurZ8K5OH8LXh0X1zKE5DeFrFHzxOzcRSXIed8h3o3_QfQ3tyPTZ3HYi9pIRPXBiH0T5kehz89H50Vc0g_v0/s1366/NullPointerError.jpg" style="margin-left: 1em; margin-right: 1em;"><img alt="Null Pointer Error" border="0" data-original-height="768" data-original-width="1366" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGllmQX83AIZrqM9-9mWS0fxWp1BGiDDKyYMp9bcU9rvp9jyxKXmokyyOVurZ8K5OH8LXh0X1zKE5DeFrFHzxOzcRSXIed8h3o3_QfQ3tyPTZ3HYi9pIRPXBiH0T5kehz89H50Vc0g_v0/s16000/NullPointerError.jpg" title="Null Pointer Error" /></a><b> </b></div></b></span></h1><h1 style="text-align: center;"><span style="font-family: verdana;"><b>Why I am facing System.NullPointerException error </b></span></h1><div><span style="font-family: verdana;">Offoo!! I tried writing the code and it's again hitting the error "System.NullPointerException: Attempt to de-reference a null object"w</span><span style="font-family: verdana;">. I am really not sure what exactly is bothering my apex code 😭😩. I really tried very hard to complete the requirement but it's giving me this error now.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Relax Kid! It's just a code and it's designed to be fixed. Do you remember 'Every problem come up with its solution' Likewise this error is giving you the opportunity to not do mistakes again.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">So let's roll on your sleeves because today we are going to learn about how to fix this error with the proper troubleshooting techniques and process which you can use in order to resolve this "</span><span style="font-family: verdana;">System.NullPointerException" error (shhh... and for other errors too 🤫) </span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Just Trust the process Kid...</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Today we are going to understand :</span></div><div><span style="font-family: verdana;"><b>1) When exactly we get this error (with scenario)</b></span></div><div><span style="font-family: verdana;"><b>2) How you can troubleshoot it</b></span></div><div><span style="font-family: verdana;"><b>3) How to fix it with proper understanding</b></span></div><div><span style="font-family: verdana;"><b>4) Best practices to be followed to avoid this error</b></span></div><div><span style="font-family: verdana;"><b><br /></b></span></div><div><span style="font-family: verdana;">Let's get started...</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Oops! I forgot to tell you, you may come across this error in multiple scenarios when writing the apex code in the salesforce but ultimately the methods which you will learn today are the secrets of your seniors.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Finally..Let's begin</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;"><b>What exactly does this weird error "System.NullPointerException: Attempt to de-reference a null object" means?</b></span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Now consider one real-life example: Let's suppose if I will give you A4 size blank white paper and ask you to read line number 4 paragraph of it ?? What will be your reaction 😒😏. You will say hey buddy there are no lines drawn on the page also, neither any paragraph is written over here. How can I even read those man!! </span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Hence before reading those lines on a paragraph you should first have lines drawn and a paragraph written on that A4 size blank paper. Isn't it? Of course YES!!</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Similarly, before you try to execute and compile your apex code there must be the value defined that you are trying to access. Same way, when your code will try to look for the value stored inside the variable and it turns out as 'Null'. This is why the system also throws an error and ask you to draw the lines first and then try to read those from paper (Apex code in our case). </span></div><div><span style="font-family: verdana;">Hope the above example helps you to understand the background of the error.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">In Formal definition, This error is caused by a line of code that is trying to use an object that has not been instantiated or an object's attribute that has not been initialized. </span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Don't worry smartKid! we will break down those big words in more simpler version just be with me. </span></div><div><span style="font-family: verdana;"><br /></span></div><div><b style="font-family: verdana;">When exactly we get this error in our code :</b></div><div><b style="font-family: verdana;"><br /></b></div><div><span style="font-family: verdana;">Let's consider a very basic trigger scenario to understand this error in more detail. As mentioned earlier, there can be multiple scenarios but our major focus in this episode is finding the root cause and the way we can fix it. It's similar for all.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;"><b>Scenario</b>: Write a trigger to update the value for the Phone number with '9999999999' whenever a new account is created.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Hmm... it seems so simple but I am writing the trigger for the first time but I will try to implement this.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Follow the steps :</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;"><b>STEP 1. Open your developer console.</b></span></div><div><span style="font-family: verdana;"><b><br /></b></span></div><div><span style="font-family: verdana;"><b>STEP 2. Create a Trigger called as "AccountTrigger" on the Account object.</b></span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">It will look like below code</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">====</span></div><div><b><span style="font-family: courier;"><div><span style="color: #800180;">trigger</span> AccountTrigger on Account (before <span style="color: #0b5394;">insert</span>) {</div><div><br /></div><div>}</div></span></b></div><div><span style="font-family: verdana;">====</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Now, after writing the logic here as per the requirement.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;"><b>Sample 1:</b></span></div><div><span style="font-family: verdana;">====</span></div><div><div><b><span style="font-family: courier;"><span style="color: #800180;">trigger</span> AccountTrigger on Account (before <span style="color: #0b5394;">insert</span>) {</span></b></div><div><b><span style="font-family: courier;"> List<Account> accList; </span></b></div><div><b><span style="font-family: courier;"> for(Account acc : accList)</span></b></div><div><b><span style="font-family: courier;"> {</span></b></div><div><b><span style="font-family: courier;"> acc.Phone = <span style="color: #cc0000;">'9999999999'</span>; </span></b></div><div><b><span style="font-family: courier;"> }</span></b></div><div><b><span style="font-family: courier;">}</span></b></div></div><div><span style="font-family: verdana;">==== </span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Consider the above-weird sample code and Let's save this code...</span></div><div><br /></div><div><span style="font-family: verdana;"><b>STEP 3. Go to Accounts and try to create the new Account and hit Save</b></span></div><div><div><span style="font-family: verdana;">====</span></div></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieeaMd8BX6QCDad1c28kPXNvX6CJIzN5zUyJJI0AZlhQPUGok6G6buqWpeNJOki8JMI_CkG8Xf1dIwUtsxMGwgdEn-q4bt4W9uM4s-Est-H5On9lcHnLAbUHlCnofR4VDBOmk73GQqfpY/s1678/Screenshot+2021-03-10+at+4.25.54+PM.png" style="margin-left: 1em; margin-right: 1em;"><img alt="Salesforce Error" border="0" data-original-height="1246" data-original-width="1678" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieeaMd8BX6QCDad1c28kPXNvX6CJIzN5zUyJJI0AZlhQPUGok6G6buqWpeNJOki8JMI_CkG8Xf1dIwUtsxMGwgdEn-q4bt4W9uM4s-Est-H5On9lcHnLAbUHlCnofR4VDBOmk73GQqfpY/s16000/Screenshot+2021-03-10+at+4.25.54+PM.png" title="Salesforce Error" /></a></div><div class="separator" style="clear: both; text-align: left;"><span style="font-family: verdana;">====</span></div><br /><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Oops!! its trowing "</span><span color="var(--lwc-colorTextError,rgb(194, 57, 52))" face=""Salesforce Sans", Arial, sans-serif" style="background-color: white; font-size: 13px;"><b>AccountTrigger: execution of BeforeInsert caused by: System.NullPointerException: Attempt to de-reference a null object Trigger.AccountTrigger: line 3, column 1</b></span><span style="font-family: verdana;">" </span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Mmm..okay </span></div><div><span style="font-family: verdana;"><br /></span></div><div><b style="font-family: verdana;">How you can troubleshoot it :</b></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;"><b>STEP 4. Check your apex code</b></span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Now let's check the line number mentioned in our code i.e. <b>line 3, column 1</b> </span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">we have "</span><span style="font-family: courier; font-weight: bold;">for(Account acc: accList)" </span><span style="font-family: verdana;">this c</span><span style="font-family: verdana;">ode at line number 3.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Now just looking at the line number we will not be able to fix it right ? </span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Next Step...</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;"><b>STEP 5 : Let's look at developer console logs</b> </span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">As these logs will give you exactly where you are getting null values.</span></div><div><span style="font-family: verdana;">you will get the latest log in recent logs of log tab in your developer console like below:</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">====</span></div><div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0Vh_TneH41GzU4sz7zA7dpN5zvhna6Cj6hQ-2fcmkOZutdG1Iwkw-Y8WKqYlIq-rUESIiakEZBESaiPbVchlwH7E92RGgiF6cbyODF3v4Q4JeXOnwI0-L_3KQgyZug-xbYPjyHlTaVHI/s2560/Screenshot+2021-03-10+at+3.47.02+PM.png" style="margin-left: 1em; margin-right: 1em;"><img alt="Salesforce Error" border="0" data-original-height="412" data-original-width="2560" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0Vh_TneH41GzU4sz7zA7dpN5zvhna6Cj6hQ-2fcmkOZutdG1Iwkw-Y8WKqYlIq-rUESIiakEZBESaiPbVchlwH7E92RGgiF6cbyODF3v4Q4JeXOnwI0-L_3KQgyZug-xbYPjyHlTaVHI/s16000/Screenshot+2021-03-10+at+3.47.02+PM.png" title="Salesforce Error" /></a></div></div><div><span style="font-family: verdana;">====</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Double click on these logs and check the executable checkbox in your developer console present on the bottom left side.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Here are the results :</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">====</span></div><div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivtvcNUIcbVmhHldb4A1tl9R0Rt4aCVzV241sCHlerY2fU1xGWkch1TdQNskOTC20nQOXATjcj7nXserUwNTNwbQnPD9lYzw2xqVMml0ZPtPLXKIH3eAucmQDW__Nkg7ABViU0XcIWIOs/s1636/Screenshot+2021-03-10+at+3.51.47+PM.png" style="margin-left: 1em; margin-right: 1em;"><img alt="Salesforce Error" border="0" data-original-height="1090" data-original-width="1636" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivtvcNUIcbVmhHldb4A1tl9R0Rt4aCVzV241sCHlerY2fU1xGWkch1TdQNskOTC20nQOXATjcj7nXserUwNTNwbQnPD9lYzw2xqVMml0ZPtPLXKIH3eAucmQDW__Nkg7ABViU0XcIWIOs/s16000/Screenshot+2021-03-10+at+3.51.47+PM.png" title="Salesforce Error" /></a></div></div><div><span style="font-family: verdana;">====</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Hey Kid!! Can you observe the highlighted line </span><b><span style="font-family: courier;">VARIABLE_ASSIGNMENT[2]|this.accList|null|0x1bd0e68c </span></b></div><div><b><span style="font-family: courier;"><br /></span></b></div><div><span style="font-family: verdana;">You understood it correctly, it is because when the trigger is executing the value it is trying to read for accList is <b>null</b></span></div><div><span style="font-family: verdana;"><b><br /></b></span></div><div><b style="font-family: verdana;">Alternative : </b><span style="font-family: verdana;">You also can put </span><span style="color: #990000; font-family: courier; font-weight: bold;">system.debug('Value of acclist is ::'+ accList) </span><span style="font-family: verdana;">on before line number 3 to check what exactly the value is coming before using it.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Now time to fix it.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><b style="font-family: verdana;">How to fix it with proper understanding :</b></div><div><b style="font-family: verdana;"><br /></b></div><div><b style="font-family: verdana;">STEP 6 : Check where it is defined.</b></div><div><b style="font-family: verdana;"><br /></b></div><div><span style="font-family: verdana;">We can observe that we only mentioned <b>List<Account> accList; </b>in our code and then directly using it right? it's not the correct way of </span><span style="font-family: verdana;">instantiation of new account list. </span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">The proper </span><span style="font-family: verdana;">instantiation for creating a new account List is :</span></div><div><span style="font-family: verdana;"><b>List<Account> accList = new List<Account>();</b></span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Let's correct it...and check it out.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">====</span></div><div><div><b><span style="font-family: courier;"><span style="color: #800180;">trigger</span> AccountTrigger on Account (before <span style="color: #0b5394;">insert</span>) {</span></b></div><div><b><span style="font-family: courier;"> List<Account> accList = new List<Account>();</span></b></div><div><b><span style="font-family: courier;"> for(Account acc : accList)</span></b></div><div><b><span style="font-family: courier;"> {</span></b></div><div><b><span style="font-family: courier;"> acc.Phone = <span style="color: #990000;">'9999999999'</span>; </span></b></div><div><b><span style="font-family: courier;"> }</span></b></div><div><b><span style="font-family: courier;">}</span></b></div></div><div><span style="font-family: verdana;">====</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;"><b>Save </b>it and now try to create a new account.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Now you will be able to create new Account without any error. Hurreyy!!</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Wait...wait...wait...it's not over kid.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Check the phone field on your newly created account successfully and error is <b>resolved</b>. Oops!! it's blank that means the trigger is not working as expected.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Because now we have to correct our code, we need to use <b>Trigger.new</b> to iterate inside for loop instead of this list </span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Corrected code after using <b>trigger.new </b>instead of <b>accList </b>:</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">====</span></div><div><b><span style="font-family: courier;"><div><span style="color: #800180;">trigger</span> AccountTrigger on Account (before <span style="color: #0b5394;">insert</span>) {</div><div><br /></div><div> for(Account acc : Trigger.new)</div><div> {</div><div> acc.Phone = <span style="color: #990000;">'9999999999'</span>; </div><div> }</div><div>}</div></span></b></div><div><span style="font-family: verdana;">====</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Perfect...now if you try to run the above code it will create a new account record and update the Phone value with '9999999999' every time.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;"><b>Result </b>:</span></div><div><span style="font-family: verdana;">====</span></div><div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWCcZUCT3j_IkD6vFoNqpMOjlqxkzp3SUFRjBvcj_5IXKpVIG5-3G4J7ztLojwkhq8HKBV4-PU1tTX4pUOYmOw-TXDZiCTP966CR5ep9mdeDLpywEmASbLGfWLDZSXT5AcFUePyncRZYo/s1708/Screenshot+2021-03-10+at+4.30.25+PM.png" style="margin-left: 1em; margin-right: 1em;"><img alt="Salesforce Error" border="0" data-original-height="1246" data-original-width="1708" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWCcZUCT3j_IkD6vFoNqpMOjlqxkzp3SUFRjBvcj_5IXKpVIG5-3G4J7ztLojwkhq8HKBV4-PU1tTX4pUOYmOw-TXDZiCTP966CR5ep9mdeDLpywEmASbLGfWLDZSXT5AcFUePyncRZYo/s16000/Screenshot+2021-03-10+at+4.30.25+PM.png" title="Salesforce Error" /></a></div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">====</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Hence the solution is to make sure the Object and/or the Attribute to be used is not null. </span></div><div><span style="font-family: verdana;"><br /></span></div><div><b style="font-family: verdana;">Best practices to be followed to avoid this error :</b></div><div><b style="font-family: verdana;"><br /></b></div><div><span style="font-family: verdana;">We can add null checks every time when you are trying to access the new list or any value.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><div><span style="font-family: verdana;">====</span></div><div><b><span style="font-family: courier;"><div><span style="color: #800180;">trigger</span> AccountTrigger on Account (before <span style="color: #0b5394;">insert</span>) {</div><div><br /></div><div> for(Account acc : <span style="color: #800180;">Trigger.new</span>)</div><div> {</div><div><span> if(acc.Phone != Null){</span></div><div> acc.<span style="color: #0b5394;">Phone</span> = <span style="color: #990000;">'9999999999'</span>; </div><div><span><span> </span>}</span></div><div> }</div><div>}</div></span></b></div><div><span style="font-family: verdana;">====</span></div></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Also, best way is to use Try/Catch blacks to add exception handling in your code.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">for example (if we add it to our initial code):</span></div><div><span style="font-family: verdana;"><br /></span></div><div><div><span style="font-family: verdana;">====</span></div><div><div><b><span style="font-family: courier;"><span style="color: #800180;">trigger</span> AccountTrigger on Account (before <span style="color: #0b5394;">insert</span>) {</span></b></div><div><b><span style="font-family: courier;"> List<Account> accList;</span></b></div><div><b><span style="font-family: courier;">try{</span></b></div><div><b><span style="font-family: courier;"> for(Account acc : accList)</span></b></div><div><b><span style="font-family: courier;"> {</span></b></div><div><span style="font-family: courier; font-weight: 700;"> if(acc.Phone != Null){</span></div><div><b><span style="font-family: courier;"> acc.Phone = <span style="color: #990000;">'9999999999'</span>; </span></b></div><div><b><span style="font-family: courier;"><span> </span>} </span></b></div><div><b><span style="font-family: courier;"> }</span></b></div><div><b><span style="font-family: courier;"><span> }</span><br /></span></b></div><div><b><span style="font-family: courier;"><span><span> catch(exception e){</span></span></span></b></div><div><span style="font-family: courier;"><b> </b><span style="color: #b45f06;">// Print the exception in debug logs instaed of showing on UI</span><br /></span></div><div><b><span style="font-family: courier;"><span><span><span> </span></span></span></span></b><span style="font-family: courier;"><b>system.debug(<span style="color: #990000;">'This is exception ::'</span>+ e);</b></span></div><div><b><span style="font-family: courier;"><span><span><span> </span>}</span><br /></span></span></b></div><div><b><span style="font-family: courier;">}</span></b></div></div><div><span style="font-family: verdana;">====</span></div></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">In the above code, after adding try/catch, your new account will save successfully every time you save the record but it will skip the code if there is an exception and you can check the exception in debug logs.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Just like this :</span></div><div><span style="font-family: verdana;">====</span></div><div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgravdwrMmmqZnKzCYLuwpNQaQfJukP1uTVHKXxQYjqsuu-cMhGqR_eyEii9Ii93IiR2NnvvalC2vivrVEdMYfWsnCuUrNiw6bNzG5qPcclzpxc50vTsIz68ENJoPshaiQA2klH2syBG_g/s1708/Screenshot+2021-03-10+at+4.45.57+PM.png" style="margin-left: 1em; margin-right: 1em;"><img alt="Salesforce Error" border="0" data-original-height="1246" data-original-width="1708" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgravdwrMmmqZnKzCYLuwpNQaQfJukP1uTVHKXxQYjqsuu-cMhGqR_eyEii9Ii93IiR2NnvvalC2vivrVEdMYfWsnCuUrNiw6bNzG5qPcclzpxc50vTsIz68ENJoPshaiQA2klH2syBG_g/s16000/Screenshot+2021-03-10+at+4.45.57+PM.png" title="Salesforce Error" /></a></div></div><div><span style="font-family: verdana;">====</span></div><div><span style="font-family: verdana;"><br /></span></div><div><br /></div><div><span style="font-family: verdana;">Hurreeyyy!!...Finally, we not only resolved the error with this weird trigger scenario but also we learned how you can troubleshoot the issue along with best practices and adding null checks inside your code.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">These methods will always help you to troubleshoot and resolve this error quickly.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Please let me know which is the most annoying error you have faced or if you want me to write about any specific salesforce error in this troubleshooting series. </span></div><div><br /></div><div><span style="font-family: verdana;"><div style="font-family: Times;"><span style="font-family: verdana;">Wish you all the very best!!..... Happy Learning ☁️⚡️</span></div><div style="font-family: Times;"><span style="font-family: verdana;"><br /></span></div><div><span style="font-size: medium;"><span style="font-family: verdana;"><b>WOHOOO !! YOU HAVE JUST COMPLETED </b><span face="verdana, sans-serif"><b>Troubleshooting for </b></span></span></span><span style="font-size: medium;"><b>System.NullPointerException error</b></span><span style="font-size: large;"> </span><b style="font-size: large;">EPISODE</b></div><div><span style="font-size: medium;"><span style="background-color: white; font-family: verdana;">If you like this</span><span style="background-color: white; color: #5e5e5e; font-family: verdana;"> </span><a href="https://www.sfdckid.com/"><b>SFDCkid</b></a><span style="background-color: white; color: #5e5e5e; font-family: verdana;"> </span><span style="background-color: white; font-family: verdana;">learning platform please let me know in the Comment section...Also, Share with your salesforce folks wish you all </span><span style="background-color: white; font-family: verdana;">⚡️</span><span style="background-color: white; font-family: verdana;"><b>Happy Learning</b> ☁️⚡️ (Learn. Help. Share.)</span><span style="background-color: white;"> 😊</span><span> </span></span></div></span></div><div><span style="font-family: verdana;"><br /></span></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgI-QT2OwVOGVOd0rE1FeGUc7a-ngNOZa-_KOvvSA_SfJJBJOPoQoke0_8fsxA8IU3ccmj4RlPg-ABl-8OVnxqrLt3I_TMddgN35E7YSRkNptZv7EQ45CsKmPCuVph4_h2H5ZgzRlvPdAM/s2730/blogBottom.jpg" style="margin-left: 1em; margin-right: 1em;"><img alt="SFDCKid Footer" border="0" data-original-height="469" data-original-width="2730" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgI-QT2OwVOGVOd0rE1FeGUc7a-ngNOZa-_KOvvSA_SfJJBJOPoQoke0_8fsxA8IU3ccmj4RlPg-ABl-8OVnxqrLt3I_TMddgN35E7YSRkNptZv7EQ45CsKmPCuVph4_h2H5ZgzRlvPdAM/s16000/blogBottom.jpg" title="SFDCKid Footer" /></a></div><br /><div><br /></div>AJINKYA DHAS http://www.blogger.com/profile/13223328981950114267noreply@blogger.com1tag:blogger.com,1999:blog-8457518975744463615.post-87473751286750403252020-11-15T08:18:00.001-08:002020-11-21T20:00:54.629-08:00Component That Speaks To You | Lightning Component | Salesforce<h1 style="text-align: center;"><span style="font-family: verdana;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZHAmGZXQO9AJHtq3LvAhb3XaTSRDbliKi5F0wrTj6v_9juq-eWfU7EgZLDmzWsglki4WbvNfeUiRNJ-8sLDo_c1yOJ-JN96bVsaaS_2X9egqG073ItegvIFbCFPLCVaBTpXdLP7_bQL4/s1366/SPEAK.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="768" data-original-width="1366" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZHAmGZXQO9AJHtq3LvAhb3XaTSRDbliKi5F0wrTj6v_9juq-eWfU7EgZLDmzWsglki4WbvNfeUiRNJ-8sLDo_c1yOJ-JN96bVsaaS_2X9egqG073ItegvIFbCFPLCVaBTpXdLP7_bQL4/s16000/SPEAK.jpg" /></a></div> </span></h1><h1 style="text-align: center;"><span style="font-family: verdana;">Component That Speaks To You</span></h1><div><span style="font-family: verdana;">Hello Kid!! I hope you are doing great. Thank you for taking some time to learn something new really appreciated.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">In this episode, we will learn how we can let our component development more interactive with the end-user.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;"><b>Before we start :</b></span></div><div><span style="font-family: verdana;">Before starting, let's understand how your lightning component can play a sound without any static resource. Yess!! that's correct we are not going to use any static resource or recorded sound.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">In this episode, we will use Web Speech Synthesis API which is directly available in your browser. Where you just need to pass the string/text and your browser will read that text for you.</span></div><div><br /></div><div><span style="font-family: verdana;">While using salesforce lightning component we can use this but as you are well aware that salesforce is using LockerService to block some of the browser features for security purpose. </span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Now, how we can use it then? </span></div><div><span style="font-family: verdana;">To use Speech Synthesis Web API we need to use component API version below 40 as LockerService introduced in API version 40. This is for salesforce AURA Component.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Can we use it in LWC ?</span></div><div><span style="font-family: verdana;">Directly you cannot use it as LWC will work on a component version 45+. But there is a workaround which we can use to use this API in LWC as well. I will share that in the upcoming episodes.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;"><b>What's the recipe for today ?</b></span></div><div><span style="font-family: verdana;">In this episode, We will create a lightning component to renew the <b>Insurance</b> if the <b>Insurance</b> is expired. Hence whenever you open the insurance record your component will speak if its <b>Live</b> </span></div><div><span style="font-family: verdana;"><br /></span></div><div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHmgUjq7u5IxuvaCexoqfNWBilBmRRL8_MkSCuBMXtWu1T3ERnq5QOwX1Sv0m86tVnuVoaOpeXQ3rNgRTntXIkCC8Ld5trxXRfzRMZ6igohzmvuLKndaOn6PbBkmZ6ByH3hsQuHvfIvTA/s850/Screenshot+2020-11-15+at+6.41.00+PM.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="230" data-original-width="850" height="174" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHmgUjq7u5IxuvaCexoqfNWBilBmRRL8_MkSCuBMXtWu1T3ERnq5QOwX1Sv0m86tVnuVoaOpeXQ3rNgRTntXIkCC8Ld5trxXRfzRMZ6igohzmvuLKndaOn6PbBkmZ6ByH3hsQuHvfIvTA/w640-h174/Screenshot+2020-11-15+at+6.41.00+PM.png" width="640" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: center;"><span style="font-family: verdana; text-align: left;">or </span><b style="font-family: verdana; text-align: left;">Expired</b><span style="font-family: verdana; text-align: left;">. </span></div><br /><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBg5bT7EvlpI_3BO5CgVqMl3Rtx3EWWCdcFejQxjsBl9xJy2MPbosBuvVh3hktGZuNtgqb-WEDIIw7DHEUDT-VesjGfHGCIJnecuzVT0_hSY0EpsXNjaPE3qvsHYwvWqdXWCGP0jURnSo/s850/Screenshot+2020-11-15+at+6.41.13+PM.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="460" data-original-width="850" height="346" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBg5bT7EvlpI_3BO5CgVqMl3Rtx3EWWCdcFejQxjsBl9xJy2MPbosBuvVh3hktGZuNtgqb-WEDIIw7DHEUDT-VesjGfHGCIJnecuzVT0_hSY0EpsXNjaPE3qvsHYwvWqdXWCGP0jURnSo/w640-h346/Screenshot+2020-11-15+at+6.41.13+PM.png" width="640" /></a></div><br /><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">If it's <b>Expired </b>it will tell you that 'it's expired please renew the insurance now' and then once you select the next expiry date it will give you the confirmation of renewal of Insurance as well as the updated status of insurance.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;"><b>Let's get started.....</b></span></div><div><span style="font-family: verdana;"><b><br /></b></span></div><div><span style="font-family: verdana;"><b>Pre-requisites :</b></span></div><div><br /></div><div><span style="font-family: verdana;">Please create the Object and Fields as below :</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;"><b>Object</b> : </span></div><div><span style="font-family: verdana;">Label : Insurance (</span><span style="font-family: verdana;">Insurance__c)</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;"><b>Fields</b> :</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">1 -></span></div><div><span style="font-family: verdana;"><b>Label : Start Date (Start_Date__c)</b></span></div><div><span style="font-family: verdana;"><b>Data Type : Date</b></span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">2 -> </span></div><div><span style="font-family: verdana;"><b>Label : End Date (End_Date__c)</b></span></div><div><span style="font-family: verdana;"><b>Data Type : Date</b></span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">3 -> </span></div><div><b><span style="font-family: verdana;">Label : isExpired(</span><span style="font-family: verdana;">isExpired__c)</span></b></div><div><span style="font-family: verdana;"><b>Data Type : Formula (Checkbox)</b></span></div><div><span style="font-family: verdana;"><b>Formula : IF(End_Date__c < TODAY() , true, false)</b></span></div><div><br /></div><div><span style="font-family: verdana;">isExpired is the field which will decide whether the insurance is expired or not.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;"><b>Now let's get started........</b></span></div><div><span style="font-family: verdana;"><b><br /></b></span></div><div><span style="font-family: verdana;">Now open your developer console and create a lightning component as <b>"renewInsurance"</b></span></div><div><span style="font-family: verdana;"><b><br /></b></span></div><div><span style="font-family: verdana;">Let's create it as </span></div><div><span style="font-family: verdana;"><br /></span></div><div><b style="font-family: verdana;">renewInsurance.cmp</b></div><div><b style="font-family: verdana;">---------------------------------------</b></div><div><b><span style="font-family: courier;"><div><span style="color: #38761d;"><aura:component </span><span style="color: #0b5394;">controller</span><span style="color: #38761d;"> =</span><span style="color: #990000;">"insuranceController" </span><span style="color: #38761d;"> </span><span style="color: #0b5394;">implements</span><span style="color: #38761d;">=</span><span style="color: #990000;">"flexipage:availableForAllPageTypes,force:hasRecordId" </span><span style="color: #0b5394;">access</span><span style="color: #38761d;">=</span><span style="color: #990000;">"global"</span><span style="color: #38761d;">></span></div><div><span style="color: #b45f06;"><!-- attributes defined below --></span></div><div><span style="color: #38761d;"> <aura:handler </span><span style="color: #0b5394;">name</span><span style="color: #38761d;">="init" </span><span style="color: #0b5394;">value</span><span style="color: #38761d;">="{!this}" </span><span style="color: #0b5394;">action</span><span style="color: #38761d;">="{!c.doInit}"/></span></div><div><span style="color: #38761d;"> <aura:attribute </span><span style="color: #0b5394;">name</span><span style="color: #38761d;">=</span><span style="color: #990000;">"recordId"</span><span style="color: #38761d;"> </span><span style="color: #0b5394;">type</span><span style="color: #38761d;">=</span><span style="color: #990000;">"String"</span><span style="color: #38761d;">/></span></div><div><span style="color: #38761d;"> <aura:attribute </span><span style="color: #0b5394;">name</span><span style="color: #38761d;">=</span><span style="color: #990000;">"renewDate"</span><span style="color: #38761d;"> </span><span style="color: #0b5394;">type</span><span style="color: #38761d;">=</span><span style="color: #990000;">"Date"</span><span style="color: #38761d;">/></span></div><div><span style="color: #38761d;"> <aura:attribute </span><span style="color: #0b5394;">name</span><span style="color: #38761d;">=</span><span style="color: #990000;">"showDetail"</span><span style="color: #38761d;"> </span><span style="color: #0b5394;">type</span><span style="color: #38761d;">=</span><span style="color: #990000;">"Boolean"</span><span style="color: #38761d;"> </span><span style="color: #0b5394;">default</span><span style="color: #38761d;">=</span><span style="color: #990000;">"false"</span><span style="color: #38761d;">/></span></div><div><span style="color: #38761d;"> <aura:attribute </span><span style="color: #0b5394;">name</span><span style="color: #38761d;">=</span><span style="color: #990000;">"record"</span><span style="color: #38761d;"> </span><span style="color: #0b5394;">type</span><span style="color: #38761d;">=</span><span style="color: #990000;">"Insurance__c" </span><span style="color: #38761d;">/></span></div><div style="color: #38761d;"> </div><div style="color: #38761d;"><span style="color: #b45f06;"><!-- LDS to get current record data using below --></span></div><div><span style="color: #38761d;"> <force:recordData </span><span style="color: #0b5394;">layoutType</span><span style="color: #38761d;">=</span><span style="color: #990000;">"FULL"</span></div><div><span style="color: #38761d;"> </span><span style="color: #0b5394;">recordId</span><span style="color: #38761d;">=</span><span style="color: #990000;">"{!v.recordId}"</span></div><div><span style="color: #38761d;"> </span><span style="color: #0b5394;">targetFields</span><span style="color: #38761d;">=</span><span style="color: #990000;">"{!v.record}"</span></div><div><span style="color: #38761d;"> </span><span style="color: #0b5394;">recordUpdated</span><span style="color: #38761d;">=</span><span style="color: #990000;">"{!c.doInit}"</span><span style="color: #38761d;">/></span></div><div><span style="color: #38761d;"><br /></span></div><div style="color: #38761d;"><span style="color: #b45f06;"><!-- below code to display expired based on isExpired checkbox--></span></div><div style="color: #38761d;"><lightning:card ></div><div><span style="color: #38761d;"> <aura:if </span><span style="color: #0b5394;">isTrue</span><span style="color: #38761d;">="{!v.showDetail}"></span></div><div style="color: #38761d;"> <h1 style="color:#ec524b" class="status">EXPIRED</h1></div><div><span style="color: #38761d;"> <h1 class="renewlabel"></span>Renew Insurance now<span style="color: #38761d;"></h1></span></div><div style="color: #38761d;"> <p style="margin:5px"> </div><div><span style="color: #38761d;"> <lightning:input type=</span><span style="color: #990000;">"date" </span></div><div><span style="color: #38761d;"> name=</span><span style="color: #990000;">"Next Expiry Date" </span></div><div><span style="color: #38761d;"> label=</span><span style="color: #990000;">"Next Expiry Date" </span></div><div><span style="color: #38761d;"> value=</span><span style="color: #990000;">"{!v.renewDate}" </span><span style="color: #38761d;"> </span></div><div><span style="color: #38761d;"> style=</span><span style="color: #990000;">"padding-bottom:5px"</span><span style="color: #38761d;">/> </span></div><div><span style="color: #38761d;"><lightning:button </span><span style="color: #0b5394;">variant</span><span style="color: #38761d;">=</span><span style="color: #990000;">"brand"</span><span style="color: #38761d;"> </span><span style="color: #0b5394;">label</span><span style="color: #38761d;">=</span><span style="color: #990000;">"Update"</span><span style="color: #38761d;"> </span><span style="color: #0b5394;">title</span><span style="color: #38761d;">=</span><span style="color: #990000;">"Brand action"</span><span style="color: #38761d;"> </span><span style="color: #0b5394;">onclick</span><span style="color: #38761d;">=</span><span style="color: #990000;">"{!c.handleChange}"</span><span style="color: #38761d;">/></span></div><div style="color: #38761d;"> </p></div><div style="color: #38761d;"><br /></div><div style="color: #38761d;"><span style="color: #b45f06;"><!--below code to display live based on isExpired checkbox--></span></div><div><span style="color: #38761d;"> <aura:set </span><span style="color: #0b5394;">attribute</span><span style="color: #38761d;">=</span><span style="color: #990000;">"else"</span><span style="color: #38761d;">></span></div><div><span style="color: #38761d;"> <h1 style="color:#01c5c4" class="status"></span>LIVE<span style="color: #38761d;"></h1></span></div><div style="color: #38761d;"> </aura:set></div><div style="color: #38761d;"> </aura:if></div><div style="color: #38761d;"> </lightning:card></div><div style="color: #38761d;"></aura:component></div></span></b></div><div><b style="font-family: verdana;">---------------------------------------</b></div><div><b style="font-family: verdana;"><br /></b></div><div><span style="font-family: verdana;">In the above code, to get the current record we used </span><span style="color: #990000; font-family: courier; font-weight: 700;">force:hasRecordId </span><span style="font-family: verdana;">and then we used recordId attribute which will store that value.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Next, we used Lightning data service to get the <b>isExpired</b> field value from the current record which we will use further in .js controller to verify if insurance is Expired or Live </span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Then we used aura:if for a conditional statement to display Expired or Live status.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">In case of Insurance Expired, we will ask the user to enter the insurance renewal plan and for submission, we used the Update button.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Now, let's take a look at the controller file where we are calling speech synthesis API and passing the string to speak.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">What's inside controller file -></span></div><div><b style="font-family: verdana;"><br /></b></div><div><div><b style="font-family: verdana;">renewInsuranceController.js</b></div><div><b style="font-family: verdana;">---------------------------------------</b></div><div><div><b><span style="font-family: courier;">({</span></b></div><div><b><span style="font-family: courier;"> doInit: <span style="color: #800180;">function</span>(<span style="color: #0b5394;">component</span>, <span style="color: #0b5394;">event</span>, <span style="color: #0b5394;">helper</span>) {</span></b></div><div><b><span style="font-family: courier;"> var isExpired = <span style="color: #0b5394;">component</span>.get("v.record.isExpired__c");</span></b></div><div><b><span style="font-family: courier;"> </span></b></div><div><b><span style="font-family: courier;"> if (isExpired == true){</span></b></div><div><b><span style="font-family: courier;"> <span style="color: #0b5394;">component</span>.set(<span style="color: #990000;">"v.showDetail"</span>,true);</span></b></div><div><span style="color: #b45f06; font-family: courier;"><b>//below code is use as speech synthesis which will accept the string and speak </b></span></div><div><b><span style="font-family: courier;"> if(<span style="color: #990000;">'speechSynthesis'</span> in <span style="color: #0b5394;">window</span>)</span></b></div><div><b><span style="font-family: courier;"> {</span></b></div><div><b><span style="font-family: courier;"> var speech = new window.SpeechSynthesisUtterance(<span style="color: #990000;">'This Insurance is expired. Please renew insurance'</span>);</span></b></div><div><b><span style="font-family: courier;"> speech.lang = <span style="color: #990000;">'en-US'</span>;</span></b></div><div><b><span style="font-family: courier;"> window.speechSynthesis.speak(speech); </span></b></div><div><b><span style="font-family: courier;"> } </span></b></div><div><b><span style="font-family: courier;"> else</span></b></div><div><b><span style="font-family: courier;"> {</span></b></div><div><b><span style="font-family: courier;"> alert(<span style="color: #990000;">'speechSynthesis not supported'</span>);</span></b></div><div><b><span style="font-family: courier;"> }</span></b></div><div><b><span style="font-family: courier;"> }else if(isExpired == false){</span></b></div><div><b style="color: #b45f06; font-family: courier;">//below code is use as speech synthesis which will accept the string and speak </b></div><div><b><span style="font-family: courier;"> if(<span style="color: #990000;">'speechSynthesis'</span> in <span style="color: #0b5394;">window</span>)</span></b></div><div><b><span style="font-family: courier;"> {</span></b></div><div><b><span style="font-family: courier;"> var speech = new window.SpeechSynthesisUtterance(<span style="color: #990000;">'This Insurance is Live now'</span>);</span></b></div><div><b><span style="font-family: courier;"> speech.lang = 'en-US';</span></b></div><div><b><span style="font-family: courier;"> window.speechSynthesis.speak(speech); </span></b></div><div><b><span style="font-family: courier;"> } </span></b></div><div><b><span style="font-family: courier;"> else</span></b></div><div><b><span style="font-family: courier;"> {</span></b></div><div><b><span style="font-family: courier;"> alert(<span style="color: #990000;">'speechSynthesis not supported'</span>);</span></b></div><div><b><span style="font-family: courier;"> }</span></b></div><div><b><span style="font-family: courier;"> } </span></b></div><div><b><span style="font-family: courier;"> },</span></b></div><div><b><span style="font-family: courier;"> </span></b></div><div><b><span style="font-family: courier;">handleChange : <span style="color: #800180;">function</span>(<span style="color: #0b5394;">component</span>, <span style="color: #0b5394;">event</span>, <span style="color: #0b5394;">helper</span>) {</span></b></div><div><b><span style="font-family: courier;"> var renewDate = <span style="color: #0b5394;">component</span>.get(<span style="color: #990000;">"v.renewDate"</span>);</span></b></div><div><b><span style="font-family: courier;"> var recordId = <span style="color: #0b5394;">component</span>.get(<span style="color: #990000;">"v.recordId"</span>);</span></b></div><div><b><span style="font-family: courier;"> var updateIns = <span style="color: #0b5394;">component</span>.get(<span style="color: #990000;">"c.updateInsurance"</span>);</span></b></div><div><b><span style="font-family: courier;"> </span></b></div><div><b><span style="font-family: courier;"> updateIns.setParams({</span></b></div><div><b><span style="font-family: courier;"> recordId : recordId,</span></b></div><div><b><span style="font-family: courier;"> renewDate : renewDate</span></b></div><div><b><span style="font-family: courier;"> });</span></b></div><div><b><span style="font-family: courier;"> updateIns.setCallback(this, function(response){</span></b></div><div><b><span style="font-family: courier;"> var state = response.getState();</span></b></div><div><b><span style="font-family: courier;"> if(state === <span style="color: #990000;">"SUCCESS"</span>)</span></b></div><div><b><span style="font-family: courier;"> {</span></b></div><div><b style="color: #b45f06; font-family: courier;">//below code is use as speech synthesis which will accept the string and speak </b></div><div><b><span style="font-family: courier;"> if(<span style="color: #990000;">'speechSynthesis'</span> in <span style="color: #0b5394;">window</span>)</span></b></div><div><b><span style="font-family: courier;"> {</span></b></div><div><b><span style="font-family: courier;"> var speech = new window.SpeechSynthesisUtterance(<span style="color: #0b5394;">'Insurance renewed successfully'</span>);</span></b></div><div><b><span style="font-family: courier;"> speech.lang = 'en-US';</span></b></div><div><b><span style="font-family: courier;"> window.speechSynthesis.speak(speech); </span></b></div><div><b><span style="font-family: courier;"> } </span></b></div><div><b><span style="font-family: courier;"> else</span></b></div><div><b><span style="font-family: courier;"> {</span></b></div><div><b><span style="font-family: courier;"> alert(<span style="color: #990000;">'speechSynthesis not supported'</span>);</span></b></div><div><b><span style="font-family: courier;"> }</span></b></div><div><b><span style="font-family: courier;"> <span style="color: #0b5394;">component</span>.set(<span style="color: #990000;">"v.showDetail"</span>,false);</span></b></div><div><b><span style="font-family: courier;"> $A.get(<span style="color: #990000;">'e.force:refreshView'</span>).fire(); </span></b></div><div><b><span style="font-family: courier;"> }</span></b><b><span style="font-family: courier;"> </span></b></div><div><b><span style="font-family: courier;"> });</span></b></div><div><b><span style="font-family: courier;"> $A.enqueueAction(<span style="color: #0b5394;">updateIns</span>); </span></b></div><div><b><span style="font-family: courier;"> }</span></b></div><div><b><span style="font-family: courier;">})</span></b></div></div><div><b style="font-family: verdana;">---------------------------------------</b></div></div><div><b style="font-family: verdana;"><br /></b></div><div><span style="font-family: verdana;">In the above code, <b>doInit </b>method is the one which will be called at the time of component initialization. As we want to speak out the current expiration status of insurance we will first check, isExpired field is true or false ??</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">If isExpired is true we are passing </span><span style="color: #990000; font-family: courier; font-weight: bold;">'This Insurance is expired. Please renew insurance' </span><span style="font-family: verdana;">this string to speak.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Now, web speech synthesis code here is :</span></div><div><span style="font-family: verdana;">-----------</span></div><div><div><b><span style="font-family: courier;">if(<span style="color: #990000;">'speechSynthesis'</span> in <span style="color: #0b5394;">window</span>)</span></b></div><div><b><span style="font-family: courier;"> {</span></b></div><div><b><span style="font-family: courier;"> var speech = new window.SpeechSynthesisUtterance(<span style="color: #990000;">'This Insurance is expired. Please renew insurance'</span>);</span></b></div><div><b><span style="font-family: courier;"> speech.lang = <span style="color: #990000;">'en-US'</span>;</span></b></div><div><b><span style="font-family: courier;"> window.speechSynthesis.speak(speech); </span></b></div><div><b><span style="font-family: courier;"> } </span></b></div><div><b><span style="font-family: courier;"> else</span></b></div><div><b><span style="font-family: courier;"> {</span></b></div><div><b><span style="font-family: courier;"> alert(<span style="color: #990000;">'speechSynthesis not supported'</span>);</span></b></div><div><b><span style="font-family: courier;"> }</span></b></div></div><div><span style="font-family: verdana;">-----------</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">The above piece of code will be used to first check if your browser supports <b>speechSynthesis</b> of not if it supports then it will pass the string and speak through your browser audio.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">In the next controller method, <b>handleChange </b>we are accepting the next renewal date as an input and then we are passing that to the server-side controller (apex controller) to update the End Date field of current insurance record to extend the insurance expiry.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Once we get the SUCCESS in server call we will again use the speech synthesis to speak about the successful extension of insurance.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Next, Before taking a look at the server-side controller we used <b>'status'</b> and <b>'renewlabel' </b>custom CSS in .cmp file let's check it out that first.</span></div><div><b style="font-family: verdana;"><br /></b></div><div><div><b style="font-family: verdana;">renewInsurance.css</b></div><div><b style="font-family: verdana;">---------------------------------------</b></div><div><div><b><span style="font-family: courier;"><span style="color: #666666;">.THIS .status</span> {</span></b></div><div><b><span style="font-family: courier;"> font-size: 2.5rem;</span></b></div><div><b><span style="font-family: courier;"> text-align: center;</span></b></div><div><b><span style="font-family: courier;"> font-weight: bold;</span></b></div><div><b><span style="font-family: courier;">}</span></b></div><div><b><span style="font-family: courier;"><br /></span></b></div><div><b><span style="font-family: courier;"><span style="color: #666666;">.THIS .renewlabel</span> {</span></b></div><div><b><span style="font-family: courier;"> color: #166161;</span></b></div><div><b><span style="font-family: courier;"> background: #f1f1f1;</span></b></div><div><b><span style="font-family: courier;"> text-align: center;</span></b></div><div><b><span style="font-family: courier;"> font-weight: bold;</span></b></div><div><b><span style="font-family: courier;"> font-size: small;</span></b></div><div><b><span style="font-family: courier;">}</span></b></div></div><div><b style="font-family: verdana;">---------------------------------------</b></div></div><div><b style="font-family: verdana;"><br /></b></div><div><span style="font-family: verdana;">In the above classes, we used custom CSS to align and for the custom designing purpose to give better UI experience to the user.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Now the final one is the server-side controller (apex controller).</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Create an Apex class called as <b>'insuranceController</b></span><b style="font-family: verdana;">' </b><span style="font-family: verdana;">and write the code as below :</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;"><b>insuranceController.apxc</b></span></div><div><b style="font-family: verdana;">---------------------------------------</b></div><div><div><b><span style="font-family: courier;">public with sharing class insuranceController {</span></b></div><div><b><span style="font-family: courier;"> @AuraEnabled</span></b></div><div><b><span style="font-family: courier;"> public static void updateInsurance(Id recordId,Date renewDate)</span></b></div><div><b><span style="font-family: courier;"> {</span></b></div><div><b><span style="font-family: courier;"> Insurance__c ins = [Select Id,Name,End_Date__c from Insurance__c where Id=:recordId LIMIT 1];</span></b></div><div><b><span style="font-family: courier;"> ins.End_Date__c = renewDate;</span></b></div><div><b><span style="font-family: courier;"> update ins;</span></b></div><div><b><span style="font-family: courier;"> }</span></b></div><div><b><span style="font-family: courier;">}</span></b></div></div><div><b style="font-family: verdana;">---------------------------------------</b></div><div><b style="font-family: verdana;"><br /></b></div><div><span style="font-family: verdana;">In the above apex controller, we are just accepting the next expiry date selected by the user and updating it with current Insurance End Date. That's it.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">That's it, now finally we need to change the <b>API version </b>to <b>39.0 </b>to support speech synthesis. </span></div><div><span style="font-family: verdana;"><br /></span></div><div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjngXRYOQ7y4HaluJ_pT1xkn70Ay_wW-hcrtxymhMgR8_gj7LocOSNXgLoB05f-ZvzLJt7g78boW38Ko7rVDqNfm0HTs11ttm3EO2MKJQ2f3ng1shZwWQIkDRa4X7Lt5BVU5V7DIWvMe14/s850/Screenshot+2020-11-15+at+8.37.04+PM.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="460" data-original-width="850" height="346" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjngXRYOQ7y4HaluJ_pT1xkn70Ay_wW-hcrtxymhMgR8_gj7LocOSNXgLoB05f-ZvzLJt7g78boW38Ko7rVDqNfm0HTs11ttm3EO2MKJQ2f3ng1shZwWQIkDRa4X7Lt5BVU5V7DIWvMe14/w640-h346/Screenshot+2020-11-15+at+8.37.04+PM.png" width="640" /></a></div><div><br /></div><div><span style="font-family: verdana;">Please set the setting as above. </span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">And finally, now are all set Kid...</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Now just go to </span><span style="font-family: verdana;">Insurance </span><span style="font-family: verdana;">record page and from app, builder drag the component to the right side.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Finally, it will look like: </span></div><div><span style="font-family: verdana;"><br /></span></div><div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEju3zvjUekCH3xLNN0BhyPUt6Gague0hlKD_hats0jGL2q3JSckU5hlDj-_Ob6x3RcuJt6SMFIjOnZ-fBUMJHUrJ9Lx5gXDTX71qEjSjcycP-UNzdN90KODPJCKZuXmQTn5PbOPx8I9bD4/s2540/Screenshot+2020-11-15+at+8.59.58+PM.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1238" data-original-width="2540" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEju3zvjUekCH3xLNN0BhyPUt6Gague0hlKD_hats0jGL2q3JSckU5hlDj-_Ob6x3RcuJt6SMFIjOnZ-fBUMJHUrJ9Lx5gXDTX71qEjSjcycP-UNzdN90KODPJCKZuXmQTn5PbOPx8I9bD4/s16000/Screenshot+2020-11-15+at+8.59.58+PM.png" /></a></div><br /><span style="font-family: verdana;">And when you change the End Date to less than today it will speak, when you enter next expiry date and click on successful update it will speak, When the status changed it will speak.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">There you go......I am sure you will enjoy this use case and share with your fellow trailblazers and have fun.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><div class="separator" style="clear: both; text-align: center;"><iframe allowfullscreen="" class="BLOG_video_class" height="266" src="https://www.youtube.com/embed/dPsbcMexIjQ" width="320" youtube-src-id="dPsbcMexIjQ"></iframe></div><br /><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">In the upcoming episode, we will discuss a similar use case for LWC.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Wish you all the very best!!..... Happy Learning ☁️⚡️</span></div><div><span style="font-family: verdana;"><br /></span></div><div><div><span style="font-size: medium;"><span style="font-family: verdana;"><b>WOHOOO !! YOU HAVE JUST COMPLETED COMPONENT THAT SPEAKS TO YOU</b><span face="verdana, sans-serif"> <b>EPISODE</b></span></span><br style="font-family: verdana;" /><span style="background-color: white; font-family: verdana;">If you like this</span><span style="background-color: white; color: #5e5e5e; font-family: verdana;"> </span><a href="https://www.sfdckid.com/" style="font-family: verdana;"><b>SFDCkid</b></a><span style="background-color: white; color: #5e5e5e; font-family: verdana;"> </span><span style="background-color: white; font-family: verdana;">learning platform please let me know in the Comment section...Also, Share with your salesforce folks wish you all </span><span style="background-color: white; font-family: verdana;">⚡️</span><span style="background-color: white; font-family: verdana;"><b>Happy Learning</b> ☁️⚡️ (Learn. Help. Share.)</span><span style="background-color: white; font-family: Times;"> 😊</span><span style="font-family: Times;"> </span></span></div></div></div><div><span style="font-size: medium;"><span style="font-family: Times;"><br /></span></span></div><div><span style="font-size: medium;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglk_e91SXGkwqrhdmtyA8Nc4wwI4NjTcP8dXIJfgX9wdxixRZF1y1penH9Y0UyZDgpE7B366FMy1MvnGtKoFGUxwOpg9xWEMICYfmtk4TI0f2tnUB4SNOf4o7M4N4bb7Ptj1URpusgitw/s2730/blogBottom.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="469" data-original-width="2730" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglk_e91SXGkwqrhdmtyA8Nc4wwI4NjTcP8dXIJfgX9wdxixRZF1y1penH9Y0UyZDgpE7B366FMy1MvnGtKoFGUxwOpg9xWEMICYfmtk4TI0f2tnUB4SNOf4o7M4N4bb7Ptj1URpusgitw/s16000/blogBottom.jpg" /></a></div><br /><span style="font-family: Times;"><br /></span></span></div><div><span style="font-size: medium;"><span style="font-family: Times;"><br /></span></span></div>AJINKYA DHAS http://www.blogger.com/profile/13223328981950114267noreply@blogger.com4tag:blogger.com,1999:blog-8457518975744463615.post-74768433821937051742020-10-03T16:09:00.007-07:002020-10-04T12:26:47.384-07:007 Resume Designing Strategies | Interview Preparation<h1 style="text-align: center;"><span style="font-family: verdana; font-size: x-large;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjO8RPByxSXpi0k68GioWOtpf_Er8szv8JUIBkl4_pGEgBhnvfxTzTy7PyOYTjpvxfCxuCtOnKJHGUDeDaN9zrNrSCdBIwMb6SwordVAvGGrd8F8LT0hRbAGe_OrMQtoFLmgwHzn1NEyYY/s1366/7ResumeStartegies.jpg" style="margin-left: 1em; margin-right: 1em;"><img alt="7 Resume Designing Strategies" border="0" data-original-height="768" data-original-width="1366" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjO8RPByxSXpi0k68GioWOtpf_Er8szv8JUIBkl4_pGEgBhnvfxTzTy7PyOYTjpvxfCxuCtOnKJHGUDeDaN9zrNrSCdBIwMb6SwordVAvGGrd8F8LT0hRbAGe_OrMQtoFLmgwHzn1NEyYY/s16000/7ResumeStartegies.jpg" title="7 Resume Designing Strategies" /></a></div><br /> </span></h1><h1 style="text-align: center;"><span style="font-family: verdana; font-size: x-large;">Resume Designing Strategies</span></h1><div><span style="font-family: verdana; font-size: medium;">Hey Kid!! Congratulations on taking the time to learn something new which can definitely help you with any interview and with any experience.</span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-family: verdana;"><span style="font-size: medium;">Getting a Job is easy but we have to plan for so that we can open every opportunity knocked. </span></span></div><div><span style="font-size: medium;"><br /></span></div><div><span style="color: #0b5394; font-family: verdana; font-size: large;"><b>CURRENT SCENARIO :</b></span></div><div><span style="font-family: verdana; font-size: medium;">Imagine for a moment that you want to change your job and look for new opportunities. What's the first thing we do ? </span></div><div><span style="font-family: verdana; font-size: medium;">-> Find out our old resume.</span></div><div><span style="font-family: verdana; font-size: medium;">-> Try to add or remove some points based on our latest experience.</span></div><div><span style="font-family: verdana; font-size: medium;">-> Reorder the stuff whatever looks good to you.</span></div><div><span style="font-family: verdana; font-size: medium;">-> Save it and start forwarding to your friends and applying through different job portals.</span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-family: verdana; font-size: medium;"><b>But let me ask you one question here -> </b></span></div><div><span style="font-family: verdana; font-size: medium;">Do you really think that the resume what you just created according to your skills is what an employer is looking for ?</span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-family: verdana; font-size: medium;">Relax!!... It's not at all our fault. We follow the trend and people which is absolutely OKEY.</span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-family: verdana; font-size: medium;">But let's change this and plan for a better beginning in our career. Today we will talk about the key aspects of Resume Designing and few strategies which can be easily implemented at any stage of your career.</span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-family: verdana; font-size: medium;">Let's begin.........</span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div style="text-align: left;"><span style="color: #38761d; font-family: verdana; font-size: x-large;"><b>1. DESIGN MATTERS :</b></span></div><div style="text-align: left;"><span style="color: #38761d; font-family: verdana; font-size: large;"><b><br /></b></span></div><div><span style="font-family: verdana; font-size: medium;">What is the difference between 5 Star Restaurant Food 🍔🍟 and Street Food ? </span></div><div><span style="font-family: verdana; font-size: medium;"><b><br /></b></span></div><div><span style="font-family: verdana; font-size: medium;"><b></b><blockquote><b>PRESENTATION</b> is the key factor what makes difference (Although there are different factors as well.)</blockquote></span></div><div><span style="font-size: medium;"><br /></span></div><div><span style="font-family: verdana; font-size: medium;">So would you like to represent yourself as <b>5 Star</b> one or the <b>Street</b> one ? The choice is yours always.</span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-family: verdana; font-size: medium;">Now imagine for a moment that you are going for a party tonight 💃🏻 I am sure we all plan for our killer looks and dress accordingly Right ?? </span></div><div><span style="font-family: verdana; font-size: medium;">-> We select our dress.</span></div><div><span style="font-size: medium;"><span style="font-family: verdana;">-> </span><span style="font-family: verdana;">We put makeup and groom in order to look more confident.</span></span></div><div><span style="font-family: verdana; font-size: medium;">-> We take care of everything from hair to shoes.</span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-family: verdana; font-size: medium;">But then why we put the Same Dress - Same Makeup - Same Shoe strategies for our Resume Designing.</span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-family: verdana; font-size: medium;">We need to use some WOW!! factor in our Resume because it's your self-image before you get any call from the employer.</span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-family: verdana; font-size: medium;">Hence I would like to recommend you Kid something amazing and that is </span></div><div><span style="font-family: verdana; font-size: medium;"><b>RESUME TEMPLATES.</b></span></div><div><span style="font-family: verdana; font-size: medium;"><b><br /></b></span></div><div><b style="font-family: verdana;"><span style="color: #38761d; font-size: x-large;">2. RESUME TEMPLATE :</span></b></div><div><b style="font-family: verdana;"><span style="font-size: medium;"><br /></span></b></div><div style="text-align: left;"><blockquote><span style="font-family: verdana;"><span style="font-size: medium;">This is something which I discovered late in my career. </span></span></blockquote></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-family: verdana; font-size: medium;">Resume templates are a really cool way of representing your image with that WOW factor which is missing in your plan paper Resume.</span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-family: verdana; font-size: medium;">There are online websites which you will easily find out if you just take a moment to search on the internet.</span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-family: verdana; font-size: medium;">I personally liked NOVORESUME.COM (not sponsored etc.) just have a look and you will get some idea out of it.</span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-family: verdana; font-size: medium;">Just like your Smartphone, your resume needs more updated look and feel. Which can grab the readers mind. Hence always try to use advance templates (not too fancy) to give that party look to your resume.</span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><b style="font-family: verdana;"><span style="color: #38761d; font-size: x-large;">3. FORMAT :</span></b></div><div><b style="font-family: verdana;"><span style="color: #38761d; font-size: medium;"><br /></span></b></div><div><span style="font-family: verdana; font-size: medium;"></span></div><blockquote><div><span style="font-family: verdana; font-size: medium;">This is a very very common point which we always miss and i.e. Format of our resume. Most of us still use <b>.docx </b>format.</span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-family: verdana; font-size: medium;">Always use <b>PDF </b>format as the output of your Resume.</span></div></blockquote><div><span style="font-family: verdana; font-size: medium;"></span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-family: verdana; font-size: medium;">Following are the advantages :</span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-family: verdana; font-size: medium;">‣ Nobody can change the content in your resume while forwarding your resume further.</span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-family: verdana; font-size: medium;">‣ Formatting will be the same in every system you open the Resume.</span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-family: verdana; font-size: medium;">‣ Your font style and size will remain the same.</span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><b style="font-family: verdana;"><span style="color: #38761d; font-size: x-large;">4. SINGLE PAGE RESUME :</span></b></div><div><b style="font-family: verdana;"><span style="color: #38761d; font-size: medium;"><br /></span></b></div><div><span style="font-family: verdana; font-size: medium;">I can totally understand you have a lot of things to put on your resume based on your previous experience or number of projects you have done till the date.</span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-family: verdana; font-size: medium;">Now let me ask you one more question here -></span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-family: verdana; font-size: medium;"><b>Who will read your Resume for the first time ?</b> </span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-family: verdana; font-size: medium;">‣ Of course <b>HR</b> right ? So do you really think that HR is interested to know everything that you have done till the date.</span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-family: verdana;"><span style="font-size: medium;">‣ The screening teams don't have much time to read 3-4 pages of a resume.</span></span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-family: verdana; font-size: medium;"></span></div><blockquote><div><span style="font-family: verdana; font-size: medium;">All the <b>Talent Acquisition</b> or <b>HR Team</b> are looking for the candidate with the required skillset matching with the requirement.</span></div><div></div></blockquote><div><span style="font-family: verdana; font-size: medium;">Likewise, we need to put only the data which is matching with the requirement of the job.</span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-family: verdana; font-size: medium;">‣ Remember that HR is also a human being hence don't put a lot of content in your resume.</span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-family: verdana; font-size: medium;">‣ Single page resume looks sweet and simple which reflect your personality even before contacting you (And anyone can easily scan a single page in 5 min 😉).</span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-family: verdana; font-size: medium;">‣ Now if it is single page resume how we can put everything on a single page.</span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><b style="font-family: verdana;"><span style="color: #38761d; font-size: x-large;">5. CONTENT FORMAT :</span></b></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-family: verdana; font-size: medium;">So you can follow the below format as an example :</span></div><div><span style="font-family: verdana; font-size: medium;">-----------------------------------------------</span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-family: verdana;"><b><span style="color: #0b5394; font-size: medium;"></span></b></span></div><blockquote><div><span style="font-family: verdana;"><b><span style="color: #0b5394; font-size: medium;">______________________</span></b></span></div><div><span style="color: #0b5394; font-family: verdana; font-size: medium;"><b>[Your Name ] || [Your Picture]</b></span></div><div><span style="color: #0b5394; font-family: verdana; font-size: medium;"><b>[Title] </b></span></div><div><span style="color: #0b5394; font-family: verdana; font-size: medium;"><b>[Short Bio]</b></span></div><div><b style="font-family: verdana;"><span style="color: #0b5394; font-size: medium;">______________________</span></b></div><div><span style="color: #0b5394; font-family: verdana; font-size: medium;"><b>[Email] [Phone] [Location]</b></span></div><div><b style="font-family: verdana;"><span style="color: #0b5394; font-size: medium;">______________________</span></b></div><div><span style="color: #0b5394; font-family: verdana; font-size: medium;"><b>[Work Summary] || [Skills]</b></span></div><div><span style="color: #0b5394; font-family: verdana; font-size: medium;"><b><br /></b></span></div><div><span style="color: #0b5394; font-family: verdana; font-size: medium;"><b>[Previous Employer] || [Personal Projects]</b></span></div><div><span style="color: #0b5394; font-family: verdana; font-size: medium;"><b><br /></b></span></div><div><span style="color: #0b5394; font-family: verdana; font-size: medium;"><b>[Latest Education] || [Certifications]</b></span></div><div><span style="color: #0b5394; font-family: verdana; font-size: medium;"><b><br /></b></span></div><div><span style="color: #0b5394; font-family: verdana; font-size: medium;"><b>[Languages] || [Interests]</b></span></div><div><b style="font-family: verdana;"><span style="color: #0b5394; font-size: medium;">______________________</span></b></div></blockquote><div><span style="font-family: verdana;"><b><span style="color: #0b5394; font-size: medium;"></span></b></span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-family: verdana;"><span style="font-size: medium;">-----------------------------------------------</span></span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-family: verdana; font-size: medium;">As per the above single page format :</span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-family: verdana; font-size: medium;">‣ On the top of the page your sweet <b>name</b> and your <b>title</b> below that and professional <b>picture</b>. </span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-family: verdana; font-size: medium;">‣ Short bio just like we write it on our LinkedIn or a Twitter profile (<b>professional</b>).</span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-family: verdana; font-size: medium;">‣ Next your contact information like your <b>Email</b>, <b>Phone</b> <b>Number</b> and <b>Location</b> which can help them to contact you and know where you are currently located.</span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-family: verdana; font-size: medium;">‣ Now We can divide the single page into <b>2 sections</b> for other information.</span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-family: verdana; font-size: medium;">‣ <b>Work Summary</b> should be aligned with the position you are applying to. </span></div><div><span style="font-family: verdana; font-size: medium;"><b></b><blockquote><b>IMPORTANT</b>: If you are applying for Salesforce Developer position you should only mention the previous work experience related to Salesforce Domain. </blockquote></span></div><div><span style="font-family: verdana; font-size: medium;">As you already know that mentioning other platform or domain experience makes no sense to the recruiter.</span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-family: verdana; font-size: medium;">‣ On the right side od Work Summary, you can write your <b>Skills</b> for example Salesforce Admin, Salesforce Development, Sales Cloud, Service Cloud, Lightning, LWC etc.</span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-family: verdana; font-size: medium;">‣ <b>Previous Employer </b>means Name and your Tenure of Employer. Please do not mention the client names and project information because if you will mention everything in your resume then what else you will explain to your interviewer ( Hold some surprises for your interviewer 🤓).</span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-family: verdana; font-size: medium;">‣ On the right side for the Previous Employer, you can mention <b>Personal Projects </b>if you have any. This shows your personal interest in learning new things and create something awesome out of it.</span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-family: verdana; font-size: medium;">‣ <b>Latest Education </b>section is to mention your highest education. Many times we mention all the details starting for 10, 10+2, BS or B.Tech, MS or M.tech etc.</span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-family: verdana; font-size: medium;"><blockquote>If you have MS or M.Tech that means you have the previous degree Right ?? So no need to eat up more space on your resume.</blockquote></span></div><div><span style="font-family: verdana; font-size: medium;">‣ <b>Certifications </b>are proof of your skills which you have mentioned in your skills set. Always good to have certifications of your mastered skills.</span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-size: medium;"><span style="font-family: verdana;">‣ </span><b style="font-family: verdana;">Languages </b><span style="font-family: verdana;">this section is for the desired language for the job you are applying. It's good to have some special language skills. You can mention all languages that are useful for business.</span></span></div><div><span style="font-family: verdana;"><span style="font-size: medium;"><br /></span></span></div><div><span style="font-size: medium;"><span style="font-family: verdana;">‣ </span><b style="font-family: verdana;">Interests </b><span style="font-family: verdana;">is things/tech that excites you like for example writing a blog excites me a lot, I am always ready for photoshoots etc. But remember you should know all the aspects of it if someone asks you question about it.</span></span></div><div><span style="font-family: verdana;"><span style="font-size: medium;"><br /></span></span></div><div><span style="font-family: verdana;"><span style="font-size: medium;"><br /></span></span></div><div><b style="font-family: verdana;"><span style="color: #38761d; font-size: x-large;">6. KEYWORDS :</span></b></div><div><b style="font-family: verdana;"><span style="color: #38761d; font-size: medium;"><br /></span></b></div><div><span style="font-family: verdana; font-size: medium;"><b></b><blockquote><b>Keywords </b>are the most important part of your resume. </blockquote></span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-family: verdana; font-size: medium;">‣ Do you remember the school time where our teachers use to say 'Always put bullet points while writing your exams'.</span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-family: verdana; font-size: medium;">That means they are expecting the keywords out of each point which will decide whether your answer is correct or not.</span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-family: verdana; font-size: medium;">‣ Likewise every job posting contains Job Description where all the desired skills are mentioned.</span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-family: verdana; font-size: medium;">‣ Based on your experience put matching <b>keywords</b> in your skills and experience summary section of your resume.</span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-family: verdana; font-size: medium;">‣ The recruiter will look for the keywords present in your resume matching with the job description and then decide whether you are a perfect match or not. Hence its a decision factor always.</span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><b style="font-family: verdana;"><span style="color: #38761d; font-size: x-large;">7. HONESTY :</span></b></div><div><b style="font-family: verdana;"><span style="color: #38761d; font-size: medium;"><br /></span></b></div><div><span style="font-family: verdana;"><span style="font-size: medium;"><blockquote>'Honesty is the best policy' We heard this lot of time but we just ignore it while preparing a resume. </blockquote></span></span></div><div><span style="font-family: verdana;"><span style="font-size: medium;">‣ While mentioning your experience and skillset please be honest to yourself. A lot of people mention fake experience or skills just to get the job. You may get the job also but you'll always worried about losing a job.</span></span></div><div><span style="font-family: verdana;"><span style="font-size: medium;"><br /></span></span></div><div><span style="font-family: verdana;"><span style="font-size: medium;">‣ Always put only the things which you know, you have experience with, which reflects your skills and qualities like I mentioned before.</span></span></div><div><span style="font-family: verdana;"><span style="font-size: medium;"><br /></span></span></div><div><span style="font-family: verdana;"><span style="font-size: medium;">‣ You don't need to be fake. Trust me Kid if you're honest with your skillset people want you in their team always.</span></span></div><div><span style="font-family: verdana;"><span style="font-size: medium;"><br /></span></span></div><div><span style="font-family: verdana;"><span style="font-size: medium;">‣ You get more Salary but you will never get respect for your skillset.</span></span></div><div><span style="font-family: verdana;"><span style="font-size: medium;"><br /></span></span></div><div><span style="font-family: verdana;"><span style="font-size: medium;">‣ Nobody is expecting you to know everything, remember it's your MINDSET 💡.</span></span></div><div><span style="font-family: verdana;"><span style="font-size: medium;"><br /></span></span></div><div><span style="font-family: verdana;"><span style="font-size: medium;">‣ If you don't know something, get up and learn those skills which are required for that job first and then apply. </span></span></div><div><span style="font-family: verdana;"><span style="font-size: medium;"><br /></span></span></div><div><span style="font-family: verdana;"><span style="font-size: medium;"><blockquote>Being honest with yourself is more important </blockquote></span></span></div><div><span style="font-family: verdana;"><span style="font-size: medium;"><br /></span></span></div><div><span style="font-family: verdana;"><span style="font-size: medium;">‣ I can totally understand that sometimes we have education gap or employment gap etc. and due to responsibilities we don't want to join as a fresher. But remember </span></span><span style="font-family: verdana; font-size: medium;">every legend was once a beginner.</span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-family: verdana; font-size: medium;">‣ Trust me if you are honest, people can sense your energy and will accept that even if you don't have that skill 😊.</span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-family: verdana; font-size: medium;">If you follow all the above <b>7 strategies</b> <span style="color: #3d85c6;">NOBODY</span> can stop you Kid from getting your dream job. </span></div><div><span style="font-family: verdana; font-size: medium;"><br /></span></div><div><span style="font-family: verdana; font-size: medium;">If you have any questions feel free to comment below and let's prepare a Resume for your next job interview. Wish you all the very best 👍!!</span></div><div><br /></div><div><span style="font-size: medium;"><span style="font-family: verdana;"><b>WOHOOO !! YOU HAVE JUST COMPLETED 7 RESUME DESIGNING STRATEGIES</b><span face="verdana, sans-serif"> <b>EPISODE</b></span></span><br style="font-family: verdana;" /><span style="background-color: white; font-family: verdana;">If you like this</span><span style="background-color: white; color: #5e5e5e; font-family: verdana;"> </span><a href="https://www.sfdckid.com/" style="font-family: verdana;"><b>SFDCkid</b></a><span style="background-color: white; color: #5e5e5e; font-family: verdana;"> </span><span style="background-color: white; font-family: verdana;">learning platform please let me know in the Comment section...Also, Share with your salesforce folks wish you all </span><span style="background-color: white; font-family: verdana;">⚡️</span><span style="background-color: white; font-family: verdana;"><b>Happy Learning</b> ☁️⚡️ (Learn. Help. Share.)</span><span style="background-color: white; font-family: Times;"> 😊</span><span style="font-family: Times;"> </span></span></div><div><span style="font-family: Times;"><br /></span></div><div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1-4KvMydJGnhUPEIBYXoXzGY5q8QfYFPPXt5TmkTDWk8qfahEdpD81LBvDYKScSq0lZ2Wr6QiGAPAHMAAWoxkWWgSraWNWnu4i2kX80672miw_x1SOE1a5s9Co_tT2ScQG3v2NBjOQ8c/s2730/blogBottom.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="469" data-original-width="2730" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1-4KvMydJGnhUPEIBYXoXzGY5q8QfYFPPXt5TmkTDWk8qfahEdpD81LBvDYKScSq0lZ2Wr6QiGAPAHMAAWoxkWWgSraWNWnu4i2kX80672miw_x1SOE1a5s9Co_tT2ScQG3v2NBjOQ8c/s16000/blogBottom.jpg" /></a></div><span style="font-family: Times;"><br /></span></div>AJINKYA DHAS http://www.blogger.com/profile/13223328981950114267noreply@blogger.com4tag:blogger.com,1999:blog-8457518975744463615.post-53122714562217373362020-09-20T08:22:00.005-07:002021-07-15T05:24:57.016-07:00 Communicate with Events in LWC Simplified | Child to Parent | Salesforce<h2 style="text-align: center;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3tGKdfv0BkS8zTT7rIACn2CRK30oCEORrPZ1NT3ju9d-bmJyTbAk5wiLgq3Pv__dTNW9jSZmuIiY8dBAYs5ldcKInOtpI4SJUYHe_Acgblkz-tsuMnS_ZJM_DR2mT1-KRhKRnAqzqAaM/s1366/LwcChildToParet.jpg" style="margin-left: 1em; margin-right: 1em;"><img alt="Communicate with Events in LWC Simplified" border="0" data-original-height="768" data-original-width="1366" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3tGKdfv0BkS8zTT7rIACn2CRK30oCEORrPZ1NT3ju9d-bmJyTbAk5wiLgq3Pv__dTNW9jSZmuIiY8dBAYs5ldcKInOtpI4SJUYHe_Acgblkz-tsuMnS_ZJM_DR2mT1-KRhKRnAqzqAaM/s16000/LwcChildToParet.jpg" title="Communicate with Events in LWC Simplified" /></a></div></h2><h2 style="text-align: center;"><span style="font-family: verdana;">Custom Events in LWC</span></h2><div><span style="font-family: verdana;">Hey Kid! you know there is something common between you and me that we both believe in constant learning that too in this tough time so Congratulations 🎉to you for that. </span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">In the last <b><a href="https://www.sfdckid.com/2020/08/api-property-lightning-web-component.html" target="_blank">EPISODE</a>, </b>we discussed how we can pass the value from parent component to child component by using @API public decorator along with some cool component.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">In this EPISODE, we will discuss the reverse order of passing the value i.e. from Child to Parent component by using custom events. Relax!! this is not something which can interrupt you to develop any component.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Do you remember the struggle we have to do while using the custom events in Lightning Aura components in Salesforce? (Please do not laugh) I know we have to create the separate event define the type of the event then we need to register the event and finally, we need to handle the event in the component where we required this value.</span></div><div><span style="font-family: verdana;">But this time because of LWC's modern framework there is no more struggle for that, Yess!! you heard that correctly. In LWC we just have to use <b>CustomEvent() </b>constructor in child component and then handle it in the parent component.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Let's understand the concept we will use to achieve this and then we will move ahead towards our live demo with the simple example.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana; font-size: large;"><b>Understand The Concept of CustomEvents in LWC :</b></span></div><div><span style="font-family: verdana; font-size: large;"><div class="separator" style="clear: both; text-align: center;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXSMhhmY2hztwMNF4g-WpFvxeJFtGq_ALil1lEEppXDJy5dGzH99x1plwJz-ylk-A7WoOYr6dM59MObt_L1h-cFbbpoCn-XB5xCkdzgy_aOHLtIvFqmdflxCHJmwVuGbin9aw9fCkm-Zw/s1500/lwcChildToParent.jpg" style="margin-left: 1em; margin-right: 1em;"><img alt="Communicate with Events in LWC Simplified sfdckid.com" border="0" data-original-height="1000" data-original-width="1500" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXSMhhmY2hztwMNF4g-WpFvxeJFtGq_ALil1lEEppXDJy5dGzH99x1plwJz-ylk-A7WoOYr6dM59MObt_L1h-cFbbpoCn-XB5xCkdzgy_aOHLtIvFqmdflxCHJmwVuGbin9aw9fCkm-Zw/s16000/lwcChildToParent.jpg" title="Communicate with Events in LWC Simplified sfdckid.com" /></a></div></div><div><br /></div></span></div><div><span style="font-family: verdana;">If you take a look at the above picture, you can see we have Parent component in Pink color and Child component in purple color below that.</span></div><div><span style="font-family: verdana;">Now, let's take a more closer look and now we can see the 3 steps in the picture which we need to follow in order to use the <b>CustomEvents</b> in LWC component.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">And the purple <b>Arrow</b> is <b>Event Dispatcher</b> which is responsible for carrying data from child to parent.</span></div><div><br /></div><div><span style="font-family: verdana;">These steps are starts from child to parent like this :</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana; font-size: large;"><b>STEP 1 : </b></span></div><div><span style="font-family: verdana;">Create a custom event inside the event handler method in <b>javaScript</b> file of your Child Component (which is handling value you want to pass to parent). </span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Then create <b>const</b>(constant) variable <b>storeEvent</b> in our case to store the <b>CustomEvent instance</b> where we will define <b>EVENT NAME</b> ("myevent" in the above case) and <b>VALUE TO PASS </b>("this.testValue" in the above case) in front of <b>detail </b>like {detail: 'Your Value'}. </span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">NOTE : Please note that the value you are passing should be String, integer or Boolean format as you cannot pass the complete object data with the detail as Objects are immutable. </span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">And finally, we will use <b>this.dispatchEvent(storeEvent) </b>to dispatch the event and now it is ready to take off.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana; font-size: large;"><b>STEP 2 :</b></span></div><div><span style="font-family: verdana;">As the event is dispatched from the child component we need to handle it right? For that go to your <b>HTML(</b>Markup file<b>) </b>of the parent component. </span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Look for <b><c-child></c-child> (</b>Child Component<b>) </b>defined and then add <b>on+CustomEventName </b>(In our case CustomEvent Name is "<b>myevent</b>" Hence we have used <b>onmyevent </b>)</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">for example :</span></div><div><span style="font-family: verdana;">-----------------------------------</span></div><div><span style="font-family: verdana;"><b><c-child onmyevent={handleResponse}></c-child></b></span></div><div><span style="font-family: verdana;">-----------------------------------</span></div><div><span style="font-family: verdana;"><b><br /></b></span></div><div><span style="font-family: verdana;">Just like the above code, we mentioned <b>on + myevent (onmyevent) </b>and </span><b style="font-family: verdana;">handleResponse </b><span style="font-family: verdana;">will be out javaScript method which will help us to unwrap the gift(value) which his child sent.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;"><b>TIP :</b> Hence please do not use <b>on+xyz </b>for defining your normal parameters in MarkUp and it is not recommended too (I know you're smart and you will take care of this).</span></div><div><span style="font-family: verdana;"><b><br /></b></span></div><div><span style="font-family: verdana; font-size: large;"><b>STEP 3 :</b></span></div><div><span style="font-family: verdana;">As you might already know by this time its time to unwrap the gift sent by child component inside out <b>javaScript</b> file of LWC Parent component.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Just goto your parent component's <b>.JS </b>file and handle it carefully.</span></div><div><br /></div><div><span style="font-family: verdana;">In our case, we have defined </span><b style="font-family: verdana;">handleResponse </b><span style="font-family: verdana;">as our javaScript method that will handle the event whenever its dispatched from the child.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Let's consider the below snippet from the picture :</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana; font-size: medium;"><b>Parent.js</b></span></div><div><span style="font-family: verdana;">---------------------------------------</span></div><div><span style="font-family: verdana;"><b>handleResponse(event){</b></span></div><div><span style="font-family: verdana;"><b> this.response = event.detail;</b></span></div><div><span style="color: #38761d; font-family: verdana;">//For additional information console the event </span></div><div><span style="font-family: verdana;"><b> console.log('Event =>>'+JSON.stringify(event));</b></span></div><div><span style="font-family: verdana;"><b> }</b></span></div><div><span style="font-family: verdana;">---------------------------------------</span></div><div><br /></div><div><span style="font-family: verdana;">Just like the above code inside <b>handleResponse</b> we handle the <b>event (</b>as a parameter<b>)</b>. Where we just need to set the <b>event.detail </b>value to any variable.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">As you can see I have used the console.log so that we can actually see what all parameters this <b>event </b>contains. we will take a closer look in the live component demo just after understanding this.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">And now in the above code, the value sent from the child component is stored in <b>this.response</b> variable and now that can be used wherever you wish to as the gift is unwrapped now you can play with it Kid.</span></div><div><br /></div><div><span style="font-family: verdana;">Alright!! Now you have a basic understanding of the flow of <b>customEvents</b> in LWC. There are different type of event Phases as well like bubble and capture which we will discuss in the upcoming Episodes.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Now let's create a basic demo component for this, Excited??</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Let's get started.......</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana; font-size: large;"><b>STEP 1 :</b></span></div><div><span style="font-family: verdana;">Let's create the first Child Component called <b>customEventChild </b>Lightning web component in your VS Code </span><span style="font-family: verdana;">(Ctrl+Shift+P -> Create New Lightning Web Component)</span></div><div><span style="font-family: verdana;">For VS code setup and org authorisation please visit the very first blog of LWC series.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Now create the files as follows : </span></div><div><span style="font-family: verdana;"><br /></span></div><div><b style="font-family: verdana;">customEventChild.html</b></div><div><span style="font-family: verdana;">----------------------------------------------------</span></div><div><div style="background-color: white; font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; line-height: 18px; white-space: pre;"><div><span style="color: maroon;"><b><template></b></span></div><div><b><span style="color: maroon;"><span</span> <span style="color: red;">style</span>=<span style="color: blue;">"margin-left:1em;"</span><span style="color: maroon;">></span></b></div><div><b> <span style="color: maroon;"><lightning-button</span> <span style="color: red;">label</span>=<span style="color: blue;">"child"</span> </b></div><div><b><span style="color: red;"><span> </span><span> </span><span> </span><span> </span><span> </span>variant</span>=<span style="color: blue;">"brand"</span> </b></div><div><b><span style="color: red;"><span> </span><span> </span><span> </span><span> </span><span> </span>onclick</span>=<span style="color: blue;">{handleClick}</span><span style="color: maroon;">></span></b></div><div><span style="color: maroon;"><b> </lightning-button></b></span></div><div><b><span style="color: maroon;"></span></span></b></div><div><span style="color: maroon;"><b></template></b></span></div></div></div><div><span style="font-family: verdana;">----------------------------------------------------</span></div><div><br /></div><div><span style="font-family: verdana;">In the above, code we created a simple lightning button inside the child component where the label is <b>child</b>, button variant is <b>brand </b>and finally <b>onclick </b>of the button we will call <b>handleClick </b>method written in a javaScript file.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Now let's look at <b>JavaScript</b> file of the same component</span></div><div><span style="font-family: verdana;"><br /></span></div><div><b style="font-family: verdana;"><span style="font-size: large;">STEP 2 :</span></b></div><div><span style="font-family: verdana;"><br /></span></div><div><div><b style="font-family: verdana;">customEventChild.js</b></div><div><span style="font-family: verdana;">----------------------------------------------------</span></div><div><div style="background-color: white; font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; line-height: 18px; white-space: pre;"><div><b><span style="color: blue;">import</span> { LightningElement ,track} <span style="color: blue;">from</span> <span style="color: #a31515;">'lwc'</span>;</b></div><div><b><span style="color: blue;">export</span> <span style="color: blue;">default</span> <span style="color: blue;">class</span> CustomEventChild <span style="color: blue;">extends</span> LightningElement{</b></div><div><b> @track test = <span style="color: #a31515;">'Value received from child'</span>;</b></div><div><b> handleClick(event){</b></div><div><b> <span style="color: blue;">const</span> storeEvent = <span style="color: blue;">new</span> CustomEvent(<span style="color: #a31515;">'myevent'</span>, </b></div><div><b> { detail: <span style="color: blue;">this</span>.test}</b></div><div><b> );</b></div><div><b> <span style="color: blue;">this</span>.dispatchEvent(storeEvent);</b></div><div><b> }</b></div><div><b>}</b></div></div></div><div><span style="font-family: verdana;">----------------------------------------------------</span></div></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">In the above file, we have <b>test </b>variable with <span style="color: #990000;">'</span></span><span style="font-family: verdana;"><b style="color: #990000;">Value received from child' </b>string as a default.</span></div><div><span style="font-family: verdana;">Then we have out <b>onclick</b> method called <b>handleClick</b> method where we are passing (<b>event</b>) as a parameter.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Then we defined <b>storeEvent </b>constant variable to store the event and we created and a new instance of <b>CustomEvent </b>with event parameter '<b>myevent'</b> and we are passing the <b>this.test </b>(which contains the string 'Value received from child').</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">At last, we use used <b>this.dispatchEvent(storeEvent) </b>to dispatch the event.</span></div><div><span style="font-family: verdana;"> </span></div><div><span style="font-family: verdana;">And now its time to handle this event in our parent component right Kid?</span></div><div><span style="font-family: verdana;"><br /></span></div><div><b style="font-family: verdana;"><span style="font-size: large;">STEP 3 :</span></b></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Let's create a parent component called <b>c</b></span><span style="font-family: verdana;"><b>ustomEventParent </b>Lightning Web Component (Ctrl+Shift+P -> Create New Lightning Web Component).</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;"><b>c</b></span><span style="font-family: verdana;"><b>ustomEventParent.html</b></span></div><div><span style="font-family: verdana;">----------------------------------------------------</span></div><div><div style="background-color: white; font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; line-height: 18px; white-space: pre;"><div><span style="color: maroon;"><b><template></b></span></div><div><b> <span style="color: maroon;"><lightning-card></span></b></div><div><b> <span style="color: maroon;"><div</span><span style="color: maroon;">></span> </b></div><div><b> <span style="color: maroon;"><h1</span> <span style="color: red;">style</span>=<span style="color: blue;">'font-size:1.5em; margin-left:45%;'</span> </b></div><div><b><span style="color: red;"> class</span>=<span style="color: blue;">"slds-text-title"</span><span style="color: maroon;">></span></b></div><div><b> This is parent screen</b></div><div><b> <span style="color: maroon;"></h1></span></b></div><div><b> <span style="color: maroon;"><br/></span> </b></div><div><b> <span style="color: maroon;"><span</span> <span style="color: red;">style</span>=<span style="color: blue;">"font-size:2em;margin-left:30%;"</span><span style="color: maroon;">></span></b></div><div><b> This is response from child : </b></div><div><b> <span style="color: maroon;"><span</span> <span style="color: red;">style</span>=<span style="color: blue;">"color:#ffa372;"</span><span style="color: maroon;">></span></b></div><div><b> {response}</b></div><div><b> <span style="color: maroon;"></span></span> </b></div><div><b> <span style="color: maroon;"></span></span> </b></div><div><b> <span style="color: maroon;"></br></span></b></div><div><span style="color: maroon;"><b> </div></b></span></div><div><b> <span style="color: maroon;"><hr></span></b></div><div><span style="color: #38761d;">//Child component included here </span></div><div><b> <span style="color: maroon;"><c-custom-event-child</span> <span style="color: red;">onmyevent</span>=<span style="color: blue;">{handleResponse}</span><span style="color: maroon;">></span></b></div><div><span style="color: maroon;"><b> </c-custom-event-child></b></span></div><div><span style="color: maroon;"><b> </lightning-card></b></span></div><div><span style="color: maroon;"><b></template></b></span></div></div></div><div><span style="font-family: verdana;">----------------------------------------------------</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">In the above Parent Component .html file, we have a lightning card on which we have the heading text and included child component and as you can see Kid we also have <b>onmyevent </b>to handle the any dispatched value from child component inside <b>handleResponse </b>javaScript method.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Now let's check the <b>.js </b>file of the same Parent Component.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><div><span style="font-size: medium;"><span style="font-family: verdana;"><b>c</b></span><span style="font-family: verdana;"><b>ustomEventParent.js</b></span></span></div><div><span style="font-family: verdana;">----------------------------------------------------</span></div><div><div style="background-color: white; font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; line-height: 18px; white-space: pre;"><div><b><span style="color: blue;">import</span> { LightningElement ,track} <span style="color: blue;">from</span> <span style="color: #a31515;">'lwc'</span>;</b></div><div><b><span style="color: blue;">export</span> <span style="color: blue;">default</span> <span style="color: blue;">class</span> CustomEventParent <span style="color: blue;">extends</span> LightningElement{</b></div><div><b> @track response = <span style="color: #a31515;">''</span>;</b></div><div><span style="color: #38761d;">//here we handled the event</span></div><div><b> handleResponse(event){</b></div><div><b> <span style="color: blue;">this</span>.response = event.detail;</b></div><div><b> console.log(<span style="color: #a31515;">'Event =>>'</span>+JSON.stringify(event));</b></div><div><b> }</b></div><div><b>}</b></div></div></div><div><span style="font-family: verdana;">----------------------------------------------------</span></div></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">In the above <b>.js </b>file, we can see we have defined <b>response </b>variable<b> </b>with @track property to track any change and reflect on the UI which is by default <b>' ' </b>Empty.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">And lastly we handled the event in <b>handleResponse </b>method where every time when user will click on child component button the response will be captured by child component here.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">As the response from child component is inside <b>detail </b>of event hence we used <b>event.detail </b>and stored it in <b>this.response </b>variable.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Now if you use this {response} variable on <b>html</b> markup file on the parent component it will immediately update the value with the latest value received from the child component as we used @track property for the same purpose.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Also, I have included <b>console.log </b>to see what all parameters this <b>event </b>contains and will see in the output preview.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana; font-size: large;"><b>OUTPUT :</b></span></div><div><span style="font-family: verdana;">For a preview of your output either you can use Preview Component on Local Development server (check out first LWC episode for the same)or you can deploy it to your org by just deploying your component and add it to any aura application and preview it or </span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">go to parent component <b>.meta.xml </b>file and copy-paste the below snippet and put it to any record or lightning page : </span></div><div><span style="font-family: verdana;"><br /></span></div><div><div><span style="font-family: verdana;"><b>c</b></span><span style="font-family: verdana;"><b>ustomEventParent.js-meta.xml</b></span></div><div><span style="font-family: verdana;">----------------------------------------------------</span></div><div><div style="background-color: white; font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; line-height: 18px; white-space: pre;"><div style="line-height: 18px;"><div><b><span style="color: maroon;"><?xml</span><span style="color: red;"> version</span>=<span style="color: blue;">"1.0"</span><span style="color: red;"> encoding</span>=<span style="color: blue;">"UTF-8"</span><span style="color: maroon;">?></span></b></div><div><b><span style="color: maroon;"><LightningComponentBundle</span> </b></div><div><b><span style="color: red;">xmlns</span>=<span style="color: blue;">"http://soap.sforce.com/2006/04/metadata"</span><span style="color: maroon;">></span></b></div><div><b> <span style="color: maroon;"><apiVersion></span>49.0<span style="color: maroon;"></apiVersion></span></b></div><div><b> <span style="color: maroon;"><isExposed></span>true<span style="color: maroon;"></isExposed></span></b></div><div><b> <span style="color: maroon;"><targets></span></b></div><div><b> <span style="color: maroon;"><target></span>lightning__AppPage<span style="color: maroon;"></target></span></b></div><div><b> <span style="color: maroon;"><target></span>lightning__Tab<span style="color: maroon;"></target></span></b></div><div><b> <span style="color: maroon;"><target></span>lightning__RecordPage<span style="color: maroon;"></target></span></b></div><div><b> <span style="color: maroon;"></targets></span></b></div><div><span style="color: maroon;"><b></LightningComponentBundle></b></span></div></div></div></div><div><span style="font-family: verdana;">----------------------------------------------------</span></div></div><div><br /></div><div><span style="font-family: verdana;">Once deploy it or preview component locally it will look like this :</span></div><div><span style="font-family: verdana;">----------------------------------------------------</span></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuoblIR7FfvUqxtiCa9WgwAYG-YgOGbLf_FqI_9rS3ILLE4ej1ILaQz-c-t0Mhyphenhyphen-c7lXF4XmVTrwtLwEsEduakCVFo8mLhsbk0lPiAh-7AOKj9uS00ejjRJclqk-E43dQKnLV7dliwCUw/s2560/Screenshot+2020-09-20+at+7.26.15+PM.png" style="margin-left: 1em; margin-right: 1em;"><img alt="Communicate with Events in LWC Simplified sfdckid.com" border="0" data-original-height="490" data-original-width="2560" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuoblIR7FfvUqxtiCa9WgwAYG-YgOGbLf_FqI_9rS3ILLE4ej1ILaQz-c-t0Mhyphenhyphen-c7lXF4XmVTrwtLwEsEduakCVFo8mLhsbk0lPiAh-7AOKj9uS00ejjRJclqk-E43dQKnLV7dliwCUw/s16000/Screenshot+2020-09-20+at+7.26.15+PM.png" title="Communicate with Events in LWC Simplified sfdckid.com" /></a></div><div><br /></div><div><span style="font-family: verdana;">Now as you can see we have created parent and child section. Now Click on <b>Child button </b>and you will receive the value inside your parent component like this :</span></div><div><span style="font-family: verdana;"><br /></span></div><div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhe66f9VqeW0y4LUpiFLwGJcDJpuPT8wdJAvM9XXEW_7pNotM_5nECEnnyu2FmS0tqEX1w7zPb1MKlx6wPxfuqS-REDtoNMqfe-cTAeOK9v3eBbXhip4Jm8LwPu5cdMsAUm-9yrJG_fyxQ/s2560/Screenshot+2020-09-20+at+7.26.28+PM.png" style="margin-left: 1em; margin-right: 1em;"><img alt="Communicate with Events in LWC Simplified sfdckid.com" border="0" data-original-height="490" data-original-width="2560" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhe66f9VqeW0y4LUpiFLwGJcDJpuPT8wdJAvM9XXEW_7pNotM_5nECEnnyu2FmS0tqEX1w7zPb1MKlx6wPxfuqS-REDtoNMqfe-cTAeOK9v3eBbXhip4Jm8LwPu5cdMsAUm-9yrJG_fyxQ/s16000/Screenshot+2020-09-20+at+7.26.28+PM.png" title="Communicate with Events in LWC Simplified sfdckid.com" /></a></div><div><br /></div><span style="font-family: verdana;">Whoooooo!! can you see "<b><span style="color: #ffa400;">Value received from a child</span></b>" value received from child with the help of LWC <b>customEvent</b>. </span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Now you are ready to use this in your LWC component development where there is nested parent-child component and you need to pass the value you can use the same technique for that.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">Also, we used <b>console.log </b>to see what all parameters are there along with the <b>detail </b>of the event so here is the console log of the same :</span></div><div><span style="font-family: verdana;"><br /></span></div><div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFjyGqDFp9HGeBTl3_DGYVMc3WQn2KOwDKhrJlbXBmod6fqGXRwGKl43u5NWc5uhCIphluHahbTsPs26ScaI6RQC7yNjz5gYfHlAeh6dzf81_7ZYmoZGeu-hGv0jU05vRZZufmPtPCz38/s1948/Screenshot+2020-09-20+at+8.12.41+PM.png" style="margin-left: 1em; margin-right: 1em;"><img alt="Communicate with Events in LWC Simplified sfdckid.com" border="0" data-original-height="410" data-original-width="1948" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFjyGqDFp9HGeBTl3_DGYVMc3WQn2KOwDKhrJlbXBmod6fqGXRwGKl43u5NWc5uhCIphluHahbTsPs26ScaI6RQC7yNjz5gYfHlAeh6dzf81_7ZYmoZGeu-hGv0jU05vRZZufmPtPCz38/s16000/Screenshot+2020-09-20+at+8.12.41+PM.png" title="Communicate with Events in LWC Simplified sfdckid.com" /></a></div><br /></div><div><span style="font-family: verdana;">Now in the console as you can see there are other parameters are involved in the single event object. These are the parameters which also gets captured when you dispatched the event.</span></div><div><span style="font-family: verdana;">----------------------------------------------------</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;">In this way, we can use <b>CustomEvent </b>in Salesforce Lightning Web Component easily. If you strongly believe in these steps and ways to use it you are ready to apply this while designing your component...So let's create something valuable LWC Component with this concept Kid 😉.</span></div><div><span style="font-family: verdana;"><br /></span></div><div><span style="font-family: verdana;"><span face="verdana, sans-serif"><b>WOHOOO !! YOU HAVE JUST COMPLETED COMMUNICATE WITH EVENTS IN LIGHTNING WEB COMPONENT (LWC)</b><span face="verdana, sans-serif"> <b>EPISODE</b></span></span><br /><span face="verdana, sans-serif" style="background-color: white; font-size: 15px;">If you like this</span><span face="verdana, sans-serif" style="background-color: white; color: #5e5e5e; font-size: 15px;"> </span><a href="https://www.sfdckid.com/"><b>SFDCkid</b></a><span face="verdana, sans-serif" style="background-color: white; color: #5e5e5e; font-size: 15px;"> </span><span face="verdana, sans-serif" style="background-color: white; font-size: 15px;">learning platform please let me know in the Comment section...Also, Share with your salesforce folks wish you all </span><span style="background-color: white; font-size: 15px;">⚡️</span><span face="verdana, sans-serif" style="background-color: white; font-size: 15px;"><b>Happy Learning</b> ☁️⚡️ (Learn. Help. Share.)</span><span style="background-color: white; font-family: Times; font-size: 15px;"> 😊</span><span style="font-family: Times;"> </span></span></div><div><span style="font-family: verdana;"><span style="font-family: Times;"><br /></span></span></div><div><span style="font-family: verdana;"><span><a href="https://www.sfdckid.com/2020/08/api-property-lightning-web-component.html"><b><< PREVIOUS</b></a> <a href="https://www.sfdckid.com/2021/07/how-to-fetch-data-in-lwc-salesforce.html" target="_blank"><b>NEXT >></b></a><br /></span></span></div><div><span style="font-family: verdana;"><br /></span></div><div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwYUrtE9O9Q2CxDrZ57xBgqoLzaeIEuFPbt_t1cNDOVLfOQcS7dNB8QQAR-znQp6181Z6vN5EdQM-bvLzwN9hM5HIOo9KGct76YV3SvJSKuQYM_kWiZ5rHOUwe0124iT4578K6BCoUDC0/s2730/blogBottom.jpg" style="margin-left: 1em; margin-right: 1em;"><img alt="SFDCKID on Google Play Store | sfdckid.com" border="0" data-original-height="469" data-original-width="2730" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwYUrtE9O9Q2CxDrZ57xBgqoLzaeIEuFPbt_t1cNDOVLfOQcS7dNB8QQAR-znQp6181Z6vN5EdQM-bvLzwN9hM5HIOo9KGct76YV3SvJSKuQYM_kWiZ5rHOUwe0124iT4578K6BCoUDC0/s16000/blogBottom.jpg" title="SFDCKID on Google Play Store | sfdckid.com" /></a></div><br /></div>
AJINKYA DHAS http://www.blogger.com/profile/13223328981950114267noreply@blogger.com5tag:blogger.com,1999:blog-8457518975744463615.post-26634700497075404002020-08-08T08:04:00.001-07:002020-10-03T09:31:51.633-07:00Master Salesforce Developer Interview Questions | 2020 <div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: center;">
<b><span face=""verdana" , sans-serif" style="font-size: x-large;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisXVCxogWihvQQB8xrMo2BEuE-252PJUaD_XziK0jEWuisnyI0Y-851pMSa_TEG1QSofUWAWfgGmiesmpqeul7doR7iySirQLKdQvazR7_L2jwQ4UdXNOJBomV67MCjNTY04TokXpGb0g/s1600/interview2020.jpg"><img alt="Master Salesforce Developer Interview Questions 2020" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisXVCxogWihvQQB8xrMo2BEuE-252PJUaD_XziK0jEWuisnyI0Y-851pMSa_TEG1QSofUWAWfgGmiesmpqeul7doR7iySirQLKdQvazR7_L2jwQ4UdXNOJBomV67MCjNTY04TokXpGb0g/s1600/interview2020.jpg" title="Master Salesforce Developer Interview Questions 2020" /></a></span></b></h2>
<h2 style="text-align: center;">
<b><span face=""verdana" , sans-serif" style="font-size: x-large;">Salesforce Developer Interview Preparation 2020</span></b></h2>
<div>
<span face=""verdana" , sans-serif">Hey Kid!! Ready for landing to your next job or preparing for your next Salesforce Developer Interview? Let me help you with that 😊.</span></div>
<div>
<span face=""verdana" , sans-serif"><br /></span></div>
<div>
<span face=""verdana" , sans-serif">All the questions attached in this blog will definitely help for your next interview. Hence Don't worry much about how you will prepare OKEY? </span></div>
<div>
<br /></div>
<div>
<span face=""verdana" , sans-serif">I have planned something new for you Kid.....Check this out 👇</span><br />
<span face=""verdana" , sans-serif"><br /></span></div>
<div>
<span face=""verdana" , sans-serif">This time I want to <b>YOU</b> to contribute for <b>finding out</b> the <b>ANSWERS</b> to these questions and <b>get a chance</b> to feature your answers along with your name.</span><br />
<span face=""verdana" , sans-serif"><br /></span>
<span face=""verdana" , sans-serif"></span><br />
<span face=""verdana" , sans-serif"><b>NOTE: </b>All the below questions are not belongs to any specific company or organisation. These are general questions asked in the interviews.</span></div>
<div>
<span face=""verdana" , sans-serif"><br /></span></div>
<div>
<span face=""verdana" , sans-serif">Here are the <b>SIMPLE RULES TO GET FEATURED ⭐️</b></span><b style="font-family: Verdana, sans-serif;">⭐️</b><b style="font-family: Verdana, sans-serif;">⭐️</b><b style="font-family: Verdana, sans-serif;">⭐️</b><span face=""verdana" , sans-serif"> :</span></div>
<div>
<ol style="text-align: left;">
<li><span face=""verdana" , sans-serif">You need to comment down your Answers in the comments section of this blog only.</span></li>
<li><span face=""verdana" , sans-serif">While commenting your answers mention the Question No. for example <b>Question No. 1: Your AnswerXXXX</b>.</span></li>
<li><span face=""verdana" , sans-serif">Once you are done with the Answer mention Your Name as <b>Trailblazer Name: XXXX XXXX</b>.</span></li>
<li><span face=""verdana" , sans-serif">You can <b>answer single</b> or <b>multiple answers</b> in the same fashion as mentioned above.</span></li>
<li><span face=""verdana" , sans-serif">Your Answer Pattern should start with a simplified version of definition (Not copy-pasted from somewhere) and as you know this SFDC Kid is known for simplifying the explanation, which a Small Kid can also understand.</span></li>
<li><span face=""verdana" , sans-serif">The best answer will be selected based on <b>Simplified Version</b> of concept to get featured.</span></li>
<li><span face=""verdana" , sans-serif">All the selected answers will be available immediately after the questions along with the trailblazer Name.</span></li>
<li><span face=""verdana" , sans-serif">Updating and selecting the answer will be in a weekly frequency. If you have better answer than the featured one post your counter Answer as <b>Counter Question No.1 : Your AnswerXXX</b></span></li>
</ol>
<div>
<span face=""verdana" , sans-serif"><br /></span></div>
<div>
<span face=""verdana" , sans-serif">Let's prepare together Kid......</span></div>
</div>
<div>
<span face=""verdana" , sans-serif"><br /></span></div>
<div>
<span face=""verdana" , sans-serif"><br /></span></div>
<div style="text-align: center;">
<span face=""verdana" , sans-serif" style="font-size: large;"><b>--- INTERVIEW QUESTIONS ---</b></span></div>
<div>
<span face=""verdana" , sans-serif"><br /></span></div>
<div>
<span face=""verdana" , sans-serif" style="font-size: large;"><b>Q.1 Explain </b><b style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">Batch apex</b><span style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space"> <b>e</b></span><b>xecution pattern?</b></span></span></div>
<div>
<span style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><b><span face=""verdana" , sans-serif" style="font-size: large;"><br /></span></b></span></div>
<div>
<span face=""verdana" , sans-serif" style="font-size: large;"><b>Q.2 Explain </b><b><span style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">Apex</span><span style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;"><span class="Apple-converted-space"> </span>trigger execution</span><span style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space"> </span>pattern?</span></b></span></div>
<div>
<span face=""verdana" , sans-serif"><b><span face=""verdana" , sans-serif" style="font-size: large;"><span style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><br /></span></span></b>
<b><span face=""verdana" , sans-serif" style="font-size: large;"><span style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">Q.3 Explain </span><span style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">Controller</span><span style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space"> </span>and<span class="Apple-converted-space"> </span></span><span style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">Extension</span><span style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space"> </span>(difference, execution pattern, when to refer to what)?</span></span></b></span></div>
<div>
<b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span face=""verdana" , sans-serif" style="font-size: large;"><br /></span></span></b></div>
<div>
<b><span face=""verdana" , sans-serif" style="font-size: large;"><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">Q.4 W</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">hat is</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;"><span class="Apple-converted-space"> </span>{get: set;} method<span class="Apple-converted-space"> </span></span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">in salesforce ? (use of it, how it actually fetch the data in the background)?</span></span></b></div><div><b style="color: #38761d; font-family: verdana, sans-serif; font-size: x-large;">ANS :</b><br /><b><span face=""verdana" , sans-serif" style="font-size: large;"><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">---------------------------------</span></span></b></div><div><p class="comment-content" style="background: 0px 0px rgb(255, 255, 255); border: 0px; color: #2c3e50; font-family: Roboto, sans-serif; line-height: 1.4em; margin: 0px 0px 8px; outline: 0px; padding: 0px; text-align: justify; transition: all 0.3s ease 0s; vertical-align: baseline;"><span style="font-size: large;">As the name suggest "GET" method fetch value of variables used in VF page from its controller or extension<br style="outline: 0px; transition: all 0.3s ease 0s;" />and "SET" method sets the value of the variables in apex controller or extension<br style="outline: 0px; transition: all 0.3s ease 0s;" />In short you can say that we use Get and Set methods to communicate between our VF page and Apex class i.e, for passing data<br style="outline: 0px; transition: all 0.3s ease 0s;" />For ex:- If you want to display your name in VF page like this:<br style="outline: 0px; transition: all 0.3s ease 0s;" /><br style="outline: 0px; transition: all 0.3s ease 0s;" />here {!myname} is your variable<br style="outline: 0px; transition: all 0.3s ease 0s;" />now, Apex code to get and set this variable value will be like this:<br style="outline: 0px; transition: all 0.3s ease 0s;" /><br style="outline: 0px; transition: all 0.3s ease 0s;" /><b>public class GetSetController{<br style="outline: 0px; transition: all 0.3s ease 0s;" />**Note:- always write getVariableName and setVariableName otherwise you will get error**<br style="outline: 0px; transition: all 0.3s ease 0s;" /><br style="outline: 0px; transition: all 0.3s ease 0s;" />//declare a local variable to pass it to SET method to set the actual variable<br style="outline: 0px; transition: all 0.3s ease 0s;" /><br style="outline: 0px; transition: all 0.3s ease 0s;" />public String myname;<br style="outline: 0px; transition: all 0.3s ease 0s;" /><br style="outline: 0px; transition: all 0.3s ease 0s;" />//get method<br style="outline: 0px; transition: all 0.3s ease 0s;" />//here return type will change accordingly<br style="outline: 0px; transition: all 0.3s ease 0s;" />public String getmyname(){ return 'SFDC Kid' ;}<br style="outline: 0px; transition: all 0.3s ease 0s;" /><br style="outline: 0px; transition: all 0.3s ease 0s;" />//set method<br style="outline: 0px; transition: all 0.3s ease 0s;" />public void setmyname(String myname) (<br style="outline: 0px; transition: all 0.3s ease 0s;" />this.myname = myname;<br style="outline: 0px; transition: all 0.3s ease 0s;" />}</b><br style="outline: 0px; transition: all 0.3s ease 0s;" /><br style="outline: 0px; transition: all 0.3s ease 0s;" />Now, whenever you will load your page You can see value "SFDC Kid". It will be default/static value<br style="outline: 0px; transition: all 0.3s ease 0s;" /><br style="outline: 0px; transition: all 0.3s ease 0s;" />Now if you want dynamically get and set the variable values then you have to modify your code like this:<br style="outline: 0px; transition: all 0.3s ease 0s;" /><br style="outline: 0px; transition: all 0.3s ease 0s;" /><b>Apex Class :</b><br style="outline: 0px; transition: all 0.3s ease 0s;" />public class GetSetController {<br style="outline: 0px; transition: all 0.3s ease 0s;" />//This is another way to write getter and setter methods whenever you are dealing //with dynamic value scenario<br style="outline: 0px; transition: all 0.3s ease 0s;" /><br style="outline: 0px; transition: all 0.3s ease 0s;" />public String myname{get; set;}<br style="outline: 0px; transition: all 0.3s ease 0s;" />}<br style="outline: 0px; transition: all 0.3s ease 0s;" /><br style="outline: 0px; transition: all 0.3s ease 0s;" />Here when you enter any value in the textbox it will be stored in {!myname} variable i.e., GET method and<br style="outline: 0px; transition: all 0.3s ease 0s;" />when you hit enter button same time this value is set on the same variable and show on below line on the same page i.e., the SET method<br style="outline: 0px; transition: all 0.3s ease 0s;" /><br style="outline: 0px; transition: all 0.3s ease 0s;" /><b>TrailBlazer Name : - Akshata</b></span></p></div><div><b><span face=""verdana" , sans-serif" style="font-size: large;"><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">---------------------------------</span></span></b></div>
<div>
<b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span face=""verdana" , sans-serif" style="font-size: large;"><br /></span></span></b></div>
<div>
<b><span face=""verdana" , sans-serif" style="font-size: large;"><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">Q.5 </span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">What is</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;"><span class="Apple-converted-space"> </span>view state</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space"> </span>? Explain in brief governor limits, how to reduce the size of it, best practices? </span></span></b></div>
<div>
<b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span face=""verdana" , sans-serif" style="font-size: large;"><br /></span></span></b></div>
<div>
<b><span face=""verdana" , sans-serif" style="font-size: large;"><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">Q.6 What exactly you do when you are doing </span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">Http Callouts</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space"> </span>in salesforce</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;"><span class="Apple-converted-space"> </span></span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">? How it works?</span></span></b></div>
<div>
<b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span face=""verdana" , sans-serif" style="font-size: large;"><br /></span></span></b></div>
<div>
<span face=""verdana" , sans-serif" style="font-size: large;"><b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">Q.7 Why do we need to write </span></b><b style="caret-color: rgb(0, 0, 0); font-family: AvenirNext-Regular; outline: transparent solid 0px; text-size-adjust: auto;">Test class</b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><b>es</b> <b>(pattern, how to use it, all keyword used for what purpose)?</b></span></span></div><div><b style="color: #38761d; font-family: verdana, sans-serif; font-size: x-large;">ANS :</b><br /><b><span face=""verdana" , sans-serif" style="font-size: large;"><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">---------------------------------</span></span></b></div><div><span style="font-family: verdana; font-size: large;"><span style="background-color: white; color: #2c3e50; text-align: justify;">Basically, we write a test class to check whether our functionality will run in all types of scenarios as expected. In short, our apex class should handle errors in the proper way</span><br style="background-color: white; color: #2c3e50; outline: 0px; text-align: justify; transition: all 0.3s ease 0s;" /><br style="background-color: white; color: #2c3e50; outline: 0px; text-align: justify; transition: all 0.3s ease 0s;" /><span style="background-color: white; color: #2c3e50; text-align: justify;">The test class coverage should be minimum of 75% to deploy it to production.</span><br style="background-color: white; color: #2c3e50; outline: 0px; text-align: justify; transition: all 0.3s ease 0s;" /><span style="background-color: white; color: #2c3e50; text-align: justify;">But note that it should cover all positive as well as negative test cases</span><br style="background-color: white; color: #2c3e50; outline: 0px; text-align: justify; transition: all 0.3s ease 0s;" /><span style="background-color: white; color: #2c3e50; text-align: justify;">Positive Case: You will give all necessary data in your test class and check whether you are getting output as expected in the assert statement.</span><br style="background-color: white; color: #2c3e50; outline: 0px; text-align: justify; transition: all 0.3s ease 0s;" /><span style="background-color: white; color: #2c3e50; text-align: justify;">For ex: If your functionality is saving record of Account. In the test class, you will give all necessary data to create an account and at last, in assert statement, you will check whether its working fine or not.</span><br style="background-color: white; color: #2c3e50; outline: 0px; text-align: justify; transition: all 0.3s ease 0s;" /><br style="background-color: white; color: #2c3e50; outline: 0px; text-align: justify; transition: all 0.3s ease 0s;" /><span style="background-color: white; color: #2c3e50; text-align: justify;">Negative Case: There is no negative test case as such because negative test cases are similar to the positive case only but from a different perspective. I used this term just to differentiate between 2 scenarios of writing</span><br style="background-color: white; color: #2c3e50; outline: 0px; text-align: justify; transition: all 0.3s ease 0s;" /><span style="background-color: white; color: #2c3e50; text-align: justify;">test cases</span><br style="background-color: white; color: #2c3e50; outline: 0px; text-align: justify; transition: all 0.3s ease 0s;" /><span style="background-color: white; color: #2c3e50; text-align: justify;">Here you will check what if user enter wrong/invalid data or did not enter any data and hit save button then in that case Account should not insert and you already have written logic to throw an error in your Apex class</span><br style="background-color: white; color: #2c3e50; outline: 0px; text-align: justify; transition: all 0.3s ease 0s;" /><span style="background-color: white; color: #2c3e50; text-align: justify;">Then in test class also you will not give required values while giving dummy data and check whether it's covering that line of code from your class</span><br style="background-color: white; color: #2c3e50; outline: 0px; text-align: justify; transition: all 0.3s ease 0s;" /><br style="background-color: white; color: #2c3e50; outline: 0px; text-align: justify; transition: all 0.3s ease 0s;" /><span style="background-color: white; color: #2c3e50; text-align: justify;"><b>Create Common Test Utility Classes For Test Data Creation:</b></span><br style="background-color: white; color: #2c3e50; outline: 0px; text-align: justify; transition: all 0.3s ease 0s;" /><span style="background-color: white; color: #2c3e50; text-align: justify;">- Test Utility Class is nothing but creation of test data which is reusable</span><br style="background-color: white; color: #2c3e50; outline: 0px; text-align: justify; transition: all 0.3s ease 0s;" /><span style="background-color: white; color: #2c3e50; text-align: justify;">while writing test classes while inserting test data</span><br style="background-color: white; color: #2c3e50; outline: 0px; text-align: justify; transition: all 0.3s ease 0s;" /><span style="background-color: white; color: #2c3e50; text-align: justify;">- Its start with @isTest annotation and public always</span><br style="background-color: white; color: #2c3e50; outline: 0px; text-align: justify; transition: all 0.3s ease 0s;" /><span style="background-color: white; color: #2c3e50; text-align: justify;">- You can write different methods for each object test data creation. This</span><br style="background-color: white; color: #2c3e50; outline: 0px; text-align: justify; transition: all 0.3s ease 0s;" /><span style="background-color: white; color: #2c3e50; text-align: justify;">method are written in similar way as we write in apex class</span><br style="background-color: white; color: #2c3e50; outline: 0px; text-align: justify; transition: all 0.3s ease 0s;" /><br style="background-color: white; color: #2c3e50; outline: 0px; text-align: justify; transition: all 0.3s ease 0s;" /><span style="background-color: white; color: #2c3e50; text-align: justify;"><b>There are few key points you have to remember while writing test class:</b></span><br style="background-color: white; color: #2c3e50; outline: 0px; text-align: justify; transition: all 0.3s ease 0s;" /><span style="background-color: white; color: #2c3e50; text-align: justify;">1.Best practice says write your test class name in this form : ApexClassName+Test</span><br style="background-color: white; color: #2c3e50; outline: 0px; text-align: justify; transition: all 0.3s ease 0s;" /><span style="background-color: white; color: #2c3e50; text-align: justify;">2.Start test class with @isTest annotation</span><br style="background-color: white; color: #2c3e50; outline: 0px; text-align: justify; transition: all 0.3s ease 0s;" /><span style="background-color: white; color: #2c3e50; text-align: justify;">3.To write test class methods you have 2 choice either you can simply write methods as you write in your apex class and will put @isTest annotation before it</span><br style="background-color: white; color: #2c3e50; outline: 0px; text-align: justify; transition: all 0.3s ease 0s;" /><span style="background-color: white; color: #2c3e50; text-align: justify;">or write as testmethod keyword before it</span><br style="background-color: white; color: #2c3e50; outline: 0px; text-align: justify; transition: all 0.3s ease 0s;" /><span style="background-color: white; color: #2c3e50; text-align: justify;">4.All methods must be static and void</span><br style="background-color: white; color: #2c3e50; outline: 0px; text-align: justify; transition: all 0.3s ease 0s;" /><span style="background-color: white; color: #2c3e50; text-align: justify;">5. Now if your class deals with functionality of multiple objects then you can write @testSetup method to give all required test data at start of test class only</span><br style="background-color: white; color: #2c3e50; outline: 0px; text-align: justify; transition: all 0.3s ease 0s;" /><span style="background-color: white; color: #2c3e50; text-align: justify;">for ex: - @testSetup</span><br style="background-color: white; color: #2c3e50; outline: 0px; text-align: justify; transition: all 0.3s ease 0s;" /><span style="background-color: white; color: #2c3e50; text-align: justify;">public static void insertTestData(){}</span><br style="background-color: white; color: #2c3e50; outline: 0px; text-align: justify; transition: all 0.3s ease 0s;" /><span style="background-color: white; color: #2c3e50; text-align: justify;">Use this test data in other test methods</span><br style="background-color: white; color: #2c3e50; outline: 0px; text-align: justify; transition: all 0.3s ease 0s;" /><span style="background-color: white; color: #2c3e50; text-align: justify;">Otherwise you can give test data inside each method also</span><br style="background-color: white; color: #2c3e50; outline: 0px; text-align: justify; transition: all 0.3s ease 0s;" /><span style="background-color: white; color: #2c3e50; text-align: justify;">6. System.debug statements are not counted in test class</span><br style="background-color: white; color: #2c3e50; outline: 0px; text-align: justify; transition: all 0.3s ease 0s;" /><span style="background-color: white; color: #2c3e50; text-align: justify;">7. Use Test.startTest and Test.stopTest while actual testing so that your testing will not face governor limit errors as it get refreshed always before your actual testing</span><br style="background-color: white; color: #2c3e50; outline: 0px; text-align: justify; transition: all 0.3s ease 0s;" /><span style="background-color: white; color: #2c3e50; text-align: justify;">8.You must write System.assert once testing is done to check whether your functionality is giving same output as you expected</span><br style="background-color: white; color: #2c3e50; outline: 0px; text-align: justify; transition: all 0.3s ease 0s;" /><br style="background-color: white; color: #2c3e50; outline: 0px; text-align: justify; transition: all 0.3s ease 0s;" /><span style="background-color: white; color: #2c3e50; text-align: justify;"><b>Annotations Used in Test class and its significance</b></span><br style="background-color: white; color: #2c3e50; outline: 0px; text-align: justify; transition: all 0.3s ease 0s;" /><span style="background-color: white; color: #2c3e50; text-align: justify;">1.@isTest ==> Indicates it is test class so that it will not get counted in governor limit for apex class</span><br style="background-color: white; color: #2c3e50; outline: 0px; text-align: justify; transition: all 0.3s ease 0s;" /><span style="background-color: white; color: #2c3e50; text-align: justify;">2.@testSetup ==> Indicated test data setup method and provide required test data for other test methods</span><br style="background-color: white; color: #2c3e50; outline: 0px; text-align: justify; transition: all 0.3s ease 0s;" /><span style="background-color: white; color: #2c3e50; text-align: justify;">3.test.startTest => Indicates testing has been started so that governor limits will get refreshed</span><br style="background-color: white; color: #2c3e50; outline: 0px; text-align: justify; transition: all 0.3s ease 0s;" /><span style="background-color: white; color: #2c3e50; text-align: justify;">4.test.stopTest ==> Indicated testing is done.</span><br style="background-color: white; color: #2c3e50; outline: 0px; text-align: justify; transition: all 0.3s ease 0s;" /><span style="background-color: white; color: #2c3e50; text-align: justify;">5.Test.isRunningTest() ==> to ensure trigger will not fire if its value is true to avoid limit exception also in your callout code its indicates context while unit testing so that actual</span><br style="background-color: white; color: #2c3e50; outline: 0px; text-align: justify; transition: all 0.3s ease 0s;" /><span style="background-color: white; color: #2c3e50; text-align: justify;">callout will not happen and will return a predefined string that we have written</span><br style="background-color: white; color: #2c3e50; outline: 0px; text-align: justify; transition: all 0.3s ease 0s;" /><span style="background-color: white; color: #2c3e50; text-align: justify;">6.test.runAs ==> to test functionality in different user context</span><br style="background-color: white; color: #2c3e50; outline: 0px; text-align: justify; transition: all 0.3s ease 0s;" /><br style="background-color: white; color: #2c3e50; outline: 0px; text-align: justify; transition: all 0.3s ease 0s;" /><span style="background-color: white; color: #2c3e50; text-align: justify;"><b>System.assert Methods</b></span><br style="background-color: white; color: #2c3e50; outline: 0px; text-align: justify; transition: all 0.3s ease 0s;" /><span style="background-color: white; color: #2c3e50; text-align: justify;">1.system.assert ==> here you will just check returned value or boolean value if apex method does not return anything</span><br style="background-color: white; color: #2c3e50; outline: 0px; text-align: justify; transition: all 0.3s ease 0s;" /><span style="background-color: white; color: #2c3e50; text-align: justify;">2.system.assertEquals ==> you will compare expected and actual values</span><br style="background-color: white; color: #2c3e50; outline: 0px; text-align: justify; transition: all 0.3s ease 0s;" /><span style="background-color: white; color: #2c3e50; text-align: justify;">3.system.assertNotEquals ==> here actual and expected values will be different in order to execute test case otherwise error will be thrown</span><br style="background-color: white; color: #2c3e50; outline: 0px; text-align: justify; transition: all 0.3s ease 0s;" /><br style="background-color: white; color: #2c3e50; outline: 0px; text-align: justify; transition: all 0.3s ease 0s;" /><span style="background-color: white; color: #2c3e50; text-align: justify;"><b>Trailblazer Name - Akshata</b></span></span></div><div><b><span face=""verdana" , sans-serif" style="font-size: large;"><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">---------------------------------</span></span></b></div><div><span face=""verdana" , sans-serif" style="font-size: large;"><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><b><br /></b></span></span></div>
<div>
<span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><b><span face=""verdana" , sans-serif" style="font-size: large;"><br /></span></b></span></div>
<div>
<span face=""verdana" , sans-serif" style="font-size: large;"><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><b>Q.8 What is </b></span><b style="caret-color: rgb(0, 0, 0); font-family: AvenirNext-Regular; outline: transparent solid 0px; text-size-adjust: auto;">Lightning Communities</b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space"> </span><b>(what are they, how community URL is separate, what are types, how auth is done in communities)?<span class="Apple-converted-space"> </span></b></span></span></div>
<div>
<span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><b><span class="Apple-converted-space"><span face=""verdana" , sans-serif" style="font-size: large;"><br /></span></span></b></span></div>
<div>
<span face=""verdana" , sans-serif" style="font-size: large;"><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><b><span class="Apple-converted-space">Q.9 </span></b></span><b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">What is<span class="Apple-converted-space"> </span></span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">System Mode</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space"> </span>&<span class="Apple-converted-space"> </span></span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">User Mode</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space"> </span>in salesforce?</span></b></span></div>
<div>
<b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span face=""verdana" , sans-serif" style="font-size: large;"><br /></span></span></b></div>
<div>
<b><span face=""verdana" , sans-serif" style="font-size: large;"><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">Q.10 </span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">What is<span class="Apple-converted-space"> </span></span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">WhoId</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space"> </span>&<span class="Apple-converted-space"> </span></span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">WhatId</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space"> (Explain in brief)?</span></span></span></b></div>
<div>
<b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space"><span face=""verdana" , sans-serif" style="font-size: large;"><br /></span></span></span></b></div>
<div>
<b><span face=""verdana" , sans-serif" style="font-size: large;"><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space">Q.11 What is </span></span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">**</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">Null pointer exception</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space"> </span>(why and when we get this in salesforce and how we can avoid this)?</span></span></b><br />
<b style="color: #38761d; font-family: verdana, sans-serif; font-size: x-large;">ANS :</b><br />
<b><span face=""verdana" , sans-serif" style="font-size: large;"><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">---------------------------------</span></span></b><br />
<span face=""verdana" , sans-serif" style="font-size: large;"><b>When object has not been initiated or attribute of object has not been initiated and still you trying to access attribute of that object you will receive an error " System.NullPointerException: Attempt to de-reference a null object".</b></span><br />
<span face=""verdana" , sans-serif" style="font-size: large;"><b><br /></b></span>
<span face=""verdana" , sans-serif" style="color: #0b5394; font-size: large;"><b>for example :</b></span><br />
<span face=""verdana" , sans-serif" style="font-size: large;"><b>Account objAccount;</b></span><br />
<span face=""verdana" , sans-serif" style="font-size: large;"><b>System.debug(objAccount.name); // this line you will get an error</b></span><br />
<span face=""verdana" , sans-serif" style="font-size: large;"><b><br /></b></span>
<span face=""verdana" , sans-serif" style="font-size: large;"><b>Trailblazer Name : <span style="color: #0b5394;">Satya Jarag</span></b></span><br />
<b><span face=""verdana" , sans-serif" style="font-size: large;">---------------------------------</span></b><br />
<span face=""verdana" , sans-serif"><b><br /></b></span></div>
<div>
<span face=""verdana" , sans-serif" style="font-size: large;"><b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">Q.12 What is </span></b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;"><b>SOQL</b></span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><b><span class="Apple-converted-space"> </span>Queries (parent to child, child to parent, aggregate function and best practices) ?</b></span></span></div>
<div>
<span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><b><span face=""verdana" , sans-serif" style="font-size: large;"><br /></span></b></span></div>
<div>
<b><span face=""verdana" , sans-serif" style="font-size: large;"><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">Q.13 What is </span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">SOSL<span class="Apple-converted-space"> </span></span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">(When to use SOSL over SOQL)?</span></span></b></div>
<div>
<b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span face=""verdana" , sans-serif" style="font-size: large;"><br /></span></span></b></div>
<div>
<span face=""verdana" , sans-serif" style="font-size: large;"><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><b>Q.14 What is </b></span><b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">With sharing</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space"> </span>and<span class="Apple-converted-space"> </span></span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">without sharing</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space"> </span>in salesforce (what is default sharing mode)? Why?</span></b></span></div>
<div>
<b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span face=""verdana" , sans-serif" style="font-size: large;"><br /></span></span></b></div>
<div>
<b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span face=""verdana" , sans-serif" style="font-size: large;">Q.15 Explain Security Model in Salesforce briefly?</span></span></b></div>
<div>
<b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span face=""verdana" , sans-serif" style="font-size: large;"><br /></span></span></b></div>
<div>
<b><span face=""verdana" , sans-serif" style="font-size: large;"><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">Q.16 </span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">Difference between<span class="Apple-converted-space"> </span></span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">Query Locator</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space"> </span>and</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;"><span class="Apple-converted-space"> </span>Database Query</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">?</span></span></b></div>
<div>
<b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span face=""verdana" , sans-serif" style="font-size: large;"><br /></span></span></b></div>
<div>
<b><span face=""verdana" , sans-serif" style="font-size: large;"><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">Q.17 </span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">What is<span class="Apple-converted-space"> </span></span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">Auth</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space"> </span>(</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">Authentication, SSO/Auth Provider</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">)?</span></span></b></div>
<div>
<b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span face=""verdana" , sans-serif" style="font-size: large;"><br /></span></span></b></div>
<div>
<b><span face=""verdana" , sans-serif" style="font-size: large;"><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">Q.18 </span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">What is<span class="Apple-converted-space"> </span></span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">CPU</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space"> </span>Time Limit (All aspects) ?</span></span></b></div>
<div>
<b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span face=""verdana" , sans-serif" style="font-size: large;"><br /></span></span></b></div>
<div>
<b><span face=""verdana" , sans-serif" style="font-size: large;"><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">Q.19 How does </span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">Asynchronous</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space"> </span>Triggers are different than normal triggers?</span></span></b></div>
<div>
<b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span face=""verdana" , sans-serif" style="font-size: large;"><br /></span></span></b></div>
<div>
<span face=""verdana" , sans-serif" style="font-size: large;"><b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">Q.20 What exactly do you mean by using</span></b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space"> </span></span><b style="caret-color: rgb(0, 0, 0); font-family: AvenirNext-Regular; outline: transparent solid 0px; text-size-adjust: auto;">API in Salesforce</b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space"> <b>(functionality,Types, limits)</b></span><b>?</b></span></span></div>
<div>
<span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><b><span face=""verdana" , sans-serif" style="font-size: large;"><br /></span></b></span></div>
<div>
<span face=""verdana" , sans-serif" style="font-size: large;"><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><b>Q.21 </b></span><b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">What is the first thing which will<span class="Apple-converted-space"> be </span></span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">initialised</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space"> </span>in<span class="Apple-converted-space"> </span></span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">batch</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"> </span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">apex</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">?</span></b></span></div>
<div>
<b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span face=""verdana" , sans-serif" style="font-size: large;"><br /></span></span></b></div>
<div>
<b><span face=""verdana" , sans-serif" style="font-size: large;"><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">Q.22 What are </span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">**</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">Governor Limits</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space"> in Salesforce </span>(why they used, what the limit of… )?</span></span></b></div>
<div>
<b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span face=""verdana" , sans-serif" style="font-size: large;"><br /></span></span></b></div>
<div>
<b><span face=""verdana" , sans-serif" style="font-size: large;"><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">Q.23 </span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">What is<span class="Apple-converted-space"> </span></span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">heap size</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space"> in Salesforce (Limitations, Optimisation Technique, how to check it)?</span></span></span></b></div>
<div>
<b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space"><span face=""verdana" , sans-serif" style="font-size: large;"><br /></span></span></span></b></div>
<div>
<span face=""verdana" , sans-serif" style="font-size: large;"><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space"><b>Q.24 What is </b></span></span><b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">URL in<span class="Apple-converted-space"> </span></span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">Aura</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space"> </span>Component?</span></b></span></div>
<div>
<b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span face=""verdana" , sans-serif" style="font-size: large;"><br /></span></span></b></div>
<div>
<b><span face=""verdana" , sans-serif" style="font-size: large;"><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">Q.25 </span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">How to<span class="Apple-converted-space"> </span></span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">optimise</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space"> </span>your Apex code (All possible techniques and methodologies use )?</span></span></b></div>
<div>
<b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span face=""verdana" , sans-serif" style="font-size: large;"><br /></span></span></b></div>
<div>
<b><span face=""verdana" , sans-serif" style="font-size: large;"><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">Q.26 </span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">When to write the<span class="Apple-converted-space"> </span></span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">apex trigger</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space"> </span>and<span class="Apple-converted-space"> </span></span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">when</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space"> </span>to not?</span></span></b></div>
<div>
<b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span face=""verdana" , sans-serif" style="font-size: large;"><br /></span></span></b></div>
<div>
<b><span face=""verdana" , sans-serif" style="font-size: large;"><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">Q.27 </span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">What is<span class="Apple-converted-space"> </span></span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">cross-reference Id<span class="Apple-converted-space"> </span></span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">errors (Reason, How can you avoid that)?</span></span></b></div>
<div>
<b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span face=""verdana" , sans-serif" style="font-size: large;"><br /></span></span></b></div>
<div>
<span face=""verdana" , sans-serif" style="font-size: large;"><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><b>Q.28 What is </b></span><b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">Mix DML</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space"> </span>Exception (Reason, How to avoid it)?</span></b></span><br />
<span face="verdana, sans-serif" style="font-size: large;"><b><span style="color: #38761d;">ANS </span>: </b></span><br />
<b><span face=""verdana" , sans-serif" style="font-size: large;">---------------------------------</span></b><br />
<span face="verdana, sans-serif" style="font-size: large;"><b>When in a single transaction we are trying to perform insert/update/delete operation on set-up and non-setup objects then we receive MIX DML Error.</b></span><br />
<span face="verdana, sans-serif" style="font-size: large;"><b>Setup objects can be classified as User,Profile etc and non-setup objects can be classified as Account,Contact and our custom objects are also counted against non-setup objects.</b></span><br />
<span face="verdana, sans-serif" style="font-size: large;"><b>So if it is necessary to perform DML operation on both set-up and non-setup objects in a single transaction then we have to break the transaction and we can achieve that by implementing the asynchronous method i.e. future method.</b></span><br />
<span face="verdana, sans-serif" style="font-size: large;"><b><br /></b></span>
<span face="verdana, sans-serif" style="font-size: large;"><b><span style="color: #0b5394;">Below code will be helpful</span> :</b></span><br />
<span face="verdana, sans-serif" style="font-size: large;"><b><br /></b></span>
<span face="verdana, sans-serif" style="font-size: large;"><b>#before implementing future</b></span><br />
<span face="verdana, sans-serif" style="font-size: large;"><b>User usr = [SELECT ID,Email FROM USER WHERE Id = : UserInfo.getUserId()];</b></span><br />
<span face="verdana, sans-serif" style="font-size: large;"><b>user.email = sfdckid@salesforce.com</b></span><br />
<span face="verdana, sans-serif" style="font-size: large;"><b>update use;</b></span><br />
<span face="verdana, sans-serif" style="font-size: large;"><b><br /></b></span>
<span face="verdana, sans-serif" style="font-size: large;"><b>Account acc = [Select Id,Name FROM Account LIMIT 1];</b></span><br />
<span face="verdana, sans-serif" style="font-size: large;"><b>acc.name='salesforcekid';</b></span><br />
<span face="verdana, sans-serif" style="font-size: large;"><b>update acc;</b></span><br />
<span face="verdana, sans-serif" style="font-size: large;"><b><br /></b></span>
<span face="verdana, sans-serif" style="font-size: large;"><b>In above example when we will try to update User and Account we will get MIX DML Operation Error so in-order to avoid it we will be implementing future method 2 break transaction into 2 parts.</b></span><br />
<span face="verdana, sans-serif" style="font-size: large;"><b>#after implementing future</b></span><br />
<span face="verdana, sans-serif" style="font-size: large;"><b>Account acc = Account acc = [Select Id,Name FROM Account LIMIT 1];</b></span><br />
<span face="verdana, sans-serif" style="font-size: large;"><b>acc.name='salesforcekid';</b></span><br />
<span face="verdana, sans-serif" style="font-size: large;"><b>update acc;</b></span><br />
<span face="verdana, sans-serif" style="font-size: large;"><b><br /></b></span>
<span face="verdana, sans-serif" style="font-size: large;"><b>calling another class in the same logic which will be implementing future method.</b></span><br />
<span face="verdana, sans-serif" style="font-size: large;"><b>class ImplementFuture{</b></span><br />
<span face="verdana, sans-serif" style="font-size: large;"><b>@future updateUser(){</b></span><br />
<span face="verdana, sans-serif" style="font-size: large;"><b>User usr = [SELECT ID,Email FROM USER WHERE Id = : UserInfo.getUserId()];</b></span><br />
<span face="verdana, sans-serif" style="font-size: large;"><b>user.email = sfdckid@salesforce.com</b></span><br />
<span face="verdana, sans-serif" style="font-size: large;"><b>update use;</b></span><br />
<span face="verdana, sans-serif" style="font-size: large;"><b>}</b></span><br />
<span face="verdana, sans-serif" style="font-size: large;"><b>}</b></span><br />
<span face="verdana, sans-serif" style="font-size: large;"><b>Trailblazer Name : <span style="color: #0b5394;">Abhishek Singh</span></b></span><br />
<b><span face=""verdana" , sans-serif" style="font-size: large;">---------------------------------</span></b><br />
<span face="verdana, sans-serif" style="font-size: large;"><b><br /></b></span></div>
<div>
<b><span face=""verdana" , sans-serif" style="font-size: large;"><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">Q.29 What kind of error you can face while using D</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">ata Loader</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space"> in Salesforce</span>?</span></span></b></div>
<div>
<b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span face=""verdana" , sans-serif" style="font-size: large;"><br /></span></span></b></div>
<div>
<b><span face=""verdana" , sans-serif" style="font-size: large;"><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">Q.30 </span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">Execution of<span class="Apple-converted-space"> </span></span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">synchronous</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space"> </span>and<span class="Apple-converted-space"> </span></span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">Asynchronous</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space"> </span>apex (Limits, Which is best in what condition)?</span></span></b></div>
<div>
<b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span face=""verdana" , sans-serif" style="font-size: large;"><br /></span></span></b></div>
<div>
<b><span face=""verdana" , sans-serif" style="font-size: large;"><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">Q.31 Explain </span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space"> d</span>ifferent modes of<span class="Apple-converted-space"> </span></span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">Asynchronous apex</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space"> </span>(future method, Queable, batch, Schedulable?</span></span></b></div>
<div>
<b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span face=""verdana" , sans-serif" style="font-size: large;"><br /></span></span></b></div>
<div>
<b><span face=""verdana" , sans-serif" style="font-size: large;"><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">Q.32 How can you s</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">earch for the<span class="Apple-converted-space"> </span></span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">errors</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space"> </span>and<span class="Apple-converted-space"> </span></span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">why we get that in apex</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space"> </span>code?</span></span></b></div>
<div>
<b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span face=""verdana" , sans-serif" style="font-size: large;"><br /></span></span></b></div>
<div>
<span face=""verdana" , sans-serif" style="font-size: large;"><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); font-weight: bold; text-size-adjust: auto;">Q.33 </span><b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">When to<span class="Apple-converted-space"> </span></span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">use flow</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">, when to use<span class="Apple-converted-space"> </span></span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">process</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"> </span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">builder</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">?</span></b></span></div>
<div>
<b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span face=""verdana" , sans-serif" style="font-size: large;"><br /></span></span></b></div>
<div>
<b><span face=""verdana" , sans-serif" style="font-size: large;"><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">Q.34 What is </span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">Mutable</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space"> </span>and<span class="Apple-converted-space"> </span></span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">immutable</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space"> </span>in apex and javaScript in salesforce (explain for both, how different it is)?</span></span></b></div>
<div>
<b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span face=""verdana" , sans-serif" style="font-size: large;"><br /></span></span></b></div>
<div>
<b><span face=""verdana" , sans-serif" style="font-size: large;"><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">Q.35 </span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">What is<span class="Apple-converted-space"> </span></span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">Inside</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space"> </span>batch?</span></span></b></div>
<div>
<b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span face=""verdana" , sans-serif" style="font-size: large;"><br /></span></span></b></div>
<div>
<b><span face=""verdana" , sans-serif" style="font-size: large;"><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">Q.36 W</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">hat is<span class="Apple-converted-space"> </span></span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">Salesforce</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"> </span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">DX</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">?</span></span></b></div>
<div>
<b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span face=""verdana" , sans-serif" style="font-size: large;"><br /></span></span></b></div>
<div>
<b><span face=""verdana" , sans-serif" style="font-size: large;"><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">Q.37 What kind of error have you faced</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"> in<span class="Apple-converted-space"> </span></span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">Aura</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space"> </span>and<span class="Apple-converted-space"> </span></span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">LWC</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space"> (How to handle them)</span>?</span></span></b></div>
<div>
<b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span face=""verdana" , sans-serif" style="font-size: large;"><br /></span></span></b></div>
<div>
<b><span face=""verdana" , sans-serif" style="font-size: large;"><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">Q.38 </span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">How to debug<span class="Apple-converted-space"> errors in </span></span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">process builder</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space"> </span>and<span class="Apple-converted-space"> </span></span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">Flows</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">?</span></span></b></div>
<div>
<b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span face=""verdana" , sans-serif" style="font-size: large;"><br /></span></span></b></div>
<div>
<b><span face=""verdana" , sans-serif" style="font-size: large;"><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">Q.39 What are </span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">Apex</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;"><span class="Apple-converted-space"> </span>Imperative methods</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">?</span></span></b></div>
<div>
<b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span face=""verdana" , sans-serif" style="font-size: large;"><br /></span></span></b></div>
<div>
<b><span face=""verdana" , sans-serif" style="font-size: large;"><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">Q.40 What exactly is difference between </span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">WireMethod</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space"> </span>to a function or<span class="Apple-converted-space"> </span></span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">WireMethod</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space"> </span>to a property?</span></span></b></div>
<div>
<b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span face=""verdana" , sans-serif" style="font-size: large;"><br /></span></span></b></div>
<div>
<b><span face=""verdana" , sans-serif" style="font-size: large;"><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">Q.41 What kind of changes you have faced while developing</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;"> lightning web component</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">?</span></span></b></div>
<div>
<b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span face=""verdana" , sans-serif" style="font-size: large;"><br /></span></span></b></div>
<div>
<b><span face=""verdana" , sans-serif" style="font-size: large;"><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">Q.42 Explain d</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">ifferent<span class="Apple-converted-space"> </span></span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">record Id’s present in salesforce</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space"> </span>(External Id, record Id)?</span></span></b></div>
<div>
<b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span face=""verdana" , sans-serif" style="font-size: large;"><br /></span></span></b></div>
<div>
<span face=""verdana" , sans-serif" style="font-size: large;"><span face="AvenirNext-Regular"><b>Q.43 Explain </b></span><b style="caret-color: rgb(0, 0, 0); font-family: AvenirNext-Regular; outline: transparent solid 0px; text-size-adjust: auto;">Event-driven architecture - Platform Events, Streaming API, Change data capture?</b></span></div>
<div>
<b style="caret-color: rgb(0, 0, 0); font-family: AvenirNext-Regular; outline: transparent solid 0px; text-size-adjust: auto;"><span face=""verdana" , sans-serif" style="font-size: large;"><br /></span></b></div>
<div>
<span face=""verdana" , sans-serif" style="font-size: large;"><b style="caret-color: rgb(0, 0, 0); font-family: AvenirNext-Regular; outline: transparent solid 0px; text-size-adjust: auto;">Q.44 What is difference between </b><b style="caret-color: rgb(0, 0, 0); font-family: AvenirNext-Regular; outline: transparent solid 0px; text-size-adjust: auto;">Sites, Communities and Force.com?</b></span></div>
<div>
<b style="caret-color: rgb(0, 0, 0); font-family: AvenirNext-Regular; outline: transparent solid 0px; text-size-adjust: auto;"><span face=""verdana" , sans-serif" style="font-size: large;"><br /></span></b></div>
<div>
<b><span face=""verdana" , sans-serif" style="font-size: large;"><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">Q.45 </span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">How does Salesforce handle<span class="Apple-converted-space"> </span></span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">calls to the Apex</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;"><span class="Apple-converted-space"> </span>from multiple<span class="Apple-converted-space"> </span></span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); outline: transparent solid 0px; text-size-adjust: auto;">Lightning Components</span><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); text-size-adjust: auto;">?</span></span></b></div>
<div>
<b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); font-size: 18px; text-size-adjust: auto;"><br /></span></b></div>
<div>
<br /></div>
<div>
<b style="font-family: Verdana, sans-serif; font-size: x-large; text-align: center;"> --- ·</b><b style="font-family: Verdana, sans-serif; font-size: x-large; text-align: center;">·</b><b style="font-family: Verdana, sans-serif; font-size: x-large; text-align: center;">·</b><b style="font-family: Verdana, sans-serif; font-size: x-large; text-align: center;">·</b><b style="font-family: Verdana, sans-serif; font-size: x-large; text-align: center;"> ---</b></div>
<div>
<b><span face="AvenirNext-Regular" style="caret-color: rgb(0, 0, 0); font-size: 18px; text-size-adjust: auto;"><br /></span></b></div>
<div>
<span face="AvenirNext-Regular"><span style="font-size: 18px;">I am pretty sure all of the above questions will blow your mind 😅 and seems challenging to you as well even if you are 2+ years of development experience. But trust me this will open new boundaries to your interview preparation as well.</span></span></div>
<div>
<br /></div>
<div>
<span face=""verdana" , sans-serif">All of the above questions are the Key set to crack any tough salesforce developer interview 🤝and will definitely help you 😊.</span></div>
<div>
<span face=""verdana" , sans-serif"><br /></span></div>
<div>
<span face=""verdana" , sans-serif">Please do participate in answering these questions to help each other to crack interviews with top-notch knowledge and make this world a better place to live 🌍.</span></div>
<div>
<span face=""verdana" , sans-serif"><br /></span></div>
<div>
<span face=""verdana" , sans-serif">Wish you all the very best for your preparation...</span></div>
<div>
<span face=""verdana" , sans-serif"><br /></span></div>
<div>
<span face=""verdana" , sans-serif"><b>WOHOOO !! YOU HAVE JUST COMPLETED MASTER INTERVIEW PREPARATION 2020</b><span face=""verdana" , sans-serif"> <b>EPISODE</b></span></span><br />
<span face=""verdana" , sans-serif" style="background-color: white; font-size: 15px;">If you like this</span><span face=""verdana" , sans-serif" style="background-color: white; color: #5e5e5e; font-size: 15px;"> </span><a href="https://www.sfdckid.com/" style="font-family: verdana, sans-serif;"><b>SFDCkid</b></a><span face=""verdana" , sans-serif" style="background-color: white; color: #5e5e5e; font-size: 15px;"> </span><span face=""verdana" , sans-serif" style="background-color: white; font-size: 15px;">learning platform please let me know in the Comment section...Also, Share with your salesforce folks wish you all</span><br />
<span face=""verdana" , sans-serif" style="background-color: white; font-size: 15px;"><b>Happy Learning</b> ☁️⚡️ (Learn. Help. Share.) 😊</span><span face=""verdana" , sans-serif"> </span><br />
<span face=""verdana" , sans-serif"><br /></span>
<span face=""verdana" , sans-serif"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrafMz1YBQ9STiitMeGyEexiyIaQZMhzTF9tj2UPRKyIPKDMwJQtu5Ery4TzkOckHi8zkXkezl6OkwRbFbo6WSRzZoZGm_eJ2iO4_dj-W7C1__CY83rq2GIMeuGHoBvPdn_I8CqFlYSCE/s1600/blogBottom.jpg"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrafMz1YBQ9STiitMeGyEexiyIaQZMhzTF9tj2UPRKyIPKDMwJQtu5Ery4TzkOckHi8zkXkezl6OkwRbFbo6WSRzZoZGm_eJ2iO4_dj-W7C1__CY83rq2GIMeuGHoBvPdn_I8CqFlYSCE/s1600/blogBottom.jpg" /></a></span></div>
</div>
AJINKYA DHAS http://www.blogger.com/profile/13223328981950114267noreply@blogger.com19tag:blogger.com,1999:blog-8457518975744463615.post-13773762252772417352020-08-01T06:37:00.005-07:002020-09-20T09:24:00.175-07:00Pass Value From Parent To Child with @API Property In LWC | Salesforce<div dir="ltr" style="text-align: left;" trbidi="on"><h2 style="text-align: center;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhf6W4CBab1VTi_jxJCL3T3QIMbM9D63w25IcoQDDYFtv62HndFaZta_cCvA0RuMOHvucFKzV246tmODcMH_AjwdjfjPGpk02jTPhvlV2MMrSGXIxUAihv4jZpb17NI9O6k2y4tkvxTMUY/s1366/APIProperty.jpg" style="margin-left: 1em; margin-right: 1em;"><img alt="Pass Value From Parent To Child with @API Property In Salesforce Lightning Web Component | LWC" border="0" data-original-height="768" data-original-width="1366" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhf6W4CBab1VTi_jxJCL3T3QIMbM9D63w25IcoQDDYFtv62HndFaZta_cCvA0RuMOHvucFKzV246tmODcMH_AjwdjfjPGpk02jTPhvlV2MMrSGXIxUAihv4jZpb17NI9O6k2y4tkvxTMUY/d/APIProperty.jpg" title="Pass Value From Parent To Child with @API Property In Salesforce Lightning Web Component | LWC" /></a></div><span face="verdana, sans-serif"><br /></span></h2><h2 style="text-align: center;"><span face="verdana, sans-serif">Pass Value From Parent To Child in LWC</span></h2>
<div>
<span face="verdana, sans-serif">Hey Kid !! Hope you're doing great 😊. In previous <b><a href="https://www.sfdckid.com/2020/06/component-composition-in-salesforce-lwc.html" target="_blank">EPISODE</a> </b>we discussed about the component composition where we learnt how we can include multiple reusable components in a single component.</span></div>
<div>
<span face="verdana, sans-serif"><br /></span></div>
<div>
<span face="verdana, sans-serif">In this EPISODE, we will discuss about How we can pass the value from our parent component to the child component by using reactive property i.e. <b>@API</b>.</span></div>
<div>
<span face="verdana, sans-serif"><br /></span></div>
<div>
<span face="verdana, sans-serif">Now, let's clear some doubts before heading towards the actual concept Alright? </span></div>
<div>
<span face="verdana, sans-serif">If you have some basic idea about salesforce lightning Aura components where we pass value from parent to child thought an attribute and then again we need to define that attribute in our child component to access the passed value.</span></div>
<div>
<span face="verdana, sans-serif">Also, when we want to pass the value from child to parent component we have used events in that case.</span></div>
<div>
<span face="verdana, sans-serif"><br /></span></div>
<div>
<span face="verdana, sans-serif">Similarly, in Lightning Web Components(LWC) we use a similar methodology to achieve the same but here we have a simpler version on it. In this episode, we will learn about the parent to child approach in a lightning web component.</span></div>
<div>
<span face="verdana, sans-serif"><br /></span></div>
<div>
<span face="verdana, sans-serif">So for passing the value from parent to child we are using the similar Aura approach of passing it through attribute but this time the game is different to use it in a child component.</span></div>
<div>
<span face="verdana, sans-serif"><br /></span></div>
<div>
<span face="verdana, sans-serif"><b>HOW THE GAME IS DIFFERENT THAN AURA ? </b></span></div>
<div>
<span face="verdana, sans-serif">In Lightning Web Component (LWC), we are definitely passing passing it throught attribute like :</span></div>
<div>
<span face="verdana, sans-serif">------------------------------------------------</span></div>
<div>
<span face="verdana, sans-serif" style="color: #073763;"><b><template></b></span></div>
<div>
<span face="verdana, sans-serif" style="color: #073763;"><b><span style="color: #073763;"> <c-child </span><span style="color: #990000;">name</span><span style="color: #073763;">={nameFromParent}></c-child></span></b></span></div>
<div>
<span face="verdana, sans-serif" style="color: #073763;"><b></template></b></span></div>
<div>
<span face="verdana, sans-serif">------------------------------------------------</span></div>
<div>
<span face="verdana, sans-serif"><br /></span></div>
<div>
<span face="verdana, sans-serif">As you can see we are passing </span><span face="verdana, sans-serif" style="color: #073763;">{nameFromParent} </span><span face="verdana, sans-serif">value to a child in <b><span style="color: #990000;">name</span> </b>attribute of the child.</span></div>
<div>
<span face="verdana, sans-serif"><br /></span></div>
<div>
<span face="verdana, sans-serif">But for accessing the value of <b>name</b> we don't have to define this attribute in child component.</span></div>
<div>
<span face="verdana, sans-serif">Salesforce provided the reactive public property called as <b>@API</b>. Where you just need to use <b>@API name </b>in your child component's <b>.JS </b>file and boom!! you can directly use that value Coooool right ?</span></div>
<div>
<span face="verdana, sans-serif"><br /></span></div>
<div>
<span face="verdana, sans-serif">Let's understand what's the magic behind it 💡</span></div>
<div>
<span face="verdana, sans-serif"><br /></span></div>
<div>
<span face="verdana, sans-serif" style="font-size: large;"><b>HOW <span style="color: #073763;">@API</span> CAN DIRECTLY ACCESS PARENT VALUE ?</b></span></div>
<div>
<span face="verdana, sans-serif">Because these reactive properties are nothing but the <b>JavaScript Proxy </b>where the value from the Parent component is <b>cloned</b> and used by the Child component. All the specifications of these JavaScript proxies are followed by ECMAScript standards.</span></div>
<div>
<span face="verdana, sans-serif"><br /></span></div>
<div>
<span face="verdana, sans-serif" style="font-size: large;"><b>WHY @API In LWC ?</b></span></div>
<div>
<span face="verdana, sans-serif">@Api is public reactive property in lightning web component development. What exactly does that mean is 'Change in an attribute value decorated with @Api will reflect within the same component as well as outside the component where this value is referred'</span></div>
<div>
<span face="verdana, sans-serif"><b>NOTE: </b>As this change in value will reflect outside the current component hence it's called as public reactive property. We have seen private reactive property in previous LWC Episode where we have used <b>@track </b>which is private (within same component) reactive property.</span></div>
<div>
<span face="verdana, sans-serif"><br /></span></div>
<div>
<span face="verdana, sans-serif">Now the picture is more clear right ? </span></div>
<div>
<span face="verdana, sans-serif"><br /></span></div>
<div>
<span face="verdana, sans-serif">Today we'll create some awesome recipe to get a hands-on demonstration on it.</span></div>
<div>
<span face="verdana, sans-serif"><br /></span></div>
<div>
<span face="verdana, sans-serif">Something like this....</span></div>
<div>
<span face="verdana, sans-serif"><br /></span></div>
<div>
<span face="verdana, sans-serif"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi198r-6S9qFyTQx2XWG-WOeZI4U_xXMPMduoOS3hR-coscD9ZNlNoccnemmIsa7t7j_o-Q8zr3Vsg_c_u58RatWNMIZ_HGfnPpx568lf5bMgPLg2pi-ngmbKOcJ7urTwhI1JuwaxAREm0/s1600/Screenshot+2020-08-01+at+2.09.55+PM.png"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi198r-6S9qFyTQx2XWG-WOeZI4U_xXMPMduoOS3hR-coscD9ZNlNoccnemmIsa7t7j_o-Q8zr3Vsg_c_u58RatWNMIZ_HGfnPpx568lf5bMgPLg2pi-ngmbKOcJ7urTwhI1JuwaxAREm0/s1600/Screenshot+2020-08-01+at+2.09.55+PM.png" /></a> </span></div>
<div>
<span face="verdana, sans-serif"><br /></span></div>
<div>
<span face="verdana, sans-serif">Excited ?? wait....wait....wait Kid!! we need to understand the design pattern of it first and then we will start this cool hands-on 😄.</span></div>
<div>
<span face="verdana, sans-serif"><br /></span></div>
<div>
<span face="verdana, sans-serif">Let's understand the Syntax and pattern of passing the value from parent to child.</span></div>
<div>
<span face="verdana, sans-serif"><br /></span></div>
<div>
<span face="verdana, sans-serif" style="font-size: large;"><b>SYNTAX</b>/<b>PATTERN</b> : </span></div>
<div>
<span face="verdana, sans-serif"><br /></span></div>
<div>
<span face="verdana, sans-serif"><b>parentCmp.html</b></span></div>
<div>
<span face="verdana, sans-serif">----------------------------------------------</span></div>
<div>
<span face="verdana, sans-serif"><b><template></b></span></div>
<div>
<span face="verdana, sans-serif"><b> Hey!! this is my name from the parent component :</b></span></div>
<div>
<span face="verdana, sans-serif"><b><span style="color: #38761d;"> <c-child </span><span style="color: #073763;">name</span><span style="color: #38761d;">=</span><span style="color: #660000;">{myname}</span><span style="color: #38761d;">></c-child></span></b></span></div>
<div>
<span face="verdana, sans-serif"><b></template></b></span></div>
<div>
<span face="verdana, sans-serif">----------------------------------------------</span></div>
<div>
<span face="verdana, sans-serif"><br /></span></div>
<div>
<span face="verdana, sans-serif">In the above syntax of a parent component, we have composed child component <b><c-child> </b>component where we used the kabab case in syntax (c- is default + component name) and we are passing the value of </span><span face="verdana, sans-serif"><span style="color: #660000; font-weight: bold;">myname </span>to the child component through an attribute </span><span face="verdana, sans-serif"><span style="color: #073763;"><b>name</b>.</span></span></div>
<div>
<span face="verdana, sans-serif">From where the</span><span face="verdana, sans-serif" style="color: #073763;"> </span><span face="verdana, sans-serif" style="color: #660000; font-weight: 700;">myname </span><span face="verdana, sans-serif">value is coming ?</span></div>
<div>
<span face="verdana, sans-serif"><br /></span></div>
<div>
<span face="verdana, sans-serif"><b>parentCmp.js</b></span></div>
<div>
<span face="verdana, sans-serif">----------------------------------------------</span></div>
<div>
<span face="verdana, sans-serif"><b>import { LightningElement } from 'lwc';</b></span></div>
<div>
<span face="verdana, sans-serif"><b><br /></b></span></div>
<div>
<b><span face="verdana, sans-serif">export default class P</span><span face="verdana, sans-serif">arentCmp</span><span face="verdana, sans-serif"> extends LightningElement {</span></b></div>
<div>
<span face="verdana, sans-serif"><b> <span style="color: #990000;">myname</span> = '<span style="color: #0b5394;">SalesforceKid</span>';</b></span></div>
<div>
<span face="verdana, sans-serif"><b>}</b></span></div>
<div>
<span face="verdana, sans-serif">----------------------------------------------</span></div>
<div>
<span face="verdana, sans-serif"><br /></span></div>
<div>
<span face="verdana, sans-serif">from the above <b>.js</b> file, we are defining the value of </span><b style="font-family: verdana, sans-serif;"><span style="color: #990000;">myname</span></b><span face="verdana, sans-serif"><b> </b>as </span><b style="font-family: verdana, sans-serif;">'<span style="color: #0b5394;">SalesforceKid</span>' </b><span face="verdana, sans-serif">as default value.</span></div>
<div>
<span face="verdana, sans-serif"><br /></span></div>
<div>
<span face="verdana, sans-serif">Now let's check what's the secret is there in Child component ?</span></div>
<div>
<span face="verdana, sans-serif"><br /></span></div>
<div>
<span face="verdana, sans-serif"><b>child.html</b></span></div>
<div>
<span face="verdana, sans-serif">----------------------------------------------</span></div>
<div>
<span face="verdana, sans-serif"><b><template></b></span></div>
<div>
<span face="verdana, sans-serif"><b> {name}</b></span></div>
<div>
<span face="verdana, sans-serif"><b></template></b></span></div>
<div>
<span face="verdana, sans-serif">----------------------------------------------</span></div>
<div>
<span face="verdana, sans-serif"><br /></span></div>
<div>
<span face="verdana, sans-serif">In markup file, as you can see we are just displaying the value of <b>name</b>.</span></div>
<div>
<span face="verdana, sans-serif"><br /></span></div>
<div>
<span face="verdana, sans-serif">Then let's check the secret in <b>.JS </b>file of a child component. </span></div>
<div>
<span face="verdana, sans-serif"><br /></span></div>
<div>
<span face="verdana, sans-serif"><b>child.js</b></span></div>
<div>
<span face="verdana, sans-serif">----------------------------------------------</span></div>
<div>
<div>
<span face="verdana, sans-serif"><b>import { LightningElement, <span style="color: #38761d;">api</span> } from 'lwc';</b></span></div>
<div>
<span face="verdana, sans-serif"><b><br /></b></span></div>
<div>
<b><span face="verdana, sans-serif">export default class P</span><span face="verdana, sans-serif">arentCmp</span><span face="verdana, sans-serif"> extends LightningElement {</span></b></div>
<div>
<span face="verdana, sans-serif"><b> <span style="color: #990000;">@api </span><span style="color: #0b5394;">name</span>;</b></span></div>
<div>
<span face="verdana, sans-serif"><b>}</b></span></div>
</div>
<div>
<span face="verdana, sans-serif">----------------------------------------------</span></div>
<div>
<span face="verdana, sans-serif"><br /></span></div>
<div>
<span face="verdana, sans-serif">Ooooh !! So the secret is here Kid 😉. As you can see we have first added </span><b style="font-family: verdana, sans-serif;"><span style="color: #38761d;">api</span></b><span face="verdana, sans-serif"><b> </b>in <b>import</b> to use it further. </span></div>
<div>
<span face="verdana, sans-serif">Secondly, we just used</span><span face="verdana, sans-serif"><b> </b><span style="color: #990000; font-weight: bold;">@api </span><span style="color: #0b5394; font-weight: bold;">name </span>in a child component's javascript file to access it.</span></div>
<div>
<span face="verdana, sans-serif"><br /></span></div>
<div>
<span face="verdana, sans-serif">And there you go....... </span></div>
<div>
<span face="verdana, sans-serif"><br /></span></div>
<div>
<span face="verdana, sans-serif"><b>Output :</b></span></div>
<div>
<span face="verdana, sans-serif">----------------------------------------------</span></div>
<div>
<b style="font-family: verdana, sans-serif;">Hey!! this is my name from the parent component :</b></div>
<div>
<b style="font-family: verdana, sans-serif;"><span style="color: #0b5394;">SalesforceKid</span></b></div>
<div>
<span face="verdana, sans-serif">----------------------------------------------</span></div>
<div>
<span face="verdana, sans-serif"><br /></span></div>
<div>
<span face="verdana, sans-serif">As you can see in the Output, We have passed the value '</span><b style="font-family: verdana, sans-serif;"><span style="color: #0b5394;">SalesforceKid</span></b><span face="verdana, sans-serif">' from a parent component first. Then we used <b>@api </b>in the child component's <b>.JS </b>file and Lastly we displayed the value on child component's <b>.html </b>markup file.</span></div>
<div>
<span face="verdana, sans-serif"><br /></span></div>
<div>
<span face="verdana, sans-serif">This is the pattern to be followed when we need to pass value from parent to child component.</span></div>
<div>
<span face="verdana, sans-serif"><br /></span></div>
<div>
<span face="verdana, sans-serif">Now, the question you might have </span></div>
<div>
<span face="verdana, sans-serif"><br /></span></div>
<div>
<span face="verdana, sans-serif" style="font-size: large;"><b>WHAT IF I CHNAGE THE DEFAULT VALUE FROM PARENT COMPONENT ?</b></span></div>
<div>
<span face="verdana, sans-serif">As @Api is <b>Public Reactive</b> property which means it's publically reactive. Hence, change in the value decorated with @Api from the source will immediately reflect on value.</span></div>
<div>
<span face="verdana, sans-serif"><br /></span></div>
<div>
<span face="verdana, sans-serif">To demonstrate this immediate reflection of value change now we will move ahead with our wonderful Hands-on demonstration.</span></div>
<div>
<span face="verdana, sans-serif"><br /></span></div>
<div>
<span face="verdana, sans-serif"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiULVe5BrnVyhfYSPgxFw5VbPgnsVSC9wqtyDCfRgJkDJkOxL3jGTBA7npmwtRLdLb7cj5JIXmyomh7Bu_bczKou_DSEaNk6luc2TUXa3LILyuM-i_Fa-Y2ClRNfzrnycNNp1-uOoTJJXU/s1600/Screenshot+2020-07-31+at+11.42.38+PM.png"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiULVe5BrnVyhfYSPgxFw5VbPgnsVSC9wqtyDCfRgJkDJkOxL3jGTBA7npmwtRLdLb7cj5JIXmyomh7Bu_bczKou_DSEaNk6luc2TUXa3LILyuM-i_Fa-Y2ClRNfzrnycNNp1-uOoTJJXU/s1600/Screenshot+2020-07-31+at+11.42.38+PM.png" /></a></span></div>
<div>
<span face="verdana, sans-serif"><br /></span></div>
<div>
<span face="verdana, sans-serif">As you can see in the above picture we are going to create the two-component where we will control the speed of windmill (Child Component) by changing the value from the input box (Parent Component) on immediate reaction basis.</span><br />
<span face="verdana, sans-serif"><br /></span>
<span face="verdana, sans-serif">Are you ready Kid ?</span></div>
<div>
<br /></div>
<div>
<span face="verdana, sans-serif" style="font-size: large;"><b>LOGIC BEHIND IT 💡?</b></span><br />
<span face="verdana, sans-serif">So the logic I have used in this demonstration is like this, Whenever we are increasing the value from Input box (Parent) we will pass that value changed by the user to WindMill (Child). Then by using this value we will decrease the speed of WindMill.</span><br />
<span face="verdana, sans-serif"><br /></span>
<span face="verdana, sans-serif">So Let's get started.....</span><br />
<span face="verdana, sans-serif"><br /></span>
<span face="verdana, sans-serif"><b>NOTE</b> : In the below demonstration I am previewing my LWC in Local Development Server</span><br />
<span face="verdana, sans-serif"><br /></span>
<br />
<div style="background: 0px 0px rgb(255, 255, 255); border: 0px; font-family: roboto, sans-serif; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">
<span face="verdana, sans-serif" style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><b style="background: 0px 0px; border: 0px; color: #5e5e5e; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">To Install Local development</b> <span style="background: 0px 0px; border: 0px; color: #660000; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">(newly release)</span><span style="color: black;"> setup in vs code to preview your components locally.</span></span></div>
<div style="background: 0px 0px rgb(255, 255, 255); border: 0px; color: #5e5e5e; font-family: roboto, sans-serif; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">
<span face="verdana, sans-serif" style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><br style="outline: 0px; transition: all 0.3s ease 0s;" /></span></div>
<div style="background: 0px 0px rgb(255, 255, 255); border: 0px; font-family: roboto, sans-serif; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">
<span face="verdana, sans-serif" style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">To do this just <b style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">open your terminal in VS code</b> and <b style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">run</b> below two <b style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">commands</b> </span></div>
<div style="background: 0px 0px rgb(255, 255, 255); border: 0px; color: #5e5e5e; font-family: roboto, sans-serif; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">
<span face="verdana, sans-serif" style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><br style="outline: 0px; transition: all 0.3s ease 0s;" /></span></div>
<div style="background: 0px 0px rgb(255, 255, 255); border: 0px; font-family: roboto, sans-serif; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">
<span face="verdana, sans-serif" style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><b style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><span style="color: black;">command 1 :</span></b></span></div>
<div style="background: 0px 0px rgb(255, 255, 255); border: 0px; font-family: roboto, sans-serif; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">
<span face="verdana, sans-serif" style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><span style="color: black;">------------------------------------------------------------</span></span></div>
<div style="background: 0px 0px rgb(255, 255, 255); border: 0px; color: #5e5e5e; font-family: roboto, sans-serif; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">
<b style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><code class="VisualForce plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial; background-image: initial !important; background-origin: initial !important; background-position: 0px 0px; background-repeat: initial !important; background-size: initial !important; background: 0px 0px; border-radius: 0px; border: 0px; bottom: auto; box-sizing: content-box; float: none; font-size: 14px; height: auto; left: auto; line-height: 1.1em; margin: 0px; min-height: auto; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; transition: all 0.3s ease 0s; vertical-align: baseline; white-space: pre; width: auto;">sfdx plugins:install </code><code class="VisualForce color1" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial; background-image: initial !important; background-origin: initial !important; background-position: 0px 0px; background-repeat: initial !important; background-size: initial !important; background: 0px 0px; border-radius: 0px; border: 0px; bottom: auto; box-sizing: content-box; color: grey; float: none; font-size: 14px; height: auto; left: auto; line-height: 1.1em; margin: 0px; min-height: auto; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; transition: all 0.3s ease 0s; vertical-align: baseline; white-space: pre; width: auto;">@salesforce</code><code class="VisualForce plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial; background-image: initial !important; background-origin: initial !important; background-position: 0px 0px; background-repeat: initial !important; background-size: initial !important; background: 0px 0px; border-radius: 0px; border: 0px; bottom: auto; box-sizing: content-box; float: none; font-size: 14px; height: auto; left: auto; line-height: 1.1em; margin: 0px; min-height: auto; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; transition: all 0.3s ease 0s; vertical-align: baseline; white-space: pre; width: auto;">/lwc-dev-server</code><span face="verdana, sans-serif" style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"> </span></b></div>
<div style="background: 0px 0px rgb(255, 255, 255); border: 0px; font-family: roboto, sans-serif; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">
<span face="verdana, sans-serif" style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><span style="color: black;">------------------------------------------------------------</span></span></div>
<div style="background: 0px 0px rgb(255, 255, 255); border: 0px; color: #5e5e5e; font-family: roboto, sans-serif; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">
<span face="verdana, sans-serif" style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><br style="outline: 0px; transition: all 0.3s ease 0s;" /></span></div>
<div style="background: 0px 0px rgb(255, 255, 255); border: 0px; font-family: roboto, sans-serif; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">
<div style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">
<span face="verdana, sans-serif" style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><b style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><span style="color: black;">command 2 :</span></b></span></div>
<div style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">
<span face="verdana, sans-serif" style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><span style="color: black;">------------------------------------------------------------</span></span></div>
<div style="background: 0px 0px; border: 0px; color: #5e5e5e; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">
<b style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><code class="VisualForce plain" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial; background-image: initial !important; background-origin: initial !important; background-position: 0px 0px; background-repeat: initial !important; background-size: initial !important; background: 0px 0px; border-radius: 0px; border: 0px; bottom: auto; box-sizing: content-box; float: none; font-size: 14px; height: auto; left: auto; line-height: 1.1em; margin: 0px; min-height: auto; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; transition: all 0.3s ease 0s; vertical-align: baseline; white-space: pre; width: auto;">sfdx force:lightning:lw</code><code class="VisualForce vfTag" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial; background-image: initial !important; background-origin: initial !important; background-position: 0px 0px; background-repeat: initial !important; background-size: initial !important; background: 0px 0px; border-radius: 0px; border: 0px; bottom: auto; box-sizing: content-box; float: none; font-size: 14px; height: auto; left: auto; line-height: 1.1em; margin: 0px; min-height: auto; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; transition: all 0.3s ease 0s; vertical-align: baseline; white-space: pre; width: auto;">c</code><code class="VisualForce vfTag" style="background-attachment: initial !important; background-clip: initial !important; background-color: initial; background-image: initial !important; background-origin: initial !important; background-position: 0px 0px; background-repeat: initial !important; background-size: initial !important; background: 0px 0px; border-radius: 0px; border: 0px; bottom: auto; box-sizing: content-box; color: #3f7f7f; float: none; font-size: 14px; height: auto; left: auto; line-height: 1.1em; margin: 0px; min-height: auto; outline: 0px; overflow: visible; padding: 0px; position: static; right: auto; top: auto; transition: all 0.3s ease 0s; vertical-align: baseline; white-space: pre; width: auto;">:start</code></b></div>
<div style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">
<span face="verdana, sans-serif" style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><span style="color: black;">------------------------------------------------------------</span></span></div>
</div>
<div style="background: 0px 0px rgb(255, 255, 255); border: 0px; color: #5e5e5e; font-family: roboto, sans-serif; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">
<span face="verdana, sans-serif" style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><br style="outline: 0px; transition: all 0.3s ease 0s;" /></span></div>
<div style="background: 0px 0px rgb(255, 255, 255); border: 0px; font-family: roboto, sans-serif; font-size: 15px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">
<span face="verdana, sans-serif" style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><span style="color: black;">and that's now you can display your</span> <b style="background: 0px 0px; border: 0px; color: #5e5e5e; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">preview </b></span><span face="verdana, sans-serif" style="background: 0px 0px; border: 0px; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;"><b style="background: 0px 0px; border: 0px; color: #666666; margin: 0px; outline: 0px; padding: 0px; transition: all 0.3s ease 0s; vertical-align: baseline;">localhost:3333 </b><span style="color: black;">port in your browser.</span></span></div>
<span face="verdana, sans-serif"><br /></span>
<span face="verdana, sans-serif"><b><span style="font-size: large;">STEP 1 :</span></b></span><br />
<br />
<span face="verdana, sans-serif">Let's create Parent LWC Component in <b>VS Code</b> called as <b>parentToChild.</b></span><br />
<span face="verdana, sans-serif"><b><br /></b></span>
<span face="verdana, sans-serif">Then follow the below code :</span><br />
<span face="verdana, sans-serif"><br /></span>
<span face="verdana, sans-serif"><b>parentToChild.html</b></span><br />
<span face="verdana, sans-serif" style="background-color: white; font-size: 15px;">------------------------------------------------------------</span><br />
<div style="background-color: #1e1e1e; font-family: menlo, monaco, "courier new", monospace; font-size: 12px; line-height: 18px; white-space: pre;">
<div style="color: #d4d4d4;">
<b><span style="color: grey;"><</span><span style="color: #569cd6;">template</span><span style="color: grey;">></span></b></div>
<div style="color: #d4d4d4;">
<b> <span style="color: grey;"><</span><span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">title</span>=<span style="color: #ce9178;">"ApiProperty"</span> </b></div>
<div style="color: #d4d4d4;">
<b><span style="color: #9cdcfe;"> style</span>=<span style="color: #ce9178;">"background:#6e7db8; </span></b></div>
<div style="color: #d4d4d4;">
<span style="color: #ce9178;"><b> width:50rem; </b></span></div>
<div style="color: #d4d4d4;">
<b><span style="color: #ce9178;"> height:22rem;"</span><span style="color: grey;">></span></b></div>
<div>
<b><span style="color: #d4d4d4;"> </span><span style="color: grey;"><</span><span style="color: #569cd6;">div</span><span style="color: #d4d4d4;"> </span><span style="color: #9cdcfe;">style</span><span style="color: #d4d4d4;">=</span><span style="color: #ce9178;">"font-weight: bold; </span></b></div>
<div style="color: #d4d4d4;">
<span style="color: #ce9178;"><b> font-size: 2rem; </b></span></div>
<div style="color: #d4d4d4;">
<span style="color: #ce9178;"><b> color:#fec700; </b></span></div>
<div style="color: #d4d4d4;">
<b><span style="color: #ce9178;"> text-align: center;"</span><span style="color: grey;">></span></b></div>
<div style="color: #d4d4d4;">
<b> PARENT TO CHILD</b></div>
<div style="color: #d4d4d4;">
<b> <span style="color: grey;"></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></b></div>
<div style="color: #d4d4d4;">
<b> <span style="color: grey;"><</span><span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">style</span>=<span style="color: #ce9178;">"margin:5px; font-size: 1.1rem; color:white;"</span><span style="color: grey;">></span></b></div>
<div style="color: #d4d4d4;">
<b> Increase the value to slow down the fan</b></div>
<div style="color: #d4d4d4;">
<b> <span style="color: grey;"><</span><span style="color: #569cd6;">span</span> <span style="color: #9cdcfe;">style</span>=<span style="color: #ce9178;">"font-weight: bold; "</span><span style="color: grey;">></span>[Parent]<span style="color: grey;"></</span><span style="color: #569cd6;">span</span><span style="color: grey;">></span></b></div>
<div>
<div style="color: #d4d4d4;">
<b><span style="color: grey;"> </</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></b></div>
<b><span style="color: #e69138;"><!-- Below is Input field on Parent Component --></span></b></div>
<div style="color: #d4d4d4;">
<b> <span style="color: grey;"><</span><span style="color: #569cd6;">lightning-input</span> </b></div>
<div style="color: #d4d4d4;">
<b> <span style="color: #9cdcfe;">label</span>=<span style="color: #ce9178;">" "</span> </b></div>
<div style="color: #d4d4d4;">
<b> <span style="color: #9cdcfe;">type</span>=<span style="color: #ce9178;">"number"</span> </b></div>
<div style="color: #d4d4d4;">
<b> <span style="color: #9cdcfe;">min</span>=<span style="color: #ce9178;">"0"</span> </b></div>
<div style="color: #d4d4d4;">
<b> <span style="color: #9cdcfe;">max</span>=<span style="color: #ce9178;">"100"</span> </b></div>
<div style="color: #d4d4d4;">
<b> <span style="color: #9cdcfe;">value</span>=<span style="color: #ce9178;">{percentage}</span> </b></div>
<div style="color: #d4d4d4;">
<b> <span style="color: #9cdcfe;">onchange</span>=<span style="color: #ce9178;">{handlePercentageChange}</span></b></div>
<div style="color: #d4d4d4;">
<b> <span style="color: #9cdcfe;">style</span>=<span style="color: #ce9178;">"margin: 7px; width:100px;"</span><span style="color: grey;">></span></b></div>
<div style="color: #d4d4d4;">
<b> <span style="color: grey;"></</span><span style="color: #569cd6;">lightning-input</span><span style="color: grey;">></span></b><br />
<b style="color: black;"><span style="color: #e69138;"><!-- Below is the Child Component --></span></b></div>
<div style="color: #d4d4d4;">
<b> <span style="color: grey;"><</span><span style="color: #569cd6;">c-child-fan</span> <span style="color: #9cdcfe;">percentage</span>=<span style="color: #ce9178;">{percentage}</span><span style="color: grey;">></</span><span style="color: #569cd6;">c-child-fan</span><span style="color: grey;">></span></b></div>
<div>
<b><span style="color: #d4d4d4;"> </span><span style="color: grey;"></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></b></div>
<div style="color: #d4d4d4;">
<b><span style="color: grey;"></</span><span style="color: #569cd6;">template</span><span style="color: grey;">></span></b></div>
</div>
<span face="verdana, sans-serif" style="background-color: white; font-size: 15px;">------------------------------------------------------------</span><br />
<span face="verdana, sans-serif" style="background-color: white; font-size: 15px;"><br /></span>
<span face="verdana, sans-serif" style="background-color: white; font-size: 15px;">In the above Parent component <b>.html</b> markup the important thing to be noticed is the child component included<b> </b></span><br />
<span style="font-size: 15px;"><b><span style="font-family: "courier new", courier, monospace;"><<span style="color: #073763;">c-child-fan</span> <span style="color: #0b5394;">percentage</span>=<span style="color: #b45f06;">{percentage}</span>></<span style="color: #073763;">c-child-fan</span>> </span></b></span><br />
<span style="font-size: 15px;"><b><span style="font-family: "courier new", courier, monospace;"><br /></span></b></span>
<span face="verdana, sans-serif"><span style="font-size: 15px;">Where we are passing the <b>percentage </b>of the WindMill fan speed need to increase or decrease gotcha !!</span></span><br />
<span face="verdana, sans-serif"><span style="font-size: 15px;"><br /></span></span>
<span face="verdana, sans-serif"><span style="font-size: 15px;">I have also defined the <b>lightning-input</b> to handle the value change from the user and used the HTML browser events like <b>onchange </b>event I have used in the above code.</span></span><br />
<span face="verdana, sans-serif"><span style="font-size: 15px;"><br /></span></span>
<span face="verdana, sans-serif"><span style="font-size: 15px;">Let's take a look at how we are setting up this value in <b>.JS </b>file.</span></span><br />
<br />
<span face="verdana, sans-serif"><b>parentToChild.js</b></span><br />
<span face="verdana, sans-serif" style="background-color: white; font-size: 15px;">------------------------------------------------------------</span><br />
<div style="background-color: #1e1e1e; color: #d4d4d4; font-family: menlo, monaco, "courier new", monospace; font-size: 12px; line-height: 18px; white-space: pre;">
<div>
<b><span style="color: #569cd6;">import</span> { LightningElement } <span style="color: #569cd6;">from</span> <span style="color: #ce9178;">'lwc'</span>;</b></div>
<b><br /></b>
<br />
<div>
<b><span style="color: #569cd6;">export</span> <span style="color: #569cd6;">default</span> <span style="color: #569cd6;">class</span> parentToChild <span style="color: #569cd6;">extends</span> LightningElement</b></div>
<div>
<b>{</b></div>
<div>
<b> percentage = <span style="color: #b5cea8;">1</span>;</b></div>
<div>
<b> handlePercentageChange(event){</b></div>
<div>
<b> <span style="color: #569cd6;">const</span> percentage = event.target.value;</b></div>
<div>
<b> <span style="color: #569cd6;">this</span>.percentage = percentage <= <span style="color: #b5cea8;">100</span> ? percentage : <span style="color: #b5cea8;">100</span>;</b></div>
<div>
<b> }</b></div>
<div>
<b>}</b></div>
</div>
<span face="verdana, sans-serif" style="background-color: white; font-size: 15px;">------------------------------------------------------------</span><br />
<span face="verdana, sans-serif" style="background-color: white; font-size: 15px;"><br /></span><span face="verdana, sans-serif" style="background-color: white; font-size: 15px;">In the above <b>.JS </b>file you can observe that <b>percentage</b> default value is <b>1</b> and then by using <b>handlePercentageChange </b>method is handling the value <b>change </b>by the user in it as well as assigning it to <b>percentage </b>attribute.</span><br />
<span face="verdana, sans-serif" style="background-color: white; font-size: 15px;">Next line to that is to check whether the user is exceeding the value more than 100 to show him a warning 🚨.</span><br />
<span face="verdana, sans-serif" style="background-color: white; font-size: 15px;"><br /></span><span face="verdana, sans-serif" style="background-color: white; font-size: 15px;">That's it from parent component. Now let's take a look at the child component.</span><br />
<span face="verdana, sans-serif" style="background-color: white; font-size: 15px;"><br /></span>
<span face="verdana, sans-serif" style="background-color: white; font-size: large;"><b>STEP 2 :</b></span><br />
<span face="verdana, sans-serif" style="background-color: white; font-size: 15px;"><b><br /></b></span>
<span face="verdana, sans-serif" style="background-color: white; font-size: 15px;">Create the new child lightning web component called as <b>childFan </b>in your VS Code.</span><br />
<span face="verdana, sans-serif" style="background-color: white; font-size: 15px;"><br /></span>
<span face="verdana, sans-serif" style="background-color: white; font-size: 15px;">And follow the below code :</span><br />
<span face="verdana, sans-serif" style="background-color: white; font-size: 15px;"><br /></span>
<span face="verdana, sans-serif"><b>childFan.html</b></span><br />
<span face="verdana, sans-serif" style="background-color: white; font-size: 15px;">------------------------------------------------------------</span><br />
<div style="background-color: #1e1e1e; color: #d4d4d4; font-family: menlo, monaco, "courier new", monospace; font-size: 12px; line-height: 18px; white-space: pre;">
<div>
<b><span style="color: grey;"><</span><span style="color: #569cd6;">template</span><span style="color: grey;">></span></b></div>
<div>
<b> <span style="color: grey;"><</span><span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">id</span>=<span style="color: #ce9178;">"cont"</span><span style="color: grey;">></span></b></div>
<div>
<b> <span style="color: grey;"><</span><span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"top"</span><span style="color: grey;">></span></b></div>
<div>
<b> <span style="color: grey;"><</span><span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"dome"</span><span style="color: grey;">></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></b><br />
<b style="color: black;"><span style="color: #e69138;"><!--In {style} we are using value passed from parent--></span></b></div>
<div>
<b> <span style="color: grey;"><</span><span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"fan"</span> <span style="color: #9cdcfe;">style</span>=<span style="color: #ce9178;">{style}</span><span style="color: grey;">></span></b></div>
<div>
<b> <span style="color: grey;"><</span><span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"fan_blade1"</span><span style="color: grey;">></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></b></div>
<div>
<b> <span style="color: grey;"><</span><span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"fan_blade2"</span><span style="color: grey;">></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></b></div>
<div>
<b> <span style="color: grey;"><</span><span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"fan_blade3"</span><span style="color: grey;">></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></b></div>
<div>
<b> <span style="color: grey;"><</span><span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"fan_blade4"</span><span style="color: grey;">></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></b></div>
<div>
<b> <span style="color: grey;"></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></b></div>
<div>
<b> <span style="color: grey;"><</span><span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"mill"</span><span style="color: grey;">></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></b></div>
<div>
<b> <span style="color: grey;"></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></b></div>
<div>
<b> <span style="color: grey;"><</span><span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"floor"</span><span style="color: grey;">></span></b><b><span style="color: grey;"></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></b></div>
<div>
<b> <span style="color: grey;"></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></b></div>
<div>
<b> <span style="color: grey;"><</span><span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"bottom"</span><span style="color: grey;">></span></b></div>
<div>
<b> <span style="color: grey;"><</span><span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"dome"</span><span style="color: grey;">></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></b><br />
<b style="color: black;"><span style="color: #e69138;"><!--In {style} we are using value passed from parent--></span></b></div>
<div>
<b> <span style="color: grey;"><</span><span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"fan"</span> <span style="color: #9cdcfe;">style</span>=<span style="color: #ce9178;">{style}</span><span style="color: grey;">></span></b></div>
<div>
<b> <span style="color: grey;"><</span><span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"fan_blade1"</span><span style="color: grey;">></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></b></div>
<div>
<b> <span style="color: grey;"><</span><span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"fan_blade2"</span><span style="color: grey;">></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></b></div>
<div>
<b> <span style="color: grey;"><</span><span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"fan_blade3"</span><span style="color: grey;">></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></b></div>
<div>
<b> <span style="color: grey;"><</span><span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"fan_blade4"</span><span style="color: grey;">></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></b></div>
<div>
<b> <span style="color: grey;"></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></b></div>
<div>
<b> <span style="color: grey;"><</span><span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"mill"</span><span style="color: grey;">></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></b></div>
<div>
<b> <span style="color: grey;"></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></b></div>
<div>
<b> <span style="color: grey;"><</span><span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"floor"</span><span style="color: grey;">></span></b><b><span style="color: grey;"></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></b></div>
<div>
<b> <span style="color: grey;"></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></b></div>
<div>
<b> <span style="color: grey;"></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></b></div>
<div>
<b> <span style="color: grey;"><</span><span style="color: #569cd6;">span</span> <span style="color: #9cdcfe;">style</span>=<span style="color: #ce9178;">"color: white;</span></b></div>
<div>
<span style="color: #ce9178;"><b> position:absolute;</b></span></div>
<div>
<span style="color: #ce9178;"><b> left: 71.5%;</b></span></div>
<div>
<span style="color: #ce9178;"><b> top: 44%;</b></span></div>
<div>
<span style="color: #ce9178;"><b> font-weight:bold;</b></span></div>
<div>
<b><span style="color: #ce9178;"> font-size:1rem;"</span><span style="color: grey;">></span></b></div>
<div>
<b> [Child]</b></div>
<div>
<b> <span style="color: grey;"></</span><span style="color: #569cd6;">span</span><span style="color: grey;">></span></b></div>
<div>
<b><span style="color: grey;"></</span><span style="color: #569cd6;">template</span><span style="color: grey;">></span></b></div>
</div>
<span face="verdana, sans-serif" style="background-color: white; font-size: 15px;">------------------------------------------------------------</span><br />
<span face="verdana, sans-serif" style="background-color: white; font-size: 15px;"><br /></span>
<span face="verdana, sans-serif" style="background-color: white; font-size: 15px;">In the above code, All the markup code is to define the structure of our WindMill. Like you can in the first picture before starting this hands-on we have <b>dome</b> of the WindMill, <b>Floor </b>of the WindMill, <b>Fan </b>of the WindMill and <b>Mill </b>itself as well.</span><br />
<span face="verdana, sans-serif" style="background-color: white; font-size: 15px;"><br /></span>
<span face="verdana, sans-serif"><span style="background-color: white; font-size: 15px;">The value passed by the parent will be used as <b>{style} </b>as an inline CSS based on which we are slowing down or increase the speed of the fan</span></span><br />
<span face="verdana, sans-serif" style="background-color: white; font-size: 15px;"><br /></span>
<span face="verdana, sans-serif" style="background-color: white; font-size: 15px;"><b>NOTE</b>: All the designing of these individual parts are defined by using <b>CSS </b>file which we will see after the <b>.JS </b>JavaScript file.</span><br />
<span face="verdana, sans-serif" style="background-color: white; font-size: 15px;"><br /></span><span face="verdana, sans-serif">Let's take a look at how we are assigning the value passed from the <b>percentage </b>attribute<b> </b>and assigning it to <b>style</b>.</span><br />
<span face="verdana, sans-serif"><b><br /></b></span>
<span face="verdana, sans-serif"><b>childFan.js</b></span><br />
<span face="verdana, sans-serif" style="background-color: white; font-size: 15px;">------------------------------------------------------------</span><br />
<div style="background-color: #1e1e1e; color: #d4d4d4; font-family: menlo, monaco, "courier new", monospace; font-size: 12px; line-height: 18px; white-space: pre;">
<div>
<b><span style="color: #569cd6;">import</span> { LightningElement, api } <span style="color: #569cd6;">from</span> <span style="color: #ce9178;">'lwc'</span>;</b></div>
<div>
<b><span style="color: #569cd6;">export</span> <span style="color: #569cd6;">default</span> <span style="color: #569cd6;">class</span> childFan <span style="color: #569cd6;">extends</span> LightningElement</b></div>
<div>
<b>{</b></div>
<div>
<b> @api percentage;</b></div>
<div>
<b> <span style="color: #569cd6;">get</span> style() {</b></div>
<div>
<b> <span style="color: #569cd6;">return</span> <span style="color: #ce9178;">`animation-duration: </span><span style="color: #569cd6;">${</span><span style="color: #569cd6;">this</span>.percentage<span style="color: #569cd6;">}</span><span style="color: #ce9178;">s`</span>; </b></div>
<div>
<b> }</b></div>
<div>
<b>}</b></div>
</div>
<span face="verdana, sans-serif" style="background-color: white; font-size: 15px;">------------------------------------------------------------</span><br />
<span face="verdana, sans-serif" style="background-color: white; font-size: 15px;"><br /></span>
<span face="verdana, sans-serif"><span style="background-color: white; font-size: 15px;">As discussed In the Syntax we have imported <b>@api </b>first in import and then we are accessing it below by using <b>@api percentage.</b></span></span><br />
<span face="verdana, sans-serif"><span style="background-color: white; font-size: 15px;">In the next line by using the getter method (<b>get style()</b>) we are updating the <b>animation-duration </b>in the style with the <b>percentage <span style="color: #b45f06;">s</span>econds</b>.</span></span><br />
<span face="verdana, sans-serif"><span style="background-color: white; font-size: 15px;"><br /></span></span>
<span face="verdana, sans-serif"><span style="background-color: white; font-size: 15px;">Like for example user is entering <b>10</b> from parent component then the duration becomes <b>10s</b> here in a child component. Higher the duration slower the moment of the Fan and vice versa.</span></span><br />
<span face="verdana, sans-serif"><span style="background-color: white; font-size: 15px;"><br /></span></span>
<span face="verdana, sans-serif"><span style="background-color: white; font-size: 15px;">We need to create the <b>CSS </b>file seperately in the same lightning component bundle of <b>childFan </b>component (Right-click and select create a new file and put the name as <b>childFan.css</b>).</span></span><br />
<span face="verdana, sans-serif"><span style="background-color: white; font-size: 15px;"><br /></span></span>
<span face="verdana, sans-serif"><span style="background-color: white; font-size: 15px;">And follow the little advance <b>.css styling </b>(I personally love designing 😉) as below :</span></span><br />
<span face="verdana, sans-serif" style="background-color: white; font-size: 15px;"><br /></span>
<span face="verdana, sans-serif"><b>childFan.css</b></span><br />
<span face="verdana, sans-serif" style="background-color: white; font-size: 15px;">------------------------------------------------------------</span><br />
<div style="background-color: #1e1e1e; color: #d4d4d4; font-family: menlo, monaco, "courier new", monospace; font-size: 12px; line-height: 18px; white-space: pre;">
<div>
<b><span style="color: #d7ba7d;">body</span>{</b></div>
<div>
<b> <span style="color: #9cdcfe;">background-color</span>:white;</b></div>
<div>
<b> }</b></div>
<div>
<b> <span style="color: #d7ba7d;">span</span>{</b></div>
<div>
<b> <span style="color: #9cdcfe;">display</span>:inline-block;</b></div>
<div>
<b> }</b></div>
<div>
<b> <span style="color: #d7ba7d;">.floor</span>{</b></div>
<div>
<b> <span style="color: #9cdcfe;">background-color</span>:#1E2D49;</b></div>
<div>
<b> <span style="color: #9cdcfe;">width</span>:<span style="color: #b5cea8;">468px</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">margin-left</span>:<span style="color: #b5cea8;">178px</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">position</span>:absolute;</b></div>
<div>
<b> <span style="color: #9cdcfe;">height</span>:<span style="color: #b5cea8;">38px</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">margin-top</span>:<span style="color: #b5cea8;">169px</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">z-index</span>:<span style="color: #b5cea8;">0</span>;</b></div>
<div>
<b> }</b></div>
<div>
<b> <span style="color: #d7ba7d;">.mill</span>{</b></div>
<div>
<b> <span style="color: #9cdcfe;">background-color</span>:#1E2D49;</b></div>
<div>
<b> <span style="color: #9cdcfe;">width</span>: <span style="color: #b5cea8;">50px</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">height</span>: <span style="color: #b5cea8;">140px</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">transform</span>: perspective(<span style="color: #b5cea8;">12px</span>) rotateX(<span style="color: #b5cea8;">3deg</span>);</b></div>
<div>
<b> <span style="color: #9cdcfe;">position</span>:absolute;</b></div>
<div>
<b> <span style="color: #9cdcfe;">z-index</span>:<span style="color: #b5cea8;">3</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">margin-left</span>:<span style="color: #b5cea8;">550px</span>;</b></div>
<div>
<b> }</b></div>
<div>
<b> <span style="color: #d7ba7d;">.mill::before</span>{</b></div>
<div>
<b> <span style="color: #9cdcfe;">content</span>:<span style="color: #ce9178;">""</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">background-color</span>:#FDC500;</b></div>
<div>
<b> <span style="color: #9cdcfe;">width</span>:<span style="color: #b5cea8;">20px</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">height</span>:<span style="color: #b5cea8;">20px</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">position</span>:absolute;</b></div>
<div>
<b> <span style="color: #9cdcfe;">margin-left</span>:<span style="color: #b5cea8;">15px</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">margin-top</span>:<span style="color: #b5cea8;">35px</span>;</b></div>
<div>
<b> }</b></div>
<div>
<b> <span style="color: #d7ba7d;">.mill::after</span>{</b></div>
<div>
<b> <span style="color: #9cdcfe;">content</span>:<span style="color: #ce9178;">""</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">background-color</span>:#FDC500;</b></div>
<div>
<b> <span style="color: #9cdcfe;">width</span>:<span style="color: #b5cea8;">20px</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">height</span>:<span style="color: #b5cea8;">25px</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">position</span>:absolute;</b></div>
<div>
<b> <span style="color: #9cdcfe;">margin-left</span>:<span style="color: #b5cea8;">15px</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">margin-top</span>:<span style="color: #b5cea8;">70px</span>;</b></div>
<div>
<b> }</b></div>
<div>
<b> <span style="color: #d7ba7d;">.dome</span>{</b></div>
<div>
<b> <span style="color: #9cdcfe;">background-color</span>:#1E2D49;</b></div>
<div>
<b> <span style="color: #9cdcfe;">width</span>:<span style="color: #b5cea8;">35px</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">height</span>:<span style="color: #b5cea8;">35px</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">position</span>:absolute;</b></div>
<div>
<b> <span style="color: #9cdcfe;">transform-origin</span>: <span style="color: #b5cea8;">0</span> <span style="color: #b5cea8;">100%</span>; </b></div>
<div>
<b> <span style="color: #9cdcfe;">transform</span>: rotate(<span style="color: #b5cea8;">45deg</span>);</b></div>
<div>
<b> <span style="color: #9cdcfe;">overflow</span>:hidden;</b></div>
<div>
<b> <span style="color: #9cdcfe;">margin-left</span>:<span style="color: #b5cea8;">551px</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">margin-top</span>:<span style="color: #b5cea8;">-23px</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">z-index</span>:<span style="color: #b5cea8;">4</span>;</b></div>
<div>
<b> }</b></div>
<div>
<b> <span style="color: #d7ba7d;">.fan</span>{</b></div>
<div>
<b> <span style="color: #9cdcfe;">background-color</span>:#37475E;<span style="color: #6a9955;">/*37475E */</span></b></div>
<div>
<b> <span style="color: #9cdcfe;">width</span>:<span style="color: #b5cea8;">10px</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">height</span>:<span style="color: #b5cea8;">10px</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">border-radius</span>:<span style="color: #b5cea8;">100%</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">position</span>:absolute;</b></div>
<div>
<b> <span style="color: #9cdcfe;">margin-left</span>:<span style="color: #b5cea8;">573px</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">z-index</span>:<span style="color: #b5cea8;">7</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">animation-name</span>:rotate_fan;</b></div>
<div>
<b> <span style="color: #9cdcfe;">animation-iteration-count</span>:infinite;</b></div>
<div>
<b> }</b></div>
<div>
<b> <span style="color: #d7ba7d;">.fan_blade1</span>, <span style="color: #d7ba7d;">.fan_blade2</span>, <span style="color: #d7ba7d;">.fan_blade3</span>, <span style="color: #d7ba7d;">.fan_blade4</span>{</b></div>
<div>
<b> <span style="color: #9cdcfe;">background-color</span>:#37475E;</b></div>
<div>
<b> <span style="color: #9cdcfe;">width</span>:<span style="color: #b5cea8;">4px</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">height</span>:<span style="color: #b5cea8;">60px</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">position</span>:absolute;</b></div>
<div>
<b> <span style="color: #9cdcfe;">z-index</span>:<span style="color: #b5cea8;">6</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">margin-left</span>:<span style="color: #b5cea8;">35px</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">margin-top</span>:<span style="color: #b5cea8;">-28px</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">border-left</span>:<span style="color: #b5cea8;">1.5px</span> solid black;</b></div>
<div>
<b> <span style="color: #9cdcfe;">border-top</span>:<span style="color: #b5cea8;">1px</span> solid black;</b></div>
<div>
<b> <span style="color: #9cdcfe;">transform</span>:rotate(<span style="color: #b5cea8;">90deg</span>);</b></div>
<div>
<b> }</b></div>
<div>
<b> <span style="color: #d7ba7d;">.fan_blade2</span>{</b></div>
<div>
<b> <span style="color: #9cdcfe;">transform</span>:rotate(<span style="color: #b5cea8;">180deg</span>);</b></div>
<div>
<b> <span style="color: #9cdcfe;">margin-left</span>:<span style="color: #b5cea8;">1px</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">margin-top</span>:<span style="color: #b5cea8;">5px</span>;</b></div>
<div>
<b> }</b></div>
<div>
<b> <span style="color: #d7ba7d;">.fan_blade3</span>{</b></div>
<div>
<b> <span style="color: #9cdcfe;">transform</span>:rotate(<span style="color: #b5cea8;">360deg</span>);</b></div>
<div>
<b> <span style="color: #9cdcfe;">margin-left</span>:<span style="color: #b5cea8;">3px</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">margin-top</span>:<span style="color: #b5cea8;">-60px</span>;</b></div>
<div>
<b> }</b></div>
<div>
<b> <span style="color: #d7ba7d;">.fan_blade4</span>{</b></div>
<div>
<b> <span style="color: #9cdcfe;">transform</span>:rotate(<span style="color: #b5cea8;">270deg</span>);</b></div>
<div>
<b> <span style="color: #9cdcfe;">margin-top</span>:<span style="color: #b5cea8;">-28px</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">margin-left</span>:<span style="color: #b5cea8;">-30px</span>;</b></div>
<div>
<b> }</b></div>
<div>
<b> <span style="color: #d7ba7d;">.fan_blade1::before</span>, <span style="color: #d7ba7d;">.fan_blade2::before</span>,</b></div>
<div>
<b> <span style="color: #d7ba7d;">.fan_blade3::before</span>, <span style="color: #d7ba7d;">.fan_blade4::before</span>{</b></div>
<div>
<b> <span style="color: #9cdcfe;">content</span>:<span style="color: #ce9178;">""</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">background-color</span>:transparent;</b></div>
<div>
<b> <span style="color: #9cdcfe;">width</span>:<span style="color: #b5cea8;">20px</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">height</span>:<span style="color: #b5cea8;">45px</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">margin-left</span>:<span style="color: #b5cea8;">5px</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">background-size</span>: <span style="color: #b5cea8;">10px</span> <span style="color: #b5cea8;">11px</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">background-image</span>: linear-gradient(to left,</b></div>
<div>
<b> white <span style="color: #b5cea8;">2px</span>, transparent <span style="color: #b5cea8;">1px</span>), </b></div>
<div>
<b> linear-gradient(to bottom, </b></div>
<div>
<b> white <span style="color: #b5cea8;">2px</span>, transparent <span style="color: #b5cea8;">1px</span>), </b></div>
<div>
<b> linear-gradient(to top,white <span style="color: #b5cea8;">1px</span>,transparent <span style="color: #b5cea8;">0px</span>);</b></div>
<div>
<b> <span style="color: #9cdcfe;">position</span>:absolute;</b></div>
<div>
<b> }</b></div>
<div>
<b> <span style="color: #569cd6;">@keyframes</span> rotate_fan{</b></div>
<div>
<b> from{</b></div>
<div>
<b> }</b></div>
<div>
<b> to{</b></div>
<div>
<b> <span style="color: #9cdcfe;">transform</span>:rotate(<span style="color: #b5cea8;">360deg</span>);</b></div>
<div>
<b> }</b></div>
<div>
<b> }</b></div>
<div>
</div>
</div>
<span face="verdana, sans-serif" style="background-color: white; font-size: 15px;">------------------------------------------------------------</span><br />
<span face="verdana, sans-serif" style="background-color: white; font-size: 15px;"><br /></span>
<br />
<span face="verdana, sans-serif">In the above file, we have defined the styling for each part of WindMill as well as the animation part where the animation duration we are defining based on the value entered in the input box by the user and using it in <b>{style} </b>to update that.</span><br />
<span face="verdana, sans-serif"><br /></span></div>
<div>
<span face="verdana, sans-serif" style="font-size: large;"><b>STEP 3 :</b></span><br />
<span face="verdana, sans-serif"><b><br /></b></span>
<span face="verdana, sans-serif">Now its time to check the output of this hands-on component right ??</span><br />
<span face="verdana, sans-serif"><br /></span>
<span face="verdana, sans-serif">for that just right-click on your <b>parentToChild</b> lightning web component and as we are using the local development server you will <b>SFDX: Preview Component Locally </b>and it will automatically open it in your browser tab.</span><br />
<span face="verdana, sans-serif"><br /></span>
<span face="verdana, sans-serif">---------------------------------------------------</span><br />
<span face="verdana, sans-serif"><br /></span>
<span face="verdana, sans-serif"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyV8n96QBir41rWjtvsfJKQ2wKLCdRx2Ald1xQ09Wd470LZ8MEum9oMCW9dutsWERoEACCMk0WqQ5XyG9LWlUq_qZnSwUKp2Z-w3oLr9Ib1ZBWXOGXrCfTETPAmQ5dpjjwGAPgv95qYnE/s1600/Screenshot+2020-08-01+at+6.12.10+PM.png"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyV8n96QBir41rWjtvsfJKQ2wKLCdRx2Ald1xQ09Wd470LZ8MEum9oMCW9dutsWERoEACCMk0WqQ5XyG9LWlUq_qZnSwUKp2Z-w3oLr9Ib1ZBWXOGXrCfTETPAmQ5dpjjwGAPgv95qYnE/s1600/Screenshot+2020-08-01+at+6.12.10+PM.png" /></a></span></div>
<div>
<span face="verdana, sans-serif"><br /></span></div>
<div>
<span face="verdana, sans-serif">---------------------------------------------------</span><br />
<span face="verdana, sans-serif"><br /></span>
<span face="verdana, sans-serif" style="font-size: large;"><b>OUTPUT PREVIEW :</b></span><br />
<span face="verdana, sans-serif">---------------------------------------------------</span><br />
<span face="verdana, sans-serif">The output preview will look like this :</span><br />
<span face="verdana, sans-serif"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen="" class="YOUTUBE-iframe-video" data-thumbnail-src="https://i.ytimg.com/vi/F69EkPnWheE/0.jpg" frameborder="0" height="266" src="https://www.youtube.com/embed/F69EkPnWheE?feature=player_embedded" width="320"></iframe></div>
<span face="verdana, sans-serif"><br /></span>
<span face="verdana, sans-serif">---------------------------------------------------</span></div>
<div>
<span face="verdana, sans-serif"><br /></span></div>
<div>
<span face="verdana, sans-serif">Wooooh !! worth spending time on it right Kid ? This is the best creative example of using the @API property and pass the value and accessing it. </span><br />
<span face="verdana, sans-serif">I hope you are enjoying this series 😊.</span><br />
<span face="verdana, sans-serif"><br /></span>
<span face="verdana, sans-serif"><b>WOHOOO !! YOU HAVE JUST COMPLETED @API PROPERTY IN LIGHTNING WEB COMPONENT (LWC)</b><span face="verdana, sans-serif"> <b>EPISODE</b></span></span><br />
<span face="verdana, sans-serif" style="background-color: white; font-size: 15px;">If you like this</span><span face="verdana, sans-serif" style="background-color: white; color: #5e5e5e; font-size: 15px;"> </span><a href="https://www.sfdckid.com/" style="font-family: verdana, sans-serif;"><b>SFDCkid</b></a><span face="verdana, sans-serif" style="background-color: white; color: #5e5e5e; font-size: 15px;"> </span><span face="verdana, sans-serif" style="background-color: white; font-size: 15px;">learning platform please let me know in the Comment section...Also, Share with your salesforce folks wish you all </span><span style="background-color: white; font-size: 15px;">⚡️</span><span face="verdana, sans-serif" style="background-color: white; font-size: 15px;"><b>Happy Learning</b> ☁️⚡️ (Learn. Help. Share.) 😊</span><span face="verdana, sans-serif"> </span></div><div>
<span face="verdana, sans-serif"><br /></span>
<span face="verdana, sans-serif"><b><a href="https://www.sfdckid.com/2020/06/component-composition-in-salesforce-lwc.html"><< PREVIOUS</a> <span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><span> </span><a href="https://www.sfdckid.com/2020/09/communicate-with-events-in-lwc.html">NEXT >></a></b></span><br />
<span face="verdana, sans-serif"><br /></span>
<span face="verdana, sans-serif"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhh2a2jKfdmYZCEd1mWzSTAasPa7-Vov_xR97E8IbV_CRg-GkSq0jsL9WK44DVm58WFF4vgMfGF0mHbFv8GyYmwQZl4ZWDuBsRzUWghIQISst5YgSNN2ROqJgjPzwdI9G_5uG7QJRLDVeg/s1600/blogBottom.jpg"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhh2a2jKfdmYZCEd1mWzSTAasPa7-Vov_xR97E8IbV_CRg-GkSq0jsL9WK44DVm58WFF4vgMfGF0mHbFv8GyYmwQZl4ZWDuBsRzUWghIQISst5YgSNN2ROqJgjPzwdI9G_5uG7QJRLDVeg/s1600/blogBottom.jpg" /></a></span><br />
<br /></div>
</div>
AJINKYA DHAS http://www.blogger.com/profile/13223328981950114267noreply@blogger.com4tag:blogger.com,1999:blog-8457518975744463615.post-18442391232150688862020-06-06T11:11:00.002-07:002020-08-01T06:40:31.276-07:00Component Composition In Salesforce Lightning Web Component (LWC)<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: center;">
<span style="font-family: "verdana" , sans-serif;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFsntcli_T6IT4hgUAXOzLbJH_ig32mhfoLmy82lw7m7zXSagogWVpP71x7-8mPznaYFcuEHadS6XONHcGzLZXMoGS3LfVPH5C-epVvpbAbnQytlvjqAisG-pYTBQdCgnks244YvjWqDI/s1600/ComponentCompositionLWC.jpg" imageanchor="1"><img alt="Component Composition In Salesforce Lightning Web Component (LWC)" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFsntcli_T6IT4hgUAXOzLbJH_ig32mhfoLmy82lw7m7zXSagogWVpP71x7-8mPznaYFcuEHadS6XONHcGzLZXMoGS3LfVPH5C-epVvpbAbnQytlvjqAisG-pYTBQdCgnks244YvjWqDI/s1600/ComponentCompositionLWC.jpg" title="Component Composition In Salesforce Lightning Web Component (LWC)" /></a></span></h2>
<h2 style="text-align: center;">
<span style="font-family: "verdana" , sans-serif;">Component Composition In LWC</span></h2>
<div>
<span style="font-family: "verdana" , sans-serif;">Hey Kid !! Welcome back ⚡️In the last EPISODE we discussed the cool way of conditional rendering in salesforce lightning web component by demonstrating the running car based on the toggle switch.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">In this EPISODE, we will discuss the component composition in LWC along with the cool demonstration.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Let's begin...</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Before moving to the actual scenario let's understand what exactly component composition means.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif; font-size: large;"><b>WHAT IS COMPONENT COMPOSITION ?</b></span></div>
<div>
<br /></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b>Composition </b>: Let's consider an example of Car, we all know Car is a product which consists of a car wheel, car body, car glasses etc. Now they all are manufactured or created in a different company.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Similarly, In our lightning application, we create such small-small reusable components separately and install them (compose them) inside another component. this concept is called as component composition.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Now, the obvious question is why to use other components inside the main component ?</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">So there are many <b>advantages</b> to this Like:</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">- No need to re-write the code again.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">- Easy to call other components.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">- Reduce code size.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Now let's understand how we can create a composition in the lightning web component. Basic Idea is we create the main component (parent component) and call other reusable child components inside main component.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">A basic structure is like this :</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">-----------------------------------------</span></div>
<div>
<span style="color: #990000; font-family: "courier new" , "courier" , monospace;"><b>< Parent Component ></b></span></div>
<div>
<span style="color: #38761d; font-family: "courier new" , "courier" , monospace;"><b> <Child Component 1></b></span></div>
<div>
<span style="color: #38761d; font-family: "courier new" , "courier" , monospace;"><b> <Child Compoenent 2></b></span></div>
<div>
<span style="color: #38761d; font-family: "courier new" , "courier" , monospace;"><b> ........</b></span></div>
<div>
<b><span style="color: #990000; font-family: "courier new" , "courier" , monospace;"></Parent Component ></span></b></div>
<div>
<span style="font-family: "verdana" , sans-serif;">-----------------------------------------</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">As you can see in the above structure how we can include the child components in the parent component.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Now's let understand the syntax in the Lightning web component :</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif; font-size: large;"><b>SYNTAX : </b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b>parentComponent.html</b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">-----------------------------------------</span></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"><template></span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #bf9000;"><p></span>I am inside Parent Component<span style="color: #bf9000;"></p></span></span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"><span style="color: #bf9000;"> </span> <br/></span></b></div>
<div>
<b><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;"><!-- below is child compoenent--></span></b></div>
<div>
<b><span style="color: #0b5394; font-family: "courier new" , "courier" , monospace;"> <c-child-component></c-child-component></span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"></template></span></b></div>
<div>
<span style="font-family: "verdana" , sans-serif;">-----------------------------------------</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">In the above syntax as you can see we have just included a couple of words inside a paragraph tag.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Then below that, we have included the child component inside as a markup.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b>IMPORTANT</b>: When we call child component inside the parent component we use kabab case to represent the name of it.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Hence as our component name is </span><b style="font-family: Verdana, sans-serif;">childComponent, </b><span style="font-family: "verdana" , sans-serif;">we have written it starting with <b><c- </b>this is a default namespace. After this, If we use camel case like <b>oneTwo </b>we write it in kabab case format as <b>one-two. </b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b><br /></b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Hence we called the child component as <b><c-child-component></b> in the above parent syntax.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b>childComponent.html</b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">-----------------------------------------</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b><template></b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b> </b></span><b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #bf9000;"><p></span>I am inside Child Component<span style="color: #bf9000;"></p></span></span></b></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b></templete></b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">-----------------------------------------</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Above snippet is just a simple child component with some couple of word inside the paragraph tag.</span></div>
<div>
<br /></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b>OUTPUT</b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">-----------------------------------------</span></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;">I am inside Parent Component </span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;">I am inside Child Component</span></b></div>
<div>
<span style="font-family: "verdana" , sans-serif;">-----------------------------------------</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">And finally, when we preview the above parent component we can see both parent and child component data together as we composed them together.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">This is how we do component composition in salesforce lightning web component.</span></div>
<div>
<br /></div>
<div>
<span style="font-family: "verdana" , sans-serif;">It was simple right ??</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Now let's create something creative composition of the components like this :</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">-----------------------------------------</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4t2AUx_tBanYnjnh99PaxKLeuNMZW00vO-zAsab-Cb4k2rSYw_qcWxn4s8XM7V_HIjWD7l-H7kRYHdZBUNdT_57F3KQHLn1ASEfbY7QCV3pv7ZK42tbLwbWsmiBA_NslR8WIyoUVD-dc/s1600/Screenshot+2020-06-06+at+9.15.26+PM.png" imageanchor="1"><img alt="Component Composition In Salesforce Lightning Web Component (LWC)" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4t2AUx_tBanYnjnh99PaxKLeuNMZW00vO-zAsab-Cb4k2rSYw_qcWxn4s8XM7V_HIjWD7l-H7kRYHdZBUNdT_57F3KQHLn1ASEfbY7QCV3pv7ZK42tbLwbWsmiBA_NslR8WIyoUVD-dc/s1600/Screenshot+2020-06-06+at+9.15.26+PM.png" title="Component Composition In Salesforce Lightning Web Component (LWC)" /></a></span></div>
<div>
<br /></div>
<div>
<span style="font-family: "verdana" , sans-serif;">-----------------------------------------</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Excited right ?? They are moving too 😁. So In the above snap, you can see there are three character <b>Bat</b> (Spreading Virus), <b>Doctor</b> who is saving <b>Child </b>from the bat spreading virus.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">I picked up this idea as currently, Carona virus is trending nowadays hence I would like to demonstrate with this simple example of how doctors are fighting with the virus and saving us.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">So let's begin......</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b>COMPONENT 1 :</b> So We are going to create the main component which consists of some titles and characters of doctor and bat.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<b style="font-family: Verdana, sans-serif;">COMPONENT 2 : </b><span style="font-family: "verdana" , sans-serif;">In the second component we are going to include the small <b>kid </b>walking.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">So that when we preview the Component 1 then we can see three of the characters on the same screen. I hope the idea is clear now for this composition.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">So let's do it.......</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif; font-size: large;"><b>STEP 1 :</b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Jump into the <b>VS code</b> and connect your salesforce org by <b>Autorize an Org </b>and complete the authorization process.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif; font-size: large;"><b>STEP 2 : </b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Now let's create a new Lightning web component called <b>lwcComponentCompositionParent.</b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b><br /></b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Write the code as :</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<b style="font-family: Verdana, sans-serif;">lwcComponentCompositionParent.html</b></div>
<div>
<span style="font-family: "verdana" , sans-serif;">-----------------------------------------</span></div>
<div>
<div style="background-color: #1e1e1e; color: #d4d4d4; font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; line-height: 18px; white-space: pre;">
<div>
<span style="color: grey;"><</span><span style="color: #569cd6;">template</span><span style="color: grey;">></span></div>
<div>
<span style="color: grey;"><</span><span style="color: #569cd6;">p</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"title"</span><span style="color: grey;">></span> LWC Component Composition<span style="color: grey;"></</span><span style="color: #569cd6;">p</span><span style="color: grey;">></span></div>
<div>
<span style="color: grey;"><</span><span style="color: #569cd6;">p</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"go"</span><span style="color: grey;">></span>Go!! CARONA Go!!<span style="color: grey;"></</span><span style="color: #569cd6;">p</span><span style="color: grey;">></span></div>
<div>
<span style="color: grey;"><</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></div>
<div>
<span style="color: #6a9955;"><!-- Below is Parent component Images--></span></div>
<div>
<span style="color: grey;"><</span><span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"doctor"</span><span style="color: grey;">></span></div>
<div>
<span style="color: grey;"><</span><span style="color: #569cd6;">img</span> <span style="color: #9cdcfe;">src</span>=<span style="color: #ce9178;">"https://media.giphy.com/media/WsRFo5SaNEsHo0e5tk/giphy.gif"</span><span style="color: grey;"> /></span></div>
<div>
<span style="color: grey;"></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></div>
<div>
<span style="color: grey;"><</span><span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"carona"</span><span style="color: grey;">></span></div>
<div>
<span style="color: grey;"><</span><span style="color: #569cd6;">img</span> <span style="color: #9cdcfe;">src</span>=<span style="color: #ce9178;">"https://media.giphy.com/media/uMMZyNy2ztDqg/giphy.gif"</span><span style="color: grey;"> /></span></div>
<div>
<span style="color: grey;"></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></div>
<div>
<span style="color: #6a9955;"><!-- Below is child component Image--></span></div>
<div>
<span style="color: grey;"><</span><span style="color: #569cd6;">c-lwc-component-composition-child</span><span style="color: grey;">></</span><span style="color: #569cd6;">c-lwc-component-composition-child</span><span style="color: grey;">></span></div>
<div>
<span style="color: grey;"></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></div>
<div>
<span style="color: grey;"></</span><span style="color: #569cd6;">template</span><span style="color: grey;">></span></div>
</div>
</div>
<div>
<span style="font-family: "verdana" , sans-serif;">-----------------------------------------</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">As you can see we have used the same pattern as per the syntax. Where we have added the two labels at the top and then two images (<b>Bat</b> and <b>Doctor</b>) and we have included the child component down there in kabab case </span></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"><c-lwc-component-composition-child></span></b></div>
<div>
<br /></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Perfect right??</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Let's have a look at the styling CSS provided to these images and the animation we provided it to.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Create a file under the same component hierarchy called </span><b style="font-family: Verdana, sans-serif;">lwcComponentCompositionParent.css </b><span style="font-family: "verdana" , sans-serif;">and write down the below code for styling.</span></div>
<div>
<br /></div>
<div>
<div>
<b style="font-family: Verdana, sans-serif;">lwcComponentCompositionParent.css</b></div>
<div>
<span style="font-family: "verdana" , sans-serif;">-----------------------------------------</span></div>
<div>
<div style="background-color: #1e1e1e; color: #d4d4d4; font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; line-height: 18px; white-space: pre;">
<div>
<span style="color: #d7ba7d;">.title</span>{</div>
<div>
<span style="color: #9cdcfe;">position</span>: absolute; </div>
<div>
<span style="color: #9cdcfe;">right</span>: <span style="color: #b5cea8;">30%</span>; </div>
<div>
<span style="color: #9cdcfe;">left</span>:<span style="color: #b5cea8;">35%</span>; </div>
<div>
<span style="color: #9cdcfe;">bottom</span>: <span style="color: #b5cea8;">30%</span>;</div>
<div>
<span style="color: #9cdcfe;">top</span>: <span style="color: #b5cea8;">5%</span>;</div>
<div>
<span style="color: #9cdcfe;">font-size</span>: <span style="color: #b5cea8;">20px</span>;</div>
<div>
<span style="color: #9cdcfe;">font-family</span>: sans-serif;</div>
<div>
}</div>
<div>
<span style="color: #d7ba7d;">.go</span>{</div>
<div>
<span style="color: #9cdcfe;">position</span>: absolute; </div>
<div>
<span style="color: #9cdcfe;">right</span>: <span style="color: #b5cea8;">30%</span>; </div>
<div>
<span style="color: #9cdcfe;">left</span>:<span style="color: #b5cea8;">40%</span>; </div>
<div>
<span style="color: #9cdcfe;">bottom</span>: <span style="color: #b5cea8;">30%</span>;</div>
<div>
<span style="color: #9cdcfe;">top</span>: <span style="color: #b5cea8;">15%</span>;</div>
<div>
<span style="color: #9cdcfe;">font-size</span>: <span style="color: #b5cea8;">20px</span>;</div>
<div>
<span style="color: #9cdcfe;">font-family</span>: sans-serif; </div>
<div>
<span style="color: #9cdcfe;">color</span>: red; </div>
<div>
}</div>
<div>
<span style="color: #d7ba7d;">.doctor</span> <span style="color: #d7ba7d;">img</span>{</div>
<div>
<span style="color: #9cdcfe;">height</span>: <span style="color: #b5cea8;">200px</span> ;</div>
<div>
<span style="color: #9cdcfe;">position</span>: absolute;</div>
<div>
<span style="color: #9cdcfe;">animation</span>: jump <span style="color: #b5cea8;">8s</span> infinite;</div>
<div>
<span style="color: #9cdcfe;">animation-direction</span>: normal;</div>
<div>
<span style="color: #9cdcfe;">padding-bottom</span>: <span style="color: #b5cea8;">2em</span>;</div>
<div>
}</div>
<div>
<span style="color: #d7ba7d;">.carona</span> <span style="color: #d7ba7d;">img</span> {</div>
<div>
<span style="color: #9cdcfe;">padding-left</span>: <span style="color: #b5cea8;">20px</span>;</div>
<div>
<span style="color: #9cdcfe;">height</span>: <span style="color: #b5cea8;">130px</span>;</div>
<div>
<span style="color: #9cdcfe;">margin-right</span>: <span style="color: #b5cea8;">500px</span>;</div>
<div>
<span style="color: #9cdcfe;">position</span>: absolute;</div>
<div>
<span style="color: #9cdcfe;">animation</span>: bat <span style="color: #b5cea8;">7s</span> infinite;</div>
<div>
<span style="color: #9cdcfe;">animation-direction</span>: normal;</div>
<div>
<span style="color: #9cdcfe;">padding-bottom</span>: <span style="color: #b5cea8;">2em</span>;</div>
<div>
}</div>
<div>
<span style="color: #569cd6;">@keyframes</span> bat {</div>
<div>
0% {</div>
<div>
<span style="color: #9cdcfe;">top</span>: <span style="color: #b5cea8;">0</span>;</div>
<div>
<span style="color: #9cdcfe;">left</span>: <span style="color: #b5cea8;">0</span>;</div>
<div>
}</div>
<div>
25% {</div>
<div>
<span style="color: #9cdcfe;">top</span>: <span style="color: #b5cea8;">100px</span>;</div>
<div>
<span style="color: #9cdcfe;">left</span>: <span style="color: #b5cea8;">20%</span>;</div>
<div>
}</div>
<div>
50% {</div>
<div>
<span style="color: #9cdcfe;">top</span>: <span style="color: #b5cea8;">0px</span>;</div>
<div>
<span style="color: #9cdcfe;">left</span>: <span style="color: #b5cea8;">40%</span>;</div>
<div>
}</div>
<div>
75% {</div>
<div>
<span style="color: #9cdcfe;">top</span>: <span style="color: #b5cea8;">100px</span>;</div>
<div>
<span style="color: #9cdcfe;">left</span>: <span style="color: #b5cea8;">60%</span>;</div>
<div>
}</div>
<div>
100% { </div>
<div>
<span style="color: #9cdcfe;">top</span>: <span style="color: #b5cea8;">0px</span>;</div>
<div>
<span style="color: #9cdcfe;">left</span>: <span style="color: #b5cea8;">80%</span>;</div>
<div>
}</div>
<div>
}</div>
</div>
</div>
<div>
<span style="font-family: "verdana" , sans-serif;">-----------------------------------------</span></div>
</div>
<div>
<br /></div>
<div>
<span style="font-family: "verdana" , sans-serif;">In the above code, I used the styling to adjust the <b>bat </b>and <b>doctor </b>characters and to animate the keyframes from it.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b>NOTE</b>: we don't need change .js file here as we are just composing two-component.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">if you want to learn about the basic of styling please refer w3schools website.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">let's move ahead and we need to create the child component to add that small <b>kid</b>.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif; font-size: large;"><b>STEP 3 :</b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Create new lightning web component in vs code called as <b>lwcComponentCompositionChild</b>.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">And follow the code as below :</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<b style="font-family: Verdana, sans-serif;">lwcComponentCompositionChild.html</b></div>
<div>
<span style="font-family: "verdana" , sans-serif;">-----------------------------------------</span></div>
<div>
<div style="background-color: #1e1e1e; color: #d4d4d4; font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; line-height: 18px; white-space: pre;">
<div>
<span style="color: grey;"><</span><span style="color: #569cd6;">template</span><span style="color: grey;">></span></div>
<div>
<span style="color: grey;"><</span><span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"kid"</span><span style="color: grey;">></span></div>
<div>
<span style="color: grey;"><</span><span style="color: #569cd6;">img</span> <span style="color: #9cdcfe;">src</span>=<span style="color: #ce9178;">"https://media.giphy.com/media/eerNJ3Dul0cphE6dtO/giphy.gif"</span><span style="color: grey;"> /></span></div>
<div>
<span style="color: grey;"></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></div>
<div>
<span style="color: grey;"></</span><span style="color: #569cd6;">template</span><span style="color: grey;">></span></div>
</div>
</div>
<div>
<span style="font-family: "verdana" , sans-serif;">-----------------------------------------</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">As you can see it's a simple kid image added to the template. Now let's animate this kid to baby walk on the ground.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">For that, we need to create the CSS file in the same lightning component inside the VS Code as below </span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<b style="font-family: Verdana, sans-serif;">lwcComponentCompositionChild.css</b></div>
<div>
<span style="font-family: "verdana" , sans-serif;">-----------------------------------------</span></div>
<div>
<div style="background-color: #1e1e1e; color: #d4d4d4; font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; line-height: 18px; white-space: pre;">
<div>
<span style="color: #d7ba7d;">.kid</span> <span style="color: #d7ba7d;">img</span>{</div>
<div>
<span style="color: #9cdcfe;">padding-top</span>: <span style="color: #b5cea8;">2em</span>;</div>
<div>
<span style="color: #9cdcfe;">height</span>: <span style="color: #b5cea8;">150px</span>;</div>
<div>
<span style="color: #9cdcfe;">position</span>: absolute;</div>
<div>
<span style="color: #9cdcfe;">animation</span>: walk <span style="color: #b5cea8;">10s</span> infinite;</div>
<div>
<span style="color: #9cdcfe;">animation-direction</span>: normal;</div>
<div>
}</div>
<div>
<span style="color: #569cd6;">@keyframes</span> walk{</div>
<div>
0% {</div>
<div>
<span style="color: #9cdcfe;">left</span>: <span style="color: #b5cea8;">0</span>;</div>
<div>
}</div>
<div>
25% {</div>
<div>
<span style="color: #9cdcfe;">left</span>: <span style="color: #b5cea8;">20%</span>;</div>
<div>
}</div>
<div>
50% {</div>
<div>
<span style="color: #9cdcfe;">left</span>: <span style="color: #b5cea8;">40%</span>;</div>
<div>
}</div>
<div>
75% {</div>
<div>
<span style="color: #9cdcfe;">left</span>: <span style="color: #b5cea8;">60%</span>;</div>
<div>
}</div>
<div>
100% {</div>
<div>
<span style="color: #9cdcfe;">left</span>: <span style="color: #b5cea8;">80%</span>;</div>
<div>
}</div>
<div>
}</div>
</div>
</div>
<div>
<span style="font-family: "verdana" , sans-serif;">-----------------------------------------</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">In the above CSS code we have set the position and animation keyframe for animation. </span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">As we have called this above component inside the parent or main component we will preview the output for the parent component.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif; font-size: large;"><b>STEP 4 :</b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">For a preview, you can deploy it to the source org by right-clicking and then <b>add into a lightning application</b> or use <b>salesforce local development</b> to preview it locally on your machine.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">I love local development as we discussed this in the last Episode of this series. Check the steps in the first episode of this series.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Hence once you setup local development just right click on your component and select <b>SFDX: Preview Component Locally</b></span></div>
<div>
<br /></div>
<div>
<span style="font-family: "verdana" , sans-serif;">You here is the <b>OUTPUT</b> :</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">-----------------------------------------</span><br />
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen="" class="YOUTUBE-iframe-video" data-thumbnail-src="https://i.ytimg.com/vi/YahStimzHkE/0.jpg" frameborder="0" height="266" src="https://www.youtube.com/embed/YahStimzHkE?feature=player_embedded" width="320"></iframe></div>
<br /></div>
<div>
<span style="font-family: "verdana" , sans-serif;">-----------------------------------------</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Coooool !! Right .....As you can see our doctor is saving the kid from the Virus of a bat.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">In this cool way, we can use component composition and include as many as re-usable components in salesforce lightning web component.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">I hope you are enjoying this series kid 😊.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">In the next EPISODE, we will discuss How to pass value from Parent To Child Component in Lightning Web Component.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><span style="font-size: small; font-weight: 400;"><b>WOHOOO !! YOU HAVE JUST COMPLETED COMPONENT COMPOSITION IN LIGHTNING WEB COMPONENT (LWC)</b></span><span style="font-family: "verdana" , sans-serif;"><span style="font-size: small; font-weight: 400;"> </span><b style="font-size: medium;">EPISODE</b></span></span><br />
<span style="background-color: white; font-family: "verdana" , sans-serif; font-size: 15px;">If you like this</span><span style="background-color: white; color: #5e5e5e; font-family: "verdana" , sans-serif; font-size: 15px;"> </span><a href="https://www.salesforcekid.com/" style="font-family: verdana, sans-serif;">salesforcekid</a><span style="background-color: white; color: #5e5e5e; font-family: "verdana" , sans-serif; font-size: 15px;"> </span><span style="background-color: white; font-family: "verdana" , sans-serif; font-size: 15px;">learning platform please let me know in the Comment section...Also, Share with your salesforce folks wish you all</span><br />
<span style="font-family: "verdana" , sans-serif;"></span><span style="background-color: white; font-family: "verdana" , sans-serif; font-size: 15px;"><b>Happy Learning</b> ☁️⚡️ (Learn. Help. Share.) 😊</span><span style="font-family: "verdana" , sans-serif;"> </span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;"><b><a href="https://www.salesforcekid.com/2020/05/lwc-conditional-rendering-in-salesforce.html"><< PREVIOUS</a> <a href="https://www.sfdckid.com/2020/08/api-property-lightning-web-component.html">NEXT >></a></b></span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJFHcKV7XJa5cT5qCWFxWcZmBdDxwPc5M27KySnQ0jIvrgsKVNdgBMbTffeVG4H3vWE-ke7L151qavpSH4n2YAEeic1Vy_qvxJs2LJjM9PThIYSOrLTOHmDFsg4HDhnaj5NwOwtE2Gtp0/s1600/blogBottom.jpg" imageanchor="1"><img alt="salesforcekid on play store " border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJFHcKV7XJa5cT5qCWFxWcZmBdDxwPc5M27KySnQ0jIvrgsKVNdgBMbTffeVG4H3vWE-ke7L151qavpSH4n2YAEeic1Vy_qvxJs2LJjM9PThIYSOrLTOHmDFsg4HDhnaj5NwOwtE2Gtp0/s1600/blogBottom.jpg" title="salesforcekid on play store " /></a></div>
</div>
AJINKYA DHAS http://www.blogger.com/profile/13223328981950114267noreply@blogger.com4tag:blogger.com,1999:blog-8457518975744463615.post-12610726355252455072020-05-29T05:25:00.000-07:002020-09-02T03:37:03.194-07:00Conditional Rendering In Salesforce Lightning Web Component (LWC)<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: center;">
<span style="font-family: "verdana" , sans-serif;"><b><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuPoEHfX2ixI2aCa06mwilQ2oknw21LlZ25uOYkegqPk__s1h6s_UexMjhHX0hUxSIYpy6oZbY3kvlXdqIGpvOV3gmeLHxJEQPn66qmUrHTvb9fyzsQsqTjnLKqliIk4smRP8CFAGUVdY/s1600/ConditionalLWC.jpg" imageanchor="1"><img alt="Conditional Rendering In Salesforce Lightning Web Component" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuPoEHfX2ixI2aCa06mwilQ2oknw21LlZ25uOYkegqPk__s1h6s_UexMjhHX0hUxSIYpy6oZbY3kvlXdqIGpvOV3gmeLHxJEQPn66qmUrHTvb9fyzsQsqTjnLKqliIk4smRP8CFAGUVdY/s1600/ConditionalLWC.jpg" title="Conditional Rendering In Salesforce Lightning Web Component" /></a></b></span></h2>
<h2 style="text-align: center;">
<span style="font-family: "verdana" , sans-serif;"><b>Conditional Rendering In LWC</b></span></h2>
<div>
<span style="font-family: "verdana" , sans-serif;">Hey Kid !! In the previous EPISODE, we discussed ways of List Iteration in Salesforce Lightning Web Component.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">In this EPISODE we are going to discuss Conditional Rendering In LWC today.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif; font-size: large;"><b>What is Conditional Rendering ?</b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Conditional rendering means rendering a component based on a certain condition.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b>For Example:</b> If you are <b>hungry</b> you choose to <b>have</b> some <b>food</b>. But If you are <b>not</b> then <b>you will not</b>, Right ??</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Hence similar to this our component HTML template (front-end) can render or display the data based on such condition. We are going to have a live demo of this with awsome hands-on 🚗.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">So let's get started......</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Let's start with the syntax of the Conditional Rendering in LWC :</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">As we discussed the displaying of the value on the HTML template is based on the condition hence the important part to understand is the HTML template of your LWC component.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b>SYNTAX :</b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">--------------------------------------------------</span></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"><template></span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <template <span style="color: #38761d;">if:true</span>=<span style="color: #0b5394;">{display}</span>></span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #b45f06;">//Dispalying True Part</span></span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> </template></span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <template <span style="color: #38761d;">if:false</span>=<span style="color: #0b5394;">{display}</span>></span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> </span></b><b><span style="color: #b45f06; font-family: "courier new" , "courier" , monospace;">//Dispalying True Part</span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> </template></span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"></template></span></b></div>
<div>
<span style="font-family: "verdana" , sans-serif;">--------------------------------------------------</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">As you can see in the above syntax we used two more templates inside the main template. One with </span><span style="color: #38761d; font-family: "courier new" , "courier" , monospace; font-weight: bold;">if:true </span><span style="font-family: "verdana" , sans-serif;">and another template with</span><span style="color: #38761d; font-family: "courier new" , "courier" , monospace; font-weight: bold;"> if:false</span><span style="font-family: "verdana" , sans-serif;">.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">And the visibility of the data inside these templates depends on </span><b><span style="color: #0b5394; font-family: "courier new" , "courier" , monospace;">{display} </span></b><span style="font-family: "verdana" , sans-serif;">condition. That means if the value of <b>display </b>is <b>True</b> then the true part will be visible and if value is <b>false </b>then the false part will be visible.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Simple right ??</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Now it's time for the hands-on session to run our cool car by using this conditional rendering in LWC.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Have a look at what we are cooking today in our recipe :</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTPWzwqs_ibg8InnVsK6zhxXqZ2jRA75umc1K4JH-H082QO3b2UH3qcdvYMQ6YTxim_0sKYC1EYFVVsJdL0eFdX71hfbl6ws38OJXnr7XRLsYUm-rgQ9px3fIDRbrOQBxNI7vKpYRawxY/s1600/Screenshot+2020-05-29+at+3.52.06+PM.png" imageanchor="1"><img alt="Conditional Rendering In Salesforce Lightning Web Component" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTPWzwqs_ibg8InnVsK6zhxXqZ2jRA75umc1K4JH-H082QO3b2UH3qcdvYMQ6YTxim_0sKYC1EYFVVsJdL0eFdX71hfbl6ws38OJXnr7XRLsYUm-rgQ9px3fIDRbrOQBxNI7vKpYRawxY/s1600/Screenshot+2020-05-29+at+3.52.06+PM.png" title="Conditional Rendering In Salesforce Lightning Web Component" /></a></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">A cool Car which will start running on the road by switching <b>on</b> (true) the toggle.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Excited ??</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Let's begin...</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<b style="font-family: Verdana, sans-serif;">STEP 1 :</b></div>
<div>
<span style="font-family: "verdana" , sans-serif;">First, we need some static resources as you can see in the above snap. That you can download from the below drive link :</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b><span style="color: #351c75;"><a href="https://drive.google.com/drive/folders/13JN0G4iArCoP7BEEQki-MQS2ktqyS4Oi?usp=sharing" target="_blank">CLICK HERE TO DOWNLOAD STATIC RESOURCES</a></span></b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b><br /></b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b>NOTE : </b>Please use a Desktop or Mobile browser to open this link. (Do not click from our Android Application).</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Save these three files in <b>static resources </b>in Salesforce Org.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">with names (as I used)</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijAM-8dGuuXPoNPluDvr5cuZfASzDYXVrYOUdOHotZojCC7kL45q1NyzwSpUC9NP4R-uVOuqwOgtj04cgkucwlK3C6cPB_GPksYKaeOVqVFyMQW-b6WatyVl6q3H6soDjAq4-WU9aFFXQ/s1600/Screenshot+2020-05-29+at+4.07.54+PM.png" imageanchor="1"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijAM-8dGuuXPoNPluDvr5cuZfASzDYXVrYOUdOHotZojCC7kL45q1NyzwSpUC9NP4R-uVOuqwOgtj04cgkucwlK3C6cPB_GPksYKaeOVqVFyMQW-b6WatyVl6q3H6soDjAq4-WU9aFFXQ/s1600/Screenshot+2020-05-29+at+4.07.54+PM.png" /></a></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<b style="font-family: Verdana, sans-serif;">STEP 2 :</b></div>
<div>
<b style="font-family: Verdana, sans-serif;"><br /></b></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Once static resources are added Open your <b>VS Code </b>and <b>Authorise</b> your salesforce <b>org</b>.(check the previous EPISODE for a detailed explanation on connecting salesforce org with VS Code)</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">and then on the left pallet, you will find the <b>package.xml </b>file under <b>manifest file. </b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b><br /></b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Just right click on that and click on <b>SFDX : Retrieve Source In Manifest From Org </b>to retrieve all the static resources metadata from the org.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b>STEP 3 :</b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b><br /></b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Create a new lightning web component by right-clicking on lwc folder from the left palette or by pressing <b>CTRL+SHIFT+P (windows)</b> or <b>COMMAND+SHIFT+P (Mac) </b>and run command <b>SFDX: Create Lightning Web Component.</b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b><br /></b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Give it a name called <b>lwcConditionalRendering </b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b><br /></b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b>IDEA BEHIND 💡:</b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">The idea is to create a static and non-moving car, road and wheel when the value is <b>false</b>.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">And when the value is <b>true</b> based on the toggle present in the component then we will display the<b> animated and moving car, road and wheel </b>I used some CSS creativity here which is awesome as you will see in the output.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Go...Go...Kid 🏃♂️</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b><br /></b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">And now just write down and understand the below code :</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b><br /></b></span></div>
<div>
<b style="font-family: Verdana, sans-serif;">lwcConditionalRendering.html</b></div>
<div>
<span style="font-family: "verdana" , sans-serif;">--------------------------------------------------</span></div>
<div>
<div style="background-color: #1e1e1e; color: #d4d4d4; font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; line-height: 18px; white-space: pre;">
<div>
<b><span style="color: grey;"><</span><span style="color: #569cd6;">template</span><span style="color: grey;">></span></b></div>
<div>
<span style="color: #6a9955;"><b><!--Below is the code for Toggle Switch--></b></span></div>
<div>
<b><span style="color: grey;"><</span><span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"toggle"</span><span style="color: grey;">></span></b></div>
<div>
<b><span style="color: grey;"><</span><span style="color: #569cd6;">lightning-input</span> </b></div>
<div>
<b><span style="color: #9cdcfe;">type</span>=<span style="color: #ce9178;">"toggle"</span> </b></div>
<div>
<b><span style="color: #9cdcfe;">label</span>=<span style="color: #ce9178;">"On/Off"</span> </b></div>
<div>
<b><span style="color: #9cdcfe;">name</span>=<span style="color: #ce9178;">"input1"</span> </b></div>
<div>
<b><span style="color: #9cdcfe;">onchange</span>=<span style="color: #ce9178;">{handleChange}</span><span style="color: grey;">></span></b></div>
<div>
<b><span style="color: grey;"></</span><span style="color: #569cd6;">lightning-input</span> <span style="color: grey;">></span></b></div>
<div>
<b><span style="color: grey;"></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></b></div>
<div>
<span style="color: #6a9955;"><b><!--Below is the template when Switch is True--></b></span></div>
<div>
<b><span style="color: grey;"><</span><span style="color: #569cd6;">template</span> <span style="color: #9cdcfe;">if:true</span>=<span style="color: #ce9178;">{isvisible}</span><span style="color: grey;">></span> </b></div>
<div>
<b><span style="color: #6a9955;"><!--Below code is to display moving road--></span> </b></div>
<div>
<b><span style="color: grey;"><</span><span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"road"</span><span style="color: grey;">></span></b></div>
<div>
<b><span style="color: grey;"><</span><span style="color: #569cd6;">img</span> <span style="color: #9cdcfe;">src</span>=<span style="color: #ce9178;">{road}</span> <span style="color: #9cdcfe;">height</span>=<span style="color: #ce9178;">"200%"</span> <span style="color: #9cdcfe;">width</span>=<span style="color: #ce9178;">"500%"</span><span style="color: grey;">></span></b></div>
<div>
<b><span style="color: grey;"></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></b></div>
<div>
<b><span style="color: #6a9955;"><!--Below code is to display moving car--></span> </b></div>
<div>
<b><span style="color: grey;"><</span><span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"mycar"</span><span style="color: grey;">></span></b></div>
<div>
<b><span style="color: grey;"><</span><span style="color: #569cd6;">img</span> <span style="color: #9cdcfe;">src</span>=<span style="color: #ce9178;">{car}</span> <span style="color: #9cdcfe;">height</span>=<span style="color: #ce9178;">"400"</span> <span style="color: #9cdcfe;">width</span>=<span style="color: #ce9178;">"400"</span><span style="color: grey;">></span></b></div>
<div>
<b><span style="color: grey;"></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></b></div>
<div>
<b><span style="color: #6a9955;"><!--Below code is to display moving wheel--></span> </b></div>
<div>
<b><span style="color: grey;"><</span><span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"wheel"</span><span style="color: grey;">></span></b></div>
<div>
<b><span style="color: grey;"><</span><span style="color: #569cd6;">img</span> <span style="color: #9cdcfe;">src</span>=<span style="color: #ce9178;">{wheel}</span> <span style="color: #9cdcfe;">height</span>=<span style="color: #ce9178;">"75"</span> <span style="color: #9cdcfe;">width</span>=<span style="color: #ce9178;">"75"</span> </b></div>
<div>
<b><span style="color: #9cdcfe;"> class</span>=<span style="color: #ce9178;">"back-wheel"</span><span style="color: grey;">></span></b></div>
<div>
<b><span style="color: grey;"><</span><span style="color: #569cd6;">img</span> <span style="color: #9cdcfe;">src</span>=<span style="color: #ce9178;">{wheel}</span> <span style="color: #9cdcfe;">height</span>=<span style="color: #ce9178;">"75"</span> <span style="color: #9cdcfe;">width</span>=<span style="color: #ce9178;">"75"</span> </b></div>
<div>
<b><span style="color: #9cdcfe;"> class</span>=<span style="color: #ce9178;">"front-wheel"</span><span style="color: grey;">></span></b></div>
<div>
<b><span style="color: grey;"></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></b></div>
<div>
<b><span style="color: grey;"></</span><span style="color: #569cd6;">template</span><span style="color: grey;">></span></b></div>
<div>
<span style="color: #6a9955;"><b><!--Below is the template when Switch is False--></b></span></div>
<div>
<b><span style="color: grey;"><</span><span style="color: #569cd6;">template</span> <span style="color: #9cdcfe;">if:false</span>=<span style="color: #ce9178;">{isvisible}</span><span style="color: grey;">></span></b></div>
<div>
<b><span style="color: #6a9955;"><!--Below code is to display static road--></span> </b></div>
<div>
<b><span style="color: grey;"><</span><span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"roadfalse"</span><span style="color: grey;">></span></b></div>
<div>
<b><span style="color: grey;"><</span><span style="color: #569cd6;">img</span> <span style="color: #9cdcfe;">src</span>=<span style="color: #ce9178;">{road}</span> <span style="color: #9cdcfe;">height</span>=<span style="color: #ce9178;">"200%"</span> <span style="color: #9cdcfe;">width</span>=<span style="color: #ce9178;">"500%"</span><span style="color: grey;">></span></b></div>
<div>
<b><span style="color: grey;"></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></b></div>
<div>
<b><span style="color: #6a9955;"><!--Below code is to display static car--></span> </b></div>
<div>
<b><span style="color: grey;"><</span><span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"mycarfalse"</span><span style="color: grey;">></span></b></div>
<div>
<b><span style="color: grey;"><</span><span style="color: #569cd6;">img</span> <span style="color: #9cdcfe;">src</span>=<span style="color: #ce9178;">{car}</span> <span style="color: #9cdcfe;">height</span>=<span style="color: #ce9178;">"400"</span> <span style="color: #9cdcfe;">width</span>=<span style="color: #ce9178;">"400"</span><span style="color: grey;">></span></b></div>
<div>
<b><span style="color: grey;"></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></b></div>
<div>
<b><span style="color: #6a9955;"><!--Below code is to display static wheel--></span> </b></div>
<div>
<b><span style="color: grey;"><</span><span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"wheelfalse"</span><span style="color: grey;">></span></b></div>
<div>
<b><span style="color: grey;"><</span><span style="color: #569cd6;">img</span> <span style="color: #9cdcfe;">src</span>=<span style="color: #ce9178;">{wheel}</span> <span style="color: #9cdcfe;">height</span>=<span style="color: #ce9178;">"75"</span> <span style="color: #9cdcfe;">width</span>=<span style="color: #ce9178;">"75"</span> </b></div>
<div>
<b><span style="color: #9cdcfe;"> class</span>=<span style="color: #ce9178;">"back-wheelfalse"</span><span style="color: grey;">></span></b></div>
<div>
<b><span style="color: grey;"><</span><span style="color: #569cd6;">img</span> <span style="color: #9cdcfe;">src</span>=<span style="color: #ce9178;">{wheel}</span> <span style="color: #9cdcfe;">height</span>=<span style="color: #ce9178;">"75"</span> <span style="color: #9cdcfe;">width</span>=<span style="color: #ce9178;">"75"</span> </b></div>
<div>
<b><span style="color: #9cdcfe;"> class</span>=<span style="color: #ce9178;">"front-wheelfalse"</span><span style="color: grey;">></span></b></div>
<div>
<b><span style="color: grey;"></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></b></div>
<div>
<b><span style="color: grey;"></</span><span style="color: #569cd6;">template</span><span style="color: grey;">></span></b></div>
<div>
<b><span style="color: grey;"></</span><span style="color: #569cd6;">template</span><span style="color: grey;">></span></b></div>
</div>
</div>
<div>
<span style="font-family: "verdana" , sans-serif;">--------------------------------------------------</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<b style="font-family: Verdana, sans-serif;">lwcConditionalRendering.js</b></div>
<div>
<span style="font-family: "verdana" , sans-serif;">--------------------------------------------------</span></div>
<div>
<div style="background-color: #1e1e1e; color: #d4d4d4; font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; line-height: 18px; white-space: pre;">
<div>
<b><span style="color: #c586c0;">import</span> { <span style="color: #9cdcfe;">LightningElement</span> , <span style="color: #9cdcfe;">track</span>} <span style="color: #c586c0;">from</span> <span style="color: #ce9178;">'lwc'</span>;</b></div>
<div>
<span style="color: #6a9955;"><b>//From below three lines we imported our static resources</b></span></div>
<div>
<span style="color: #6a9955;"><b>//With sfkidcar, sfkidcarWheel and sfkidroad label</b></span></div>
<div>
<b><span style="color: #c586c0;">import</span> <span style="color: #9cdcfe;">sfkidcar</span> <span style="color: #c586c0;">from</span> <span style="color: #ce9178;">'@salesforce/resourceUrl/sfKidCar'</span>;</b></div>
<div>
<b><span style="color: #c586c0;">import</span> <span style="color: #9cdcfe;">sfkidcarWheel</span> <span style="color: #c586c0;">from</span> <span style="color: #ce9178;">'@salesforce/resourceUrl/sfKidCarWheel'</span>;</b></div>
<div>
<b><span style="color: #c586c0;">import</span> <span style="color: #9cdcfe;">sfkidroad</span> <span style="color: #c586c0;">from</span> <span style="color: #ce9178;">'@salesforce/resourceUrl/sfKidRoad'</span>;</b></div>
<div>
<b><span style="color: #c586c0;">export</span> <span style="color: #c586c0;">default</span> <span style="color: #569cd6;">class</span> <span style="color: #4ec9b0;">LwcConditionalRendering</span> <span style="color: #569cd6;">extends</span> <span style="color: #4ec9b0;">LightningElement</span></b></div>
<div>
<b>{</b></div>
<div>
<span style="color: #6a9955;"><b>//mapped with the HTML variables</b></span></div>
<div>
<b><span style="color: #9cdcfe;">car</span> = <span style="color: #9cdcfe;">sfkidcar</span>;</b></div>
<div>
<b><span style="color: #9cdcfe;">wheel</span> = <span style="color: #9cdcfe;">sfkidcarWheel</span>;</b></div>
<div>
<b><span style="color: #9cdcfe;">road</span> = <span style="color: #9cdcfe;">sfkidroad</span>;</b></div>
<div>
<span style="color: #6a9955;"><b>//Using track as we want to reflect the change on screen </b></span></div>
<div>
<b>@<span style="color: #dcdcaa;">track</span> <span style="color: #9cdcfe;">isvisible</span>;</b></div>
<div>
<span style="color: #6a9955;"><b>//Below code will call when switch is on/off</b></span></div>
<div>
<span style="color: #6a9955;"><b>//It will change the value of isvisible to true or false</b></span></div>
<div>
<span style="color: #6a9955;"><b>//based on this isvisible value conditional rendering will display </b></span></div>
<div>
<b><span style="color: #dcdcaa;">handleChange</span>(<span style="color: #9cdcfe;">event</span>) {</b></div>
<div>
<b><span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">isvisible</span> = <span style="color: #9cdcfe;">event</span>.<span style="color: #9cdcfe;">target</span>.<span style="color: #9cdcfe;">checked</span>; </b></div>
<div>
<b>}</b></div>
<div>
<b>}</b></div>
</div>
</div>
<div>
<span style="font-family: "verdana" , sans-serif;">--------------------------------------------------</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">And finally, create the new CSS file called </span><b style="font-family: Verdana, sans-serif;">lwcConditionalRendering.css </b><span style="font-family: "verdana" , sans-serif;">under the same component folder hierarchy as below.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<b style="font-family: Verdana, sans-serif;">lwcConditionalRendering.css</b></div>
<div>
<span style="font-family: "verdana" , sans-serif;">--------------------------------------------------</span></div>
<div>
<div style="background-color: #1e1e1e; color: #d4d4d4; font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; line-height: 18px; white-space: pre;">
<div>
<b><span style="color: #d7ba7d;">.toggle</span>{</b></div>
<div>
<b><span style="color: #9cdcfe;"> position</span>:<span style="color: #ce9178;">absolute</span>; <span style="color: #9cdcfe;">right</span>:<span style="color: #b5cea8;">80%</span>;</b></div>
<div>
<b>}</b></div>
<div>
<b><span style="color: #d7ba7d;">.road</span>{</b></div>
<div>
<b><span style="color: #9cdcfe;"> width</span>: <span style="color: #b5cea8;">200%</span>;</b></div>
<div>
<b><span style="color: #9cdcfe;"> position</span>: <span style="color: #ce9178;">absolute</span>;</b></div>
<div>
<b><span style="color: #9cdcfe;"> bottom</span>: <span style="color: #b5cea8;">0</span>;</b></div>
<div>
<b><span style="color: #9cdcfe;"> right</span>: <span style="color: #b5cea8;">0</span>;</b></div>
<div>
<b><span style="color: #9cdcfe;"> left</span>: <span style="color: #b5cea8;">0</span>;</b></div>
<div>
<b><span style="color: #9cdcfe;"> z-index</span>: <span style="color: #b5cea8;">1</span>;</b></div>
<div>
<b><span style="color: #9cdcfe;"> top</span>: <span style="color: #b5cea8;">79%</span>;</b></div>
<div>
<b><span style="color: #9cdcfe;"> animation</span>: road <span style="color: #b5cea8;">5s</span> <span style="color: #ce9178;">linear</span> <span style="color: #ce9178;">infinite</span>;</b></div>
<div>
<b>}</b></div>
<div>
<b><span style="color: #c586c0;">@keyframes</span> <span style="color: #9cdcfe;">road</span>{</b></div>
<div>
<b> 100%{</b></div>
<div>
<b><span style="color: #9cdcfe;"> transform</span>: <span style="color: #dcdcaa;">translateX</span>(<span style="color: #b5cea8;">-1400px</span>);</b></div>
<div>
<b> }</b></div>
<div>
<b>}</b></div>
<div>
<b><span style="color: #d7ba7d;">.mycar</span> <span style="color: #d7ba7d;">img</span>{ </b></div>
<div>
<b><span style="color: #9cdcfe;"> position</span>: <span style="color: #ce9178;">absolute</span>;</b></div>
<div>
<b><span style="color: #9cdcfe;"> top</span>: <span style="color: #b5cea8;">41%</span>;</b></div>
<div>
<b><span style="color: #9cdcfe;"> left</span>: <span style="color: #b5cea8;">34%</span>;</b></div>
<div>
<b><span style="color: #9cdcfe;"> animation</span>: car <span style="color: #b5cea8;">1s</span> <span style="color: #ce9178;">linear</span> <span style="color: #ce9178;">infinite</span>;</b></div>
<div>
<b>}</b></div>
<div>
<b><span style="color: #c586c0;">@keyframes</span> <span style="color: #9cdcfe;">car</span>{</b></div>
<div>
<b> 100%{</b></div>
<div>
<b><span style="color: #9cdcfe;"> transform</span>: <span style="color: #dcdcaa;">translateY</span>(<span style="color: #b5cea8;">-1px</span>);</b></div>
<div>
<b> }</b></div>
<div>
<b> 50%{</b></div>
<div>
<b><span style="color: #9cdcfe;"> transform</span>: <span style="color: #dcdcaa;">translateY</span>(<span style="color: #b5cea8;">2px</span>);</b></div>
<div>
<b> }</b></div>
<div>
<b> 0%{</b></div>
<div>
<b><span style="color: #9cdcfe;"> transform</span>: <span style="color: #dcdcaa;">translateY</span>(<span style="color: #b5cea8;">-1px</span>);</b></div>
<div>
<b> }</b></div>
<div>
<b>}</b></div>
<div>
<b><span style="color: #d7ba7d;">.wheel</span>{</b></div>
<div>
<b><span style="color: #9cdcfe;"> left</span>: <span style="color: #b5cea8;">50%</span>;</b></div>
<div>
<b><span style="color: #9cdcfe;"> bottom</span>: <span style="color: #b5cea8;">178px</span>;</b></div>
<div>
<b><span style="color: #9cdcfe;"> transform</span>: <span style="color: #dcdcaa;">translateX</span>(<span style="color: #b5cea8;">-50%</span>);</b></div>
<div>
<b><span style="color: #9cdcfe;"> position</span>: <span style="color: #ce9178;">absolute</span>;</b></div>
<div>
<b><span style="color: #9cdcfe;"> z-index</span>: <span style="color: #b5cea8;">2</span>;</b></div>
<div>
<b>}</b></div>
<div>
<b><span style="color: #d7ba7d;">.wheel</span> <span style="color: #d7ba7d;">img</span>{</b></div>
<div>
<b><span style="color: #9cdcfe;"> animation</span>: wheel <span style="color: #b5cea8;">1s</span> <span style="color: #ce9178;">linear</span> <span style="color: #ce9178;">infinite</span>;</b></div>
<div>
<b>}</b></div>
<div>
<b><span style="color: #c586c0;">@keyframes</span> <span style="color: #9cdcfe;">wheel</span>{</b></div>
<div>
<b> 100%{</b></div>
<div>
<b><span style="color: #9cdcfe;"> transform</span>: <span style="color: #dcdcaa;">rotate</span>(<span style="color: #b5cea8;">360deg</span>);</b></div>
<div>
<b> }</b></div>
<div>
<b>}</b></div>
<div>
<b><span style="color: #d7ba7d;">.back-wheel</span>{</b></div>
<div>
<b><span style="color: #9cdcfe;">position</span>: <span style="color: #ce9178;">relative</span>;</b></div>
<div>
<b><span style="color: #9cdcfe;">right</span>: <span style="color: #b5cea8;">129px</span>;</b></div>
<div>
<b><span style="color: #9cdcfe;">top</span>: <span style="color: #b5cea8;">129px</span>; </b></div>
<div>
<b>}</b></div>
<div>
<b><span style="color: #d7ba7d;">.front-wheel</span>{</b></div>
<div>
<b><span style="color: #9cdcfe;">position</span>: <span style="color: #ce9178;">absolute</span>;</b></div>
<div>
<b><span style="color: #9cdcfe;">right</span>: <span style="color: #b5cea8;">-116px</span>;</b></div>
<div>
<b><span style="color: #9cdcfe;">top</span>: <span style="color: #b5cea8;">129px</span>;</b></div>
<div>
<b>}</b></div>
<div>
<span style="color: #6a9955;"><b>/* below css are for false part */</b></span></div>
<div>
<b><span style="color: #d7ba7d;">.roadfalse</span>{</b></div>
<div>
<b><span style="color: #9cdcfe;"> width</span>: <span style="color: #b5cea8;">200%</span>;</b></div>
<div>
<b><span style="color: #9cdcfe;"> position</span>: <span style="color: #ce9178;">absolute</span>;</b></div>
<div>
<b><span style="color: #9cdcfe;"> bottom</span>: <span style="color: #b5cea8;">0</span>;</b></div>
<div>
<b><span style="color: #9cdcfe;"> right</span>: <span style="color: #b5cea8;">0</span>;</b></div>
<div>
<b><span style="color: #9cdcfe;"> left</span>: <span style="color: #b5cea8;">0</span>;</b></div>
<div>
<b><span style="color: #9cdcfe;"> z-index</span>: <span style="color: #b5cea8;">1</span>;</b></div>
<div>
<b><span style="color: #9cdcfe;"> top</span>: <span style="color: #b5cea8;">79%</span>; </b></div>
<div>
<b>}</b></div>
<div>
<b><span style="color: #d7ba7d;">.mycarfalse</span> <span style="color: #d7ba7d;">img</span>{ </b></div>
<div>
<b><span style="color: #9cdcfe;"> position</span>: <span style="color: #ce9178;">absolute</span>;</b></div>
<div>
<b><span style="color: #9cdcfe;"> top</span>: <span style="color: #b5cea8;">41%</span>;</b></div>
<div>
<b><span style="color: #9cdcfe;"> left</span>: <span style="color: #b5cea8;">34%</span>; </b></div>
<div>
<b>}</b></div>
<div>
<b><span style="color: #d7ba7d;"> .wheelfalse</span>{</b></div>
<div>
<b><span style="color: #9cdcfe;"> left</span>: <span style="color: #b5cea8;">50%</span>;</b></div>
<div>
<b><span style="color: #9cdcfe;"> bottom</span>: <span style="color: #b5cea8;">178px</span>;</b></div>
<div>
<b><span style="color: #9cdcfe;"> transform</span>: <span style="color: #dcdcaa;">translateX</span>(<span style="color: #b5cea8;">-50%</span>);</b></div>
<div>
<b><span style="color: #9cdcfe;"> position</span>: <span style="color: #ce9178;">absolute</span>;</b></div>
<div>
<b><span style="color: #9cdcfe;"> z-index</span>: <span style="color: #b5cea8;">2</span>;</b></div>
<div>
<b>}</b></div>
<div>
<b><span style="color: #d7ba7d;">.back-wheelfalse</span>{</b></div>
<div>
<b><span style="color: #9cdcfe;"> position</span>: <span style="color: #ce9178;">relative</span>;</b></div>
<div>
<b><span style="color: #9cdcfe;"> right</span>: <span style="color: #b5cea8;">129px</span>;</b></div>
<div>
<b><span style="color: #9cdcfe;"> top</span>: <span style="color: #b5cea8;">129px</span>; </b></div>
<div>
<b>}</b></div>
<div>
<b><span style="color: #d7ba7d;">.front-wheelfalse</span>{</b></div>
<div>
<b><span style="color: #9cdcfe;"> position</span>: <span style="color: #ce9178;">absolute</span>;</b></div>
<div>
<b><span style="color: #9cdcfe;"> right</span>: <span style="color: #b5cea8;">-116px</span>;</b></div>
<div>
<b><span style="color: #9cdcfe;"> top</span>: <span style="color: #b5cea8;">129px</span>;</b></div>
<div>
<b>}</b></div>
</div>
</div>
<div>
<span style="font-family: "verdana" , sans-serif;">--------------------------------------------------</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;"><b>NOTE:</b> Please notes that the above CSS positions of the images are adjusted as per my MacBook screen size. hence please adjust the positions of the car, wheel or road.</span><br />
<br />
<span style="font-family: "verdana" , sans-serif;">All code snippets are easily understandable with the help of code comments added. 😊</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">And finally its time for Output preview : </span><br />
<span style="font-family: "verdana" , sans-serif;">I am using local development for preview as discussed in the previous episodes. You can also see preview by adding this component to lightning application and deploying it to production.</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">If You have setup the Local Development then right-click on your lwc component and select <b>SFDX: Preview Component Locally</b>.</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">And its time to check our cool output with conditional rendering in salesforce lightning web component.</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;"><b>PREVIEW OUTPUT :</b></span><br />
<span style="font-family: "verdana" , sans-serif;">--------------------------------------------------</span><iframe allowfullscreen="" class="YOUTUBE-iframe-video" data-thumbnail-src="https://i.ytimg.com/vi/-d_d-gaQzls/0.jpg" frameborder="0" height="266" src="https://www.youtube.com/embed/-d_d-gaQzls?feature=player_embedded" width="320"></iframe><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">--------------------------------------------------</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">Aweesommmm ⚡️.......Car, road and wheels are moving when you turn on the toggle.</span><br />
<span style="font-family: "verdana" , sans-serif;">And if you Turn Off the toggle then it stops moving.</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">Coool...I hope you definitely liked this one....Now it's time to create it on your own and show it off to all your friends. Don't forget to tag me 😁.</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">In the Next EPISODE, we will discuss Lightning Web Component Compositions...So stay tuned...</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif; font-size: small; font-weight: 400;"><b>WOHOOO !! YOU HAVE JUST COMPLETED CONDITIONAL RENDERING IN LIGHTNING WEB COMPONENT (LWC)</b></span><span style="font-family: "verdana" , sans-serif;"><span style="font-size: small; font-weight: 400;"> </span><b style="font-size: medium;">EPISODE</b></span><br />
<span style="background-color: white; font-family: "verdana" , sans-serif; font-size: 15px;">If you like this</span><span style="background-color: white; color: #5e5e5e; font-family: "verdana" , sans-serif; font-size: 15px;"> </span><a href="https://www.salesforcekid.com/" style="font-family: verdana, sans-serif;">salesforcekid</a><span style="background-color: white; color: #5e5e5e; font-family: "verdana" , sans-serif; font-size: 15px;"> </span><span style="background-color: white; font-family: "verdana" , sans-serif; font-size: 15px;">learning platform please let me know in the Comment section...Also, Share with your salesforce folks wish you all</span><br />
<span style="font-family: "verdana" , sans-serif;"></span>
<span style="background-color: white; font-family: "verdana" , sans-serif; font-size: 15px;"><b>Happy Learning</b> ☁️⚡️ (Learn. Help. Share.) 😊</span><span style="font-family: "verdana" , sans-serif;"> </span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;"><b><a href="https://www.salesforcekid.com/2020/05/list-iteration-in-salesforce-lightning-web-component.html"><< PREVIOUS</a> <a href="https://www.salesforcekid.com/2020/06/component-composition-in-salesforce-lwc.html">NEXT >></a></b></span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtzN21b12a8VGkQLePeLEqXhahBqiX-lgfIyZyY9Lq4G4iCZGpj4GcPAhOlCR-B5ZanncBQS72zdEH-KF952Lp1KaKLI7DFftOrzo8Pf7if5YHr0VMjX3wANQZRybVmmVjseD5399Y5QI/s1600/blogBottom.jpg" imageanchor="1"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtzN21b12a8VGkQLePeLEqXhahBqiX-lgfIyZyY9Lq4G4iCZGpj4GcPAhOlCR-B5ZanncBQS72zdEH-KF952Lp1KaKLI7DFftOrzo8Pf7if5YHr0VMjX3wANQZRybVmmVjseD5399Y5QI/s1600/blogBottom.jpg" /></a></span></div>
</div>
AJINKYA DHAS http://www.blogger.com/profile/13223328981950114267noreply@blogger.com9tag:blogger.com,1999:blog-8457518975744463615.post-75244620666018287062020-05-27T08:41:00.001-07:002020-09-20T09:28:04.995-07:00List Iteration in Salesforce Lightning Web Component (LWC)<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: center;">
<span face=""verdana" , sans-serif"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpXE6waRtY5WwAcwoVyR1-oU6VlFib6-UUv22jj_G-UGrRyPuEMAdw2rPrZGm-OhIF66GVoL_gADggM8AU26XZQa1PswGHU04CGqEGo7CnFYIuOGbYxemwwsPFRXwSe3JvhRdsjUYthiA/s1600/ListIteration.jpg"><img alt="List Iteration in Salesforce Lightning Web Component (LWC)" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpXE6waRtY5WwAcwoVyR1-oU6VlFib6-UUv22jj_G-UGrRyPuEMAdw2rPrZGm-OhIF66GVoL_gADggM8AU26XZQa1PswGHU04CGqEGo7CnFYIuOGbYxemwwsPFRXwSe3JvhRdsjUYthiA/s1600/ListIteration.jpg" title="List Iteration in Salesforce Lightning Web Component (LWC)" /></a></span></h2>
<h2 style="text-align: center;">
<span face=""verdana" , sans-serif">List Iteration In LWC</span></h2>
<div>
<span face=""verdana" , sans-serif">In the previous EPISODE, we have discussed ways of Data Binding In lightning web component.</span></div>
<div>
<span face=""verdana" , sans-serif"><br /></span></div>
<div>
<span face=""verdana" , sans-serif">In this EPISODE, we will discuss the ways of List Iteration in a lightning web component.</span></div>
<div>
<span face=""verdana" , sans-serif">Before starting with this let's first understand when we need to Iterate the list in LWC? Alright !! So whenever we have a collection of data for example list of contact records, in such cases we need to iterate these list on HTML (template) and display the data on the screen may be in the form of the table etc.</span><br />
<span face=""verdana" , sans-serif"><br /></span>
<span face=""verdana" , sans-serif">It's <b>similar</b> to the <b><aura:iteration></b> in aura components.</span><br />
<span face=""verdana" , sans-serif"><br /></span>
<span face=""verdana" , sans-serif">So let's get started with the ways of List Iteration in LWC : </span><br />
<span face=""verdana" , sans-serif"><br /></span>
<span face=""verdana" , sans-serif">There are<b> 2 ways of iterating</b> your list in <b>LWC</b> templates : </span><br />
<span face=""verdana" , sans-serif"><br /></span>
<span face=""verdana" , sans-serif" style="font-size: large;"><b>1. For:Each</b></span><br />
<span face=""verdana" , sans-serif" style="font-size: large;"><b>2. Iterator</b></span><br />
<span face=""verdana" , sans-serif" style="font-size: large;"><b><br /></b></span>
<span face=""verdana" , sans-serif" style="font-size: large;"><b>What's the difference ??</b></span><br />
<span face=""verdana" , sans-serif">Well, the meaning of both is quite similar but the purpose is different. Let's understand how :</span><br />
<span face=""verdana" , sans-serif"><br /></span>
<span face=""verdana" , sans-serif" style="font-size: large;"><b>1. For:Each :</b></span><br />
<span face=""verdana" , sans-serif">This is a simple HTML template iterating way which is used when you simply want to iterate the list by providing a unique <b>key</b> value in the list.</span><br />
<span face=""verdana" , sans-serif"><br /></span>
<span face=""verdana" , sans-serif">The <b>key </b>here is the<b> unique value</b> to <b>identify</b> your <b>record</b> from the <b>list</b>.</span><br />
<span face=""verdana" , sans-serif">These key will be helpful where you want to select the item from the list and post-process that particular record.</span><br />
<span face=""verdana" , sans-serif"><br /></span>
<span face=""verdana" , sans-serif">Let's understand from the <b>syntax</b> of <b>for:each </b>template :</span><br />
<span face=""verdana" , sans-serif"><br /></span>
<span face=""verdana" , sans-serif"><b>SYNTAX : </b></span><br />
<span face=""verdana" , sans-serif">-------------------------------------------------------</span><br />
<span style="color: #0b5394; font-family: "courier new" , "courier" , monospace;"><b><template></b></span><br />
<span style="font-family: "courier new" , "courier" , monospace;"><b><span style="color: #0b5394;"> <template</span> <span style="color: #38761d;">for:each=</span><span style="color: #0b5394;">{yourList}</span> <span style="color: #38761d;">for:item=</span><span style="color: #b45f06;">"listVariable"</span><span style="color: #0b5394;">></span></b></span><br />
<span style="font-family: "courier new" , "courier" , monospace;"><b> <div <span style="color: #38761d;">key</span>={<span style="color: #b45f06;">listVariable</span>.<span style="color: #990000;">UniqueValue</span>}></b></span><br />
<span style="font-family: "courier new" , "courier" , monospace;"><b> {<span style="color: #b45f06;">listVariable</span>.listItemLabel}</b></span><br />
<span style="font-family: "courier new" , "courier" , monospace;"><b> </div></b></span><br />
<span style="color: #0b5394; font-family: "courier new" , "courier" , monospace;"><b> </template></b></span><br />
<span style="color: #0b5394; font-family: "courier new" , "courier" , monospace;"><b></template></b></span><br />
<span face=""verdana" , sans-serif">-------------------------------------------------------</span><br />
<b style="font-family: verdana, sans-serif;"><br /></b>
<span face=""verdana" , sans-serif">In the above syntax </span><span style="color: #0b5394; font-family: "courier new" , "courier" , monospace; font-weight: bold;">{yourList} </span><span face=""verdana" , sans-serif">is your list to iterate for example contacts.</span><br />
<span face=""verdana" , sans-serif"><br /></span>
<span face=""verdana" , sans-serif">Then </span><span style="color: #b45f06; font-family: "courier new" , "courier" , monospace; font-weight: bold;">"listVariable" </span><span face=""verdana" , sans-serif">is the temporary variable set for your list it can be anything for example: for a list of <b>contacts,</b> the <b>listVariable </b>can be <b>con</b>.</span><br />
<span face=""verdana" , sans-serif"><br /></span>
<span face=""verdana" , sans-serif">Then </span><span style="font-family: "courier new" , "courier" , monospace; font-weight: bold;"><span style="color: #38761d;">key</span>={<span style="color: #b45f06;">listVariable</span>.<span style="color: #990000;">UniqueValue</span>} </span><span face=""verdana" , sans-serif">is the unique value to identify the value from the list for example: it can be <b>con.Id </b>likewise.</span><br />
<span face=""verdana" , sans-serif"><br /></span>
<span face=""verdana" , sans-serif">Now let's cook some recipe to understand this better :</span><br />
<br />
<span face=""verdana" , sans-serif">Follow the below steps :</span><br />
<span face=""verdana" , sans-serif"><br /></span>
<span face=""verdana" , sans-serif"><b>STEP 1 :</b></span><br />
<span face=""verdana" , sans-serif">Open Your VS Code and Create a <b>Lightning Web Component </b>called<b> lwcForEach. </b></span><br />
<span face=""verdana" , sans-serif"><br /></span>
<span face=""verdana" , sans-serif"><b>NOTE :</b> If you want to start VS Code from scratch and Setup of local development then please check it out the previous EPISODE. </span><br />
<span face=""verdana" , sans-serif"><b><br /></b></span>
<span face=""verdana" , sans-serif"><b>STEP 2 :</b></span><br />
<span face=""verdana" , sans-serif">Write the code as below :</span><br />
<span face=""verdana" , sans-serif"><br /></span>
<b style="font-family: Verdana, sans-serif;">lwcForEach.html</b><br />
<span face=""verdana" , sans-serif">-------------------------------------------------------</span><br />
<div style="background-color: #1e1e1e; color: #d4d4d4; font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; line-height: 18px; white-space: pre;">
<div>
<b><span style="color: grey;"><</span><span style="color: #569cd6;">template</span><span style="color: grey;">></span></b></div>
<div>
<b> <span style="color: grey;"><</span><span style="color: #569cd6;">lightning-card</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"myfont"</span><span style="color: grey;">></span></b></div>
<div>
<b> <span style="color: grey;"><</span><span style="color: #569cd6;">b</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"myTitle"</span><span style="color: grey;">></span>For:Each List :<span style="color: grey;"></</span><span style="color: #569cd6;">b</span><span style="color: grey;">></span></b></div>
<div>
<b> <span style="color: grey;"><</span><span style="color: #569cd6;">template</span> <span style="color: #9cdcfe;">for:each</span>=<span style="color: #ce9178;">{contacts}</span> <span style="color: #9cdcfe;">for:item</span>=<span style="color: #ce9178;">"con"</span><span style="color: grey;">></span></b></div>
<div>
<b> <span style="color: grey;"><</span><span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">key</span>=<span style="color: #ce9178;">{con.Id}</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"mypad"</span><span style="color: grey;">></span></b></div>
<div>
<b> Id : {con.Id},<span style="color: grey;"><</span><span style="color: #569cd6;">br</span><span style="color: grey;">/></span></b></div>
<div>
<b> Name : {con.Name},<span style="color: grey;"><</span><span style="color: #569cd6;">br</span><span style="color: grey;">/></span></b></div>
<div>
<b> Website : {con.Website}</b></div>
<div>
<b> <span style="color: grey;"></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></b></div>
<div>
<b> <span style="color: grey;"></</span><span style="color: #569cd6;">template</span><span style="color: grey;">></span></b></div>
<div>
<b> <span style="color: grey;"></</span><span style="color: #569cd6;">lightning-card</span><span style="color: grey;">></span></b></div>
<div>
<b><span style="color: grey;"></</span><span style="color: #569cd6;">template</span><span style="color: grey;">></span></b></div>
</div>
<span face=""verdana" , sans-serif">-------------------------------------------------------</span><br />
<b style="font-family: verdana, sans-serif;"><br /></b>
<span face=""verdana" , sans-serif">In the above HTML template, you can see the same <b>syntax </b>was added with some extra tags like the title in <b><b> </b>tag.</span><br />
<span face=""verdana" , sans-serif">Then below that, we are iterating <b>{contacts} </b>with the list variable name <b>con.</b></span><br />
<span face=""verdana" , sans-serif"><b><br /></b></span>
<span face=""verdana" , sans-serif">And for <b>key </b>we have used the <b>{con.Id} </b>from the list to identify the uniqueness of the list item.</span><br />
<span face=""verdana" , sans-serif"><br /></span>
<span face=""verdana" , sans-serif">And finally inside <div> we are defining what are the values we want from the list like we want to display <b>Id</b>, <b>Name</b>, <b>Website</b>.</span><br />
<span face=""verdana" , sans-serif"><br /></span>
<span face=""verdana" , sans-serif">Now let's take a look at <b>.Js </b>file<b> </b>to see what exactly <b>{contacts} </b>list contains in the client-side 😬.</span><br />
<span face=""verdana" , sans-serif"><b><br /></b></span>
<b style="font-family: Verdana, sans-serif;">lwcForEach.js</b><br />
<span face=""verdana" , sans-serif">-------------------------------------------------------</span><br />
<div style="background-color: #1e1e1e; color: #d4d4d4; font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; line-height: 18px; white-space: pre;">
<div>
<b><span style="color: #c586c0;">import</span> { <span style="color: #9cdcfe;">LightningElement</span> } <span style="color: #c586c0;">from</span> <span style="color: #ce9178;">'lwc'</span>;</b></div>
<div>
<b><span style="color: #c586c0;">export</span> <span style="color: #c586c0;">default</span> <span style="color: #569cd6;">class</span> <span style="color: #4ec9b0;">LwcForEach</span> <span style="color: #569cd6;">extends</span> <span style="color: #4ec9b0;">LightningElement</span> {</b></div>
<div>
<span style="color: #6a9955;"><b>//This contacts is our list for this demo</b></span></div>
<div>
<b> <span style="color: #9cdcfe;">contacts</span> = [</b></div>
<div>
<b> { </b></div>
<div>
<b> <span style="color: #9cdcfe;">Id</span><span style="color: #9cdcfe;"> :</span> <span style="color: #ce9178;">'1001'</span>,</b></div>
<div>
<b> <span style="color: #9cdcfe;">Name</span><span style="color: #9cdcfe;"> :</span> <span style="color: #ce9178;">'Ajinkya Dhas'</span>,</b></div>
<div>
<b> <span style="color: #9cdcfe;">Website</span><span style="color: #9cdcfe;"> :</span> <span style="color: #ce9178;">'www.salesforcekid.com'</span></b></div>
<div>
<b> },</b></div>
<div>
<b> {</b></div>
<div>
<b> <span style="color: #9cdcfe;">Id</span><span style="color: #9cdcfe;"> :</span> <span style="color: #ce9178;">'1002'</span>,</b></div>
<div>
<b> <span style="color: #9cdcfe;">Name</span><span style="color: #9cdcfe;"> :</span> <span style="color: #ce9178;">'Steve Jobs'</span>,</b></div>
<div>
<b> <span style="color: #9cdcfe;">Website</span><span style="color: #9cdcfe;"> :</span> <span style="color: #ce9178;">'www.apple.com'</span></b></div>
<div>
<b> },</b></div>
<div>
<b> {</b></div>
<div>
<b> <span style="color: #9cdcfe;">Id</span><span style="color: #9cdcfe;"> :</span> <span style="color: #ce9178;">'1003'</span>,</b></div>
<div>
<b> <span style="color: #9cdcfe;">Name</span><span style="color: #9cdcfe;"> :</span> <span style="color: #ce9178;">'Marc Benioff'</span>,</b></div>
<div>
<b> <span style="color: #9cdcfe;">Website</span><span style="color: #9cdcfe;"> :</span> <span style="color: #ce9178;">'www.salesforce.com'</span></b></div>
<div>
<b> },</b></div>
<div>
<b> {</b></div>
<div>
<b> <span style="color: #9cdcfe;">Id</span><span style="color: #9cdcfe;"> :</span> <span style="color: #ce9178;">'1004'</span>,</b></div>
<div>
<b> <span style="color: #9cdcfe;">Name</span><span style="color: #9cdcfe;"> :</span> <span style="color: #ce9178;">'Bill Gates'</span>,</b></div>
<div>
<b> <span style="color: #9cdcfe;">Website</span><span style="color: #9cdcfe;"> :</span> <span style="color: #ce9178;">'www.microsoft.com'</span></b></div>
<div>
<b> }</b></div>
<div>
<b> ];</b></div>
<div>
<b>}</b></div>
</div>
<span face=""verdana" , sans-serif">-------------------------------------------------------</span><br />
<span face=""verdana" , sans-serif"><b><br /></b></span>
<span face=""verdana" , sans-serif">In the above JavaScript file we have just defined the sample hardcoded sample list.</span><br />
<span face=""verdana" , sans-serif">Why not real contacts from Salesforce database? Relax !! kid this is just the start we are going to learn that in the upcoming lwc episode 😊.</span><br />
<span face=""verdana" , sans-serif"><b><br /></b></span>
<span face=""verdana" , sans-serif">For better UI I have added custom CSS. So we need to create the new <b>css </b>file with the name </span><b style="font-family: Verdana, sans-serif;">lwcForEach.css </b><span face=""verdana" , sans-serif">under the same component hierarchy.</span><span face=""verdana" , sans-serif"> </span><br />
<span face=""verdana" , sans-serif"><b><br /></b></span>
<b style="font-family: Verdana, sans-serif;">lwcForEach.css</b><br />
<span face=""verdana" , sans-serif">-------------------------------------------------------</span><br />
<div style="background-color: #1e1e1e; color: #d4d4d4; font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; line-height: 18px; white-space: pre;">
<div>
<b><span style="color: #d7ba7d;">.myfont</span>{</b></div>
<div>
<b> <span style="color: #9cdcfe;">font-family</span>: <span style="color: #ce9178;">sans-serif</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">font-weight</span>: <span style="color: #ce9178;">lighter</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">font-size</span>: <span style="color: #b5cea8;">14px</span>;</b></div>
<div>
<b>}</b></div>
<div>
<b><span style="color: #d7ba7d;">.mypad</span>{</b></div>
<div>
<b> <span style="color: #9cdcfe;">padding</span>: <span style="color: #b5cea8;">10px</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">background-color</span> : <span style="color: #ce9178;">#aacfcf</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">margin-top</span>: <span style="color: #b5cea8;">3px</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">border-radius</span>: <span style="color: #b5cea8;">0.2rem</span>;</b></div>
<div>
<b>}</b></div>
<div>
<b><span style="color: #d7ba7d;">.myTitle</span>{</b></div>
<div>
<b> <span style="color: #9cdcfe;">font-size</span>: <span style="color: #b5cea8;">20px</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">font-weight</span>: <span style="color: #ce9178;">bold</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">position</span>: <span style="color: #ce9178;">relative</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">left</span>: <span style="color: #b5cea8;">20%</span>;</b></div>
<div>
<b>}</b></div>
</div>
<span face=""verdana" , sans-serif">-------------------------------------------------------</span><br />
<span face=""verdana" , sans-serif"><b><br /></b></span>
<span face=""verdana" , sans-serif">In the above CSS file I have added the simple CSS properties and added these classes in HTML tags for a better look. </span><br />
<span face=""verdana" , sans-serif"><b>NOTE :</b> If you want to learn the CSS please check the W3School website for basic learnings.</span><br />
<span face=""verdana" , sans-serif"><br /></span>
<span face=""verdana" , sans-serif">I am super excited to preview this component.</span><br />
<span face=""verdana" , sans-serif"><br /></span>
<span face=""verdana" , sans-serif"><b>STEP 3 :</b></span><br />
<span face=""verdana" , sans-serif">For previewing this lightning web component I preferred two methods :</span><br />
<span face=""verdana" , sans-serif"><br /></span>
<span face=""verdana" , sans-serif">1. Adding this lightning component in lightning application just like we do in aura components </span><br />
<span face=""verdana" , sans-serif"><b><br /></b></span>
<span face=""verdana" , sans-serif"><b>2. </b>I believe in trying this new way of previewing this component with salesforce <b>local development.</b></span><br />
<span face=""verdana" , sans-serif">You can too !! Just run the below two commands in the terminal of VS code to start your personal local developement </span><br />
<br />
<span face=""verdana" , sans-serif"><b>command 1 :</b></span><br />
<span face=""verdana" , sans-serif">-------------------------------------------------------</span><br />
<b><span style="color: #0b5394; font-family: "courier new" , "courier" , monospace;">sfdx plugins:install @salesforce/lwc-dev-server </span></b><br />
<span face=""verdana" , sans-serif">-------------------------------------------------------</span><br />
<span face=""verdana" , sans-serif"><b><br /></b></span>
<span face=""verdana" , sans-serif"><b>command 2 :</b></span><br />
<span face=""verdana" , sans-serif">-------------------------------------------------------</span><br />
<b><span style="color: #0b5394; font-family: "courier new" , "courier" , monospace;">sfdx force:lightning:lwc:start</span></b><br />
<span face=""verdana" , sans-serif">-------------------------------------------------------</span><br />
<span face=""verdana" , sans-serif"><b><br /></b></span>
<span face=""verdana" , sans-serif">and that's now you can display your preview <b>localhost:3333</b> port in your browser.</span><br />
<span face=""verdana" , sans-serif">Vs Code Restart recommended </span><br />
<span face=""verdana" , sans-serif"><br /></span>
<span face=""verdana" , sans-serif">Then just right-click on the <b>lwcForEach</b> component and select <b>SFDX: Preview Component Locally</b></span><br />
<span face=""verdana" , sans-serif"><br /></span>
<span face=""verdana" , sans-serif"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtDgo5JCv1PsHPrl2GyajXFX2eeEL9A3kqiBYD6bJFZsm21F_inTRLRc_7MEKgGpbWAyWlaB_y5Sl_MKEmIyrMcbRQ8fq4wgOIUbLhRJyW4Q_BUZhsDY7Ow99JTmGYeC_-2uTvZYoweSQ/s1600/Screenshot+2020-05-27+at+5.07.10+PM.png"><img alt="List Iteration in Salesforce Lightning Web Component (LWC)" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtDgo5JCv1PsHPrl2GyajXFX2eeEL9A3kqiBYD6bJFZsm21F_inTRLRc_7MEKgGpbWAyWlaB_y5Sl_MKEmIyrMcbRQ8fq4wgOIUbLhRJyW4Q_BUZhsDY7Ow99JTmGYeC_-2uTvZYoweSQ/s1600/Screenshot+2020-05-27+at+5.07.10+PM.png" title="List Iteration in Salesforce Lightning Web Component (LWC)" /></a></span><br />
<div>
<br /></div>
<span face=""verdana" , sans-serif">And finally, just the output will open in your browser as :</span><br />
<span face=""verdana" , sans-serif"><br /></span>
<span face=""verdana" , sans-serif"><b>OUTPUT :</b></span><br />
<span face=""verdana" , sans-serif">-------------------------------------------------------</span><br />
<span face=""verdana" , sans-serif"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibqtV8baMcPYAEybp1LfU6_jqI4-HzdwnD5Xj52vrdxz78OJ2t1LRL7bgbcVxyxbs0HmJZpgM5qgIikhB56YdRaoc8i1k5Qr1YD5KHXKlQInIKVkOwJzjnXqo2yOTqQ9Uh91NpWxZGxMw/s1600/Screenshot+2020-05-27+at+5.12.26+PM.png"><img alt="List Iteration in Salesforce Lightning Web Component (LWC)" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibqtV8baMcPYAEybp1LfU6_jqI4-HzdwnD5Xj52vrdxz78OJ2t1LRL7bgbcVxyxbs0HmJZpgM5qgIikhB56YdRaoc8i1k5Qr1YD5KHXKlQInIKVkOwJzjnXqo2yOTqQ9Uh91NpWxZGxMw/s1600/Screenshot+2020-05-27+at+5.12.26+PM.png" title="List Iteration in Salesforce Lightning Web Component (LWC)" /></a></span><br />
<span face=""verdana" , sans-serif">-------------------------------------------------------</span><br />
<span face=""verdana" , sans-serif"><br /></span>
<span face=""verdana" , sans-serif">Coool !! 😎 Right ?? Go...Go...Go...Kid 🏃♂️</span><br />
<span face=""verdana" , sans-serif"><br /></span>
<span face=""verdana" , sans-serif">Now let's take a look at another way of List Iteration by using <b>Iterator</b>.</span><br />
<span face=""verdana" , sans-serif"><b><br /></b></span>
<span face=""verdana" , sans-serif"><b style="font-size: x-large;">2. Iterator :</b></span><br />
<span face=""verdana" , sans-serif">This is an another way of iterating the list in HTML template.</span><br />
<span face=""verdana" , sans-serif"><br /></span>
<span face=""verdana" , sans-serif">The key difference from <b>for:each</b> is, In <b>Iterator</b> we can identify the <b>first</b> and <b>last</b> item from the list. </span><br />
<span face=""verdana" , sans-serif"><br /></span>
<span face=""verdana" , sans-serif">This can be used when you want to take any decision based on the first and last item from the list. the best example is pagination of a list where you can want to stop going forward or back based on the first and last page of the list.</span><br />
<span face=""verdana" , sans-serif"><br /></span>
<span face=""verdana" , sans-serif">Let's take a look at Syntax of Iterator :</span><br />
<span face=""verdana" , sans-serif"><br /></span>
<span face=""verdana" , sans-serif"><b>SYNTAX :</b></span><br />
<span face=""verdana" , sans-serif"><span face=""verdana" , sans-serif">-------------------------------------------------------</span></span><br />
<span style="font-family: "courier new" , "courier" , monospace;"><b><template></b></span><br />
<span style="font-family: "courier new" , "courier" , monospace;"><b> <template </b></span><b><span style="font-family: "courier new" , "courier" , monospace;"><span style="color: #38761d;">iterator:it=</span><span style="color: #0b5394;">{list}</span></span></b><span style="font-family: "courier new" , "courier" , monospace;"><b>></b></span><br />
<span style="font-family: "courier new" , "courier" , monospace;"><b> <div </b></span><b><span style="font-family: "courier new" , "courier" , monospace;"><span style="color: #38761d;">key=</span><span style="color: #0b5394;">{it.uniqueKey}</span></span></b><span style="font-family: "courier new" , "courier" , monospace;"><b>></b></span><br />
<span style="font-family: "courier new" , "courier" , monospace;"><b> <div </b></span><b style="font-family: "Courier New", Courier, monospace;"><span style="color: #38761d;">if:true=</span><span style="color: #0b5394;">{it.first}</span></b><span style="font-family: "courier new" , "courier" , monospace;"><b> </b></span><b><span style="font-family: "courier new" , "courier" , monospace;"><span style="color: #38761d;">class=</span><span style="color: #b45f06;">"doSomething"</span></span></b><b style="font-family: "Courier New", Courier, monospace;">></b><br />
<b style="font-family: "Courier New", Courier, monospace;"> </div></b><br />
<span style="font-family: "courier new" , "courier" , monospace;"><b> </b></span><b><span style="font-family: "courier new" , "courier" , monospace;">{it.listItemlabel}</span></b><br />
<span style="font-family: "courier new" , "courier" , monospace;"><b> <div </b></span><b><span style="font-family: "courier new" , "courier" , monospace;"><span style="color: #38761d;">if:true=</span><span style="color: #0b5394;">{it.last}</span></span></b><span style="font-family: "courier new" , "courier" , monospace;"><b> </b></span><b><span style="font-family: "courier new" , "courier" , monospace;"><span style="color: #38761d;">class=</span><span style="color: #b45f06;">"doSomething"</span></span></b><b style="font-family: "Courier New", Courier, monospace;">></b><br />
<b style="font-family: "Courier New", Courier, monospace;"> </div></b><br />
<span style="font-family: "courier new" , "courier" , monospace;"><b> </div></b></span><br />
<span style="font-family: "courier new" , "courier" , monospace;"><b> </template></b></span><br />
<span style="font-family: "courier new" , "courier" , monospace;"><b></template></b></span><br />
<span face=""verdana" , sans-serif">-------------------------------------------------------</span><br />
<span face=""verdana" , sans-serif"><span face=""verdana" , sans-serif"><br /></span></span>
<span face=""verdana" , sans-serif"><span face=""verdana" , sans-serif">In the above code </span></span><span style="color: #0b5394; font-family: "courier new" , "courier" , monospace; font-weight: bold;">{list} </span><span face=""verdana" , sans-serif">is the main list</span><span style="color: #0b5394; font-family: "courier new" , "courier" , monospace;"><b>.</b></span><br />
<span style="color: #0b5394; font-family: "courier new" , "courier" , monospace;"><b><br /></b></span>
<span style="color: #38761d; font-family: "courier new" , "courier" , monospace; font-weight: bold;">if:true=</span><span style="color: #0b5394; font-family: "courier new" , "courier" , monospace; font-weight: bold;">{it.first} </span><span face=""verdana" , sans-serif">is the check for first item in the list.</span><br />
<span face=""verdana" , sans-serif"><br /></span>
<span style="color: #38761d; font-family: "courier new" , "courier" , monospace; font-weight: bold;">class=</span><b style="color: #b45f06; font-family: "Courier New", Courier, monospace;">"doSomething" </b><span face=""verdana" , sans-serif">is the action taken on the first item in the list as here I have used the different class for the first item.</span><br />
<span face=""verdana" , sans-serif">This can be other action as well as we can take different action by calling javascript </span><br />
<span face=""verdana" , sans-serif"><br /></span>
<span style="color: #38761d; font-family: "courier new" , "courier" , monospace; font-weight: bold;">key=</span><b style="color: #0b5394; font-family: "Courier New", Courier, monospace;">{it.uniqueKey} </b><span face=""verdana" , sans-serif">is the unique key same as before to keep the item unique with this value in the list.</span><br />
<span face=""verdana" , sans-serif"><br /></span>
<span style="color: #38761d; font-family: "courier new" , "courier" , monospace; font-weight: bold;">if:true=</span><b style="color: #0b5394; font-family: "Courier New", Courier, monospace;">{it.last} </b><span face=""verdana" , sans-serif">is to check for the last item in the list and take necessary action.</span><br />
<span face=""verdana" , sans-serif"><br /></span>
<span face=""verdana" , sans-serif">Let's understand by creating a new LWC Component for Iterator 😊.</span><br />
<span face=""verdana" , sans-serif"><br /></span>
<span face=""verdana" , sans-serif">Follow the below steps :</span><br />
<span face=""verdana" , sans-serif"><br /></span>
<span face=""verdana" , sans-serif"><b>STEP 1 :</b></span><br />
<span face=""verdana" , sans-serif">Create a new Lightning web component called<b> lwcForIterator </b>from VS Code.</span><br />
<span face=""verdana" , sans-serif"><br /></span>
<b style="font-family: Verdana, sans-serif;">STEP 2 :</b><br />
<span face=""verdana" , sans-serif">Write the code as below :</span><br />
<span face=""verdana" , sans-serif"><br /></span>
<b style="font-family: Verdana, sans-serif;">lwcForIterator.html</b><br />
<span face=""verdana" , sans-serif">-------------------------------------------------------</span><br />
<div style="background-color: #1e1e1e; color: #d4d4d4; font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; line-height: 18px; white-space: pre;">
<div>
<b><span style="color: grey;"><</span><span style="color: #569cd6;">template</span><span style="color: grey;">></span></b></div>
<div>
<b> <span style="color: grey;"><</span><span style="color: #569cd6;">lightning-card</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"myfont"</span><span style="color: grey;">></span></b></div>
<div>
<b> <span style="color: grey;"><</span><span style="color: #569cd6;">b</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"myTitle"</span><span style="color: grey;">></span>For:Each List :<span style="color: grey;"></</span><span style="color: #569cd6;">b</span><span style="color: grey;">></span></b></div>
<div>
<b> <span style="color: grey;"><</span><span style="color: #569cd6;">template</span> <span style="color: #9cdcfe;">iterator:it</span>=<span style="color: #ce9178;">{contacts}</span><span style="color: grey;">></span></b></div>
<div>
<b> <span style="color: grey;"><</span><span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">key</span>=<span style="color: #ce9178;">{it.value.Id}</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"mypad"</span><span style="color: grey;">></span></b></div>
<div>
<b> <span style="color: grey;"><</span><span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">if:true</span>=<span style="color: #ce9178;">{it.first}</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"changeFirst"</span><span style="color: grey;">></span></b></div>
<div>
<b> This is first</b></div>
<div>
<b> <span style="color: grey;"></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></b></div>
<div>
<b> Id : {it.value.Id},<span style="color: grey;"><</span><span style="color: #569cd6;">br</span><span style="color: grey;">/></span></b></div>
<div>
<b> Name : {it.value.Name},<span style="color: grey;"><</span><span style="color: #569cd6;">br</span><span style="color: grey;">/></span></b></div>
<div>
<b> Website : {it.value.Website}</b></div>
<div>
<b> <span style="color: grey;"><</span><span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">if:true</span>=<span style="color: #ce9178;">{it.last}</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"changeLast"</span><span style="color: grey;">></span></b></div>
<div>
<b> This is last</b></div>
<div>
<b> <span style="color: grey;"></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></b></div>
<div>
<b> <span style="color: grey;"></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></b></div>
<div>
<b> <span style="color: grey;"></</span><span style="color: #569cd6;">template</span><span style="color: grey;">></span></b></div>
<div>
<b> <span style="color: grey;"></</span><span style="color: #569cd6;">lightning-card</span><span style="color: grey;">></span></b></div>
<div>
<b><span style="color: grey;"></</span><span style="color: #569cd6;">template</span><span style="color: grey;">></span></b></div>
</div>
<span face=""verdana" , sans-serif">-------------------------------------------------------</span><br />
<span face=""verdana" , sans-serif"><br /></span>
<span face=""verdana" , sans-serif">In the above HTML template, you can see we have used the same pattern from the syntax.</span><br />
<span face=""verdana" , sans-serif"><br /></span>
<span face=""verdana" , sans-serif">Where as </span><span face=""verdana" , sans-serif"><b style="color: #b45f06;">changeFirst </b>is the class will be applied if the element is first from the div tag.</span><br />
<span face=""verdana" , sans-serif"><br /></span>
<span face=""verdana" , sans-serif">And <span style="color: #b45f06; font-weight: bold;">changeLast </span>is the last class will be applied if the element is last from the div tag.</span><br />
<span face=""verdana" , sans-serif">Hence for the rest of the elements, these class will not be applied. We will have a great look when we preview the output.</span><br />
<span face=""verdana" , sans-serif"><br /></span>
<b style="font-family: Verdana, sans-serif;">lwcForIterator.js</b><br />
<span face=""verdana" , sans-serif">-------------------------------------------------------</span><br />
<div style="background-color: #1e1e1e; color: #d4d4d4; font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; line-height: 18px; white-space: pre;">
<div>
<b><span style="color: #c586c0;">import</span> { <span style="color: #9cdcfe;">LightningElement</span> } <span style="color: #c586c0;">from</span> <span style="color: #ce9178;">'lwc'</span>;</b></div>
<div>
<b><span style="color: #c586c0;">export</span> <span style="color: #c586c0;">default</span> <span style="color: #569cd6;">class</span> <span style="color: #4ec9b0;">LwcForIterator</span> <span style="color: #569cd6;">extends</span> <span style="color: #4ec9b0;">LightningElement</span> {</b></div>
<div>
<span style="color: #6a9955;"><b>//This contacts is our list for this demo</b></span></div>
<div>
<b> <span style="color: #9cdcfe;">contacts</span> = [</b></div>
<div>
<b> { </b></div>
<div>
<b> <span style="color: #9cdcfe;">Id</span><span style="color: #9cdcfe;"> :</span> <span style="color: #ce9178;">'1001'</span>,</b></div>
<div>
<b> <span style="color: #9cdcfe;">Name</span><span style="color: #9cdcfe;"> :</span> <span style="color: #ce9178;">'Ajinkya Dhas'</span>,</b></div>
<div>
<b> <span style="color: #9cdcfe;">Website</span><span style="color: #9cdcfe;"> :</span> <span style="color: #ce9178;">'www.salesforcekid.com'</span></b></div>
<div>
<b> },</b></div>
<div>
<b> {</b></div>
<div>
<b> <span style="color: #9cdcfe;">Id</span><span style="color: #9cdcfe;"> :</span> <span style="color: #ce9178;">'1002'</span>,</b></div>
<div>
<b> <span style="color: #9cdcfe;">Name</span><span style="color: #9cdcfe;"> :</span> <span style="color: #ce9178;">'Steve Jobs'</span>,</b></div>
<div>
<b> <span style="color: #9cdcfe;">Website</span><span style="color: #9cdcfe;"> :</span> <span style="color: #ce9178;">'www.apple.com'</span></b></div>
<div>
<b> },</b></div>
<div>
<b> {</b></div>
<div>
<b> <span style="color: #9cdcfe;">Id</span><span style="color: #9cdcfe;"> :</span> <span style="color: #ce9178;">'1003'</span>,</b></div>
<div>
<b> <span style="color: #9cdcfe;">Name</span><span style="color: #9cdcfe;"> :</span> <span style="color: #ce9178;">'Marc Benioff'</span>,</b></div>
<div>
<b> <span style="color: #9cdcfe;">Website</span><span style="color: #9cdcfe;"> :</span> <span style="color: #ce9178;">'www.salesforce.com'</span></b></div>
<div>
<b> },</b></div>
<div>
<b> {</b></div>
<div>
<b> <span style="color: #9cdcfe;">Id</span><span style="color: #9cdcfe;"> :</span> <span style="color: #ce9178;">'1004'</span>,</b></div>
<div>
<b> <span style="color: #9cdcfe;">Name</span><span style="color: #9cdcfe;"> :</span> <span style="color: #ce9178;">'Bill Gates'</span>,</b></div>
<div>
<b> <span style="color: #9cdcfe;">Website</span><span style="color: #9cdcfe;"> :</span> <span style="color: #ce9178;">'www.microsoft.com'</span></b></div>
<div>
<b> }</b></div>
<div>
<b> ];</b></div>
<div>
<b>}</b></div>
</div>
<span face=""verdana" , sans-serif">-------------------------------------------------------</span><br />
<br />
<span face=""verdana" , sans-serif">We are using the same contacts list to iterate as we just need the list from javascript file.</span><br />
<span face=""verdana" , sans-serif"><br /></span>
<span face=""verdana" , sans-serif">Similar to the previous component we need to create the <b>new </b>CSS file called as <b>lwcForIterator.css </b>as below to provide the styling.</span><br />
<span face=""verdana" , sans-serif"><br /></span>
<b style="font-family: Verdana, sans-serif;">lwcForIterator.css</b><br />
<span face=""verdana" , sans-serif">-------------------------------------------------------</span><br />
<div style="background-color: #1e1e1e; color: #d4d4d4; font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; line-height: 18px; white-space: pre;">
<div>
<b><span style="color: #d7ba7d;"> .myfont</span>{</b></div>
<div>
<b> <span style="color: #9cdcfe;">font-family</span>: <span style="color: #ce9178;">sans-serif</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">font-weight</span>: <span style="color: #ce9178;">lighter</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">font-size</span>: <span style="color: #b5cea8;">14px</span>;</b></div>
<div>
<b> </b></div>
<div>
<b> }</b></div>
<div>
<b> <span style="color: #d7ba7d;">.mypad</span>{</b></div>
<div>
<b> <span style="color: #9cdcfe;">padding</span>: <span style="color: #b5cea8;">10px</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">background-color</span> : <span style="color: #ce9178;">#aacfcf</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">margin-top</span>: <span style="color: #b5cea8;">3px</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">border-radius</span>: <span style="color: #b5cea8;">0.2rem</span>;</b></div>
<div>
<b> }</b></div>
<div>
<b> <span style="color: #d7ba7d;">.myTitle</span>{</b></div>
<div>
<b> <span style="color: #9cdcfe;">font-size</span>: <span style="color: #b5cea8;">20px</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">font-weight</span>: <span style="color: #ce9178;">bold</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">position</span>: <span style="color: #ce9178;">relative</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">left</span>: <span style="color: #b5cea8;">20%</span>;</b></div>
<div>
<b> }</b></div>
<b><br /></b>
<div>
<b> <span style="color: #d7ba7d;">.changeFirst</span>{</b></div>
<div>
<b> <span style="color: #9cdcfe;">font-weight</span>: <span style="color: #ce9178;">bold</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">font-size</span>: <span style="color: #b5cea8;">15px</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">background-color</span>: <span style="color: #ce9178;">#e4e4e4</span>;</b></div>
<div>
<b> }</b></div>
<b><br /></b>
<div>
<b> <span style="color: #d7ba7d;">.changeLast</span>{</b></div>
<div>
<b> <span style="color: #9cdcfe;">font-weight</span>: <span style="color: #ce9178;">bold</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">font-size</span>: <span style="color: #b5cea8;">15px</span>;</b></div>
<div>
<b> <span style="color: #9cdcfe;">background-color</span>: <span style="color: #ce9178;">#e4e4e4</span>;</b></div>
<div>
<b> }</b></div>
</div>
<span face=""verdana" , sans-serif">-------------------------------------------------------</span><br />
<span face=""verdana" , sans-serif"><br /></span>
<span face=""verdana" , sans-serif">Now for preview just like before right-clicking on the component and select <b>SFDX: Preview Component Locally</b>.</span><br />
<span face=""verdana" , sans-serif"><br /></span>
<span face=""verdana" , sans-serif">And Hoolaaaa.......</span><br />
<span face=""verdana" , sans-serif"><br /></span>
<span face=""verdana" , sans-serif"><b>OUTPUT :</b></span><br />
<span face=""verdana" , sans-serif">-------------------------------------------------------</span><br />
<span face=""verdana" , sans-serif"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYqOKgHz01VZtsaYv48M9BdcqDgIo8-OoaPdZyISybJ7-4VLdUfQxM8bPqm4PHmheIuinCuI-MMmRzJM3D2lU6hmLqluYt59Lb_z2kbnorABQuFh3aF5bP2ItqnUcd6KJrmSYIRtjU-7k/s1600/Screenshot+2020-05-27+at+8.48.14+PM.png"><img alt="List Iteration in Salesforce Lightning Web Component (LWC)" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYqOKgHz01VZtsaYv48M9BdcqDgIo8-OoaPdZyISybJ7-4VLdUfQxM8bPqm4PHmheIuinCuI-MMmRzJM3D2lU6hmLqluYt59Lb_z2kbnorABQuFh3aF5bP2ItqnUcd6KJrmSYIRtjU-7k/s1600/Screenshot+2020-05-27+at+8.48.14+PM.png" title="List Iteration in Salesforce Lightning Web Component (LWC)" /></a></span><br />
<span face=""verdana" , sans-serif">-------------------------------------------------------</span><br />
<span face=""verdana" , sans-serif"><br /></span>
<span face=""verdana" , sans-serif">Woooo...As you can see in the output The Div tag with the applied CSS is visible separately above the first element and below the last element.</span><br />
<span face=""verdana" , sans-serif"><br /></span>
<span face=""verdana" , sans-serif">This example also demonstrates that <b>LWC</b> component behaviour of checking the first and last element from the list.</span><br />
<span face=""verdana" , sans-serif"><br /></span>
<span face=""verdana" , sans-serif">In the Next EPISODE, we will discuss the Conditional Rendering in Salesforce Lightning Web Component 😊.</span><br />
<span face=""verdana" , sans-serif"><br /></span>
<span face=""verdana" , sans-serif" style="font-size: small; font-weight: 400;"><b>WOHOOO !! YOU HAVE JUST COMPLETED LIST ITERATION IN LIGHTNING WEB COMPONENT (LWC)</b></span><span face=""verdana" , sans-serif"><span style="font-size: small; font-weight: 400;"> </span><b style="font-size: medium;">EPISODE</b></span><br />
<span face=""verdana" , sans-serif" style="background-color: white; font-size: 15px;">If you like this</span><span face=""verdana" , sans-serif" style="background-color: white; color: #5e5e5e; font-size: 15px;"> </span><a href="https://www.salesforcekid.com/" style="font-family: verdana, sans-serif;">salesforcekid</a><span face=""verdana" , sans-serif" style="background-color: white; color: #5e5e5e; font-size: 15px;"> </span><span face=""verdana" , sans-serif" style="background-color: white; font-size: 15px;">learning platform please let me know in the Comment section...Also, Share with your salesforce folks wish you all</span><br />
<span face=""verdana" , sans-serif" style="background-color: white; font-size: 15px;"><b>Happy Learning</b> ☁️⚡️ (Learn. Help. Share.) 😊</span><span face=""verdana" , sans-serif"> </span><br />
<span face=""verdana" , sans-serif"><br /></span>
<span face=""verdana" , sans-serif"><a href="https://www.salesforcekid.com/2020/05/data-binding-in-salesforce-lightning-web-component.html" style="font-weight: bold;"><< PREVIOUS</a><b> </b><a href="https://www.sfdckid.com//2020/05/lwc-conditional-rendering-in-salesforce.html"><b>NEXT >></b></a></span><br />
<span face=""verdana" , sans-serif"><br /></span>
<span face=""verdana" , sans-serif"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZV37Tey36GQaLgPRCI2GlB94BIwczEgjWE0i2EplIC_-Z5oZOqhrs5VcfkEkoB3cEkB2fKN-FIyS9-ABuYTJIRdqoLZLF26j_a37Zkp-f02DDGBbZlgkXXt6JzGzsiuIdpr3SoTF4bBw/s1600/blogBottom.jpg"><img alt="SalesforceKid by Ajinkya Dhas On play store" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZV37Tey36GQaLgPRCI2GlB94BIwczEgjWE0i2EplIC_-Z5oZOqhrs5VcfkEkoB3cEkB2fKN-FIyS9-ABuYTJIRdqoLZLF26j_a37Zkp-f02DDGBbZlgkXXt6JzGzsiuIdpr3SoTF4bBw/s1600/blogBottom.jpg" title="SalesforceKid by Ajinkya Dhas On play store" /></a></span></div>
</div>
AJINKYA DHAS http://www.blogger.com/profile/13223328981950114267noreply@blogger.com4tag:blogger.com,1999:blog-8457518975744463615.post-21748714288838212282020-05-25T01:13:00.000-07:002020-05-27T08:42:13.361-07:00Data Binding in Salesforce Lightning Web Component (LWC) <div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: center;">
<span style="font-family: "verdana" , sans-serif;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwlH_-0hhGP9acXRasWDfa4Y51iseE7-K8lRFI_ZcjHCGlZyxEd-i92zWduC6m31c9hCROcUirrzFSmtV6eTcxnrKbj9JHoNk4uJwFlSHiBInY5QrEbGrBEe0tCjZe0V5zeupiJPLG-MY/s1600/lwcDatabinding.jpg" imageanchor="1"><img alt="Data Binding in Salesforce Lightning Web Component (LWC) By SalesforceKid" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwlH_-0hhGP9acXRasWDfa4Y51iseE7-K8lRFI_ZcjHCGlZyxEd-i92zWduC6m31c9hCROcUirrzFSmtV6eTcxnrKbj9JHoNk4uJwFlSHiBInY5QrEbGrBEe0tCjZe0V5zeupiJPLG-MY/s1600/lwcDatabinding.jpg" title="Data Binding in Salesforce Lightning Web Component (LWC) By SalesforceKid" /></a></span></h2>
<h2 style="text-align: center;">
<span style="font-family: "verdana" , sans-serif;">Data Binding In LWC</span></h2>
<div>
<span style="font-family: "verdana" , sans-serif;">Hey kid !! I hope you are doing great. If you are salesforce enthusiast and want to learn lightning web component development from basics then you are at the right place.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">previously we have discussed the pre-requisites of salesforce lightning web component. From this EPISODE we are going to start back to basics series with this episode.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">So let's get started...</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif; font-size: large;"><b>What exactly is Data Binding ?</b></span></div>
<div>
<br /></div>
<div>
<span style="font-family: "verdana" , sans-serif;">have heard of front end and backend before ? Yes or maybe No. </span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">No worries let's understand from basics 😊.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b><br /></b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b>Let's have a look at below picture :</b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b><br /></b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj85OrKh3DRHRmDDJtnHqu8YOgtsMczBt7H5sCgZTIMj0UBTctJuwxQ83qfC2ntHYw8dZBqkS9kisVnY-GFqQCVnuPG3i1glxom4wIiIk80SCUPBMtKCs-W7nxt1-_TTeDbJRDvLJ7JPp8/s1600/lwc-dg1.jpg" imageanchor="1"><img alt="Data Binding in Salesforce Lightning Web Component (LWC) By SalesforceKid" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj85OrKh3DRHRmDDJtnHqu8YOgtsMczBt7H5sCgZTIMj0UBTctJuwxQ83qfC2ntHYw8dZBqkS9kisVnY-GFqQCVnuPG3i1glxom4wIiIk80SCUPBMtKCs-W7nxt1-_TTeDbJRDvLJ7JPp8/s1600/lwc-dg1.jpg" title="Data Binding in Salesforce Lightning Web Component (LWC) By SalesforceKid" /></a></b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">As you can see in the above picture we have 2 files <b>HTML </b>and <b>JavaScript. </b>When we are talking about web development we consider <b>HTML </b>as <b>front-end </b>and <b>JavaScript</b> as <b>backend</b> (client-side). Although we use <b>CSS</b> also for styling but we can ignore for understanding this concept.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">So We actually put the attribute on the front-end as in the above example it is <b>{Name} </b>and the value is coming from the client-side controller i.e. from the <b>javascript</b> file.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">So when we define the value for <b>Name </b>in javascript file then it will <b>HTML</b> will read that value from it and display on the page.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Before learning LWC we need to learn some web development basic concepts to understand this flow.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">As you can see its empty at the moment, as we have not defined anything in the backend. Just try to understand the flow from below picture.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7XeA_-rIDe4CvFqCj121SxPfzwPYRy-Ws3u5u_iR6hg8gv5FSFPqpbLNkal2tOConJce2lVgMUy3swEPQpA9Ph4k-V-aAuPcseQcObtvD3kBfHQaqyvGoBMCxMM3uNrNSo6_CeF15pz8/s1600/lwc-dg2.jpg" imageanchor="1"><img alt="Data Binding in Salesforce Lightning Web Component (LWC) By SalesforceKid" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7XeA_-rIDe4CvFqCj121SxPfzwPYRy-Ws3u5u_iR6hg8gv5FSFPqpbLNkal2tOConJce2lVgMUy3swEPQpA9Ph4k-V-aAuPcseQcObtvD3kBfHQaqyvGoBMCxMM3uNrNSo6_CeF15pz8/s1600/lwc-dg2.jpg" title="Data Binding in Salesforce Lightning Web Component (LWC) By SalesforceKid" /></a></span></div>
<div>
<br /></div>
<div>
<span style="font-family: "verdana" , sans-serif;">In the above example as you can see when we define the value or via logic then that value will automatically reflect from <b>JavaScript</b> to <b>HTML</b> and display on the screen.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">In the above picture, we have defined the value of Name as <b>'SalesforceKid' </b>and it reflects in the input box of <b>HTML</b> File.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">If I conclude all of the above then => Its and communication of front end and backend to display data. A journey from <b>HTML</b> To <b>JavaScript</b> for <b>value/data </b>and similarly <b>CSS</b> to <b>HTML</b> for the <b>styling</b> of your components on the screen. LWC also follows a similar communication pattern.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Now let's get back to Salesforce Lightning Web Components ⚡️.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">As we have learned how to set up the VS code in the previous EPISODE we will directly start with creating the new components here.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif; font-size: large;"><b>Let's #Begin </b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif; font-size: large;"><b><br /></b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">So there are different type of ways to bind the data in LWC salesforce which we are going to learn as below :</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b>1. How to bind an HTML element to the component ?</b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b>2. How to use private property @track for data binding and reflecting on the screen ?</b></span></div>
<div>
<b style="font-family: Verdana, sans-serif;">3. How to use JavaScript getter property in LWC ?</b></div>
<div>
<br /></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b>Pre-requisites : </b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Create a new <b>project with manifest</b> and <b>authorize your org </b>in VS Code. </span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Let's begin with one by one above ways :</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b>#DataBinding Type 1</b></span></div>
<div>
<b style="font-family: Verdana, sans-serif;"><span style="font-size: large;">1. How to bind an HTML element to the component ?</span></b></div>
<div>
<b style="font-family: Verdana, sans-serif;"><span style="font-size: large;"><br /></span></b></div>
<div>
<b style="font-family: Verdana, sans-serif;"><span style="font-size: large;">STEP 1 :</span></b></div>
<div>
<br /></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Press <b>Ctrl+Shift+P </b>(Windows)<b> </b>or <b>Command+Shift+P</b> (Mac) and Hit a command <b>>SFDX: Create Lightning Web Component </b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQ7yqVa8aboeXckGtllgRc2bY2dIjIUEt70v4sXoBPgYYi56vQroFcD99puW2EtuEoZUJi8Tts3Kt4I11WDROvCJTpAtXYLQvqnULrWNCLbUD0v-iW1NBfoSBrrOHG_3kPJqTW-yuOKmg/s1600/Screenshot+2020-05-24+at+8.22.09+PM.png" imageanchor="1"><img alt="Data Binding in Salesforce Lightning Web Component (LWC) By SalesforceKid" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQ7yqVa8aboeXckGtllgRc2bY2dIjIUEt70v4sXoBPgYYi56vQroFcD99puW2EtuEoZUJi8Tts3Kt4I11WDROvCJTpAtXYLQvqnULrWNCLbUD0v-iW1NBfoSBrrOHG_3kPJqTW-yuOKmg/s1600/Screenshot+2020-05-24+at+8.22.09+PM.png" title="Data Binding in Salesforce Lightning Web Component (LWC) By SalesforceKid" /></a></span></div>
<div>
<br /></div>
<div>
<span style="font-family: "verdana" , sans-serif;">and provide a name <b>dataBindingType1.</b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Once the project is created you can see this file structure on the left panel under the lwc.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBmmwHAK17OmZ0Z9dx7DG8sYey68cWsgOiCCJ6ZAlpupE8IVQCqKc4GSg6ezP3zzh-6Orw6IYrPO2ciGEms1toi0eKX3DraegIYMbrgYM7D0enqPbZ3R36wiyhjZlZAGH7kHbCGN6XqTY/s1600/Screenshot+2020-05-24+at+8.25.46+PM.png" imageanchor="1"><img alt="Data Binding in Salesforce Lightning Web Component (LWC) By SalesforceKid" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBmmwHAK17OmZ0Z9dx7DG8sYey68cWsgOiCCJ6ZAlpupE8IVQCqKc4GSg6ezP3zzh-6Orw6IYrPO2ciGEms1toi0eKX3DraegIYMbrgYM7D0enqPbZ3R36wiyhjZlZAGH7kHbCGN6XqTY/s1600/Screenshot+2020-05-24+at+8.25.46+PM.png" title="Data Binding in Salesforce Lightning Web Component (LWC) By SalesforceKid" /></a></span></div>
<div>
<br /></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Like this....</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<b style="font-family: Verdana, sans-serif;"><span style="font-size: large;">STEP 2 :</span></b></div>
<div>
<b style="font-family: Verdana, sans-serif;"><br /></b></div>
<div>
<span style="font-family: "verdana" , sans-serif;">In the <b>HTML </b>file write the following code :</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<b style="font-family: Verdana, sans-serif;">dataBindingType1.html :</b></div>
<div>
<span style="font-family: "verdana" , sans-serif;">------------------------------------------------------------</span></div>
<div>
<div style="background-color: #1e1e1e; color: #d4d4d4; font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; line-height: 18px; white-space: pre;">
<div>
<span style="color: grey;"><</span><span style="color: #569cd6;">template</span><span style="color: grey;">></span></div>
<div>
<span style="color: grey;"><</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></div>
<div>
Hello, {name} Welcome to salesforceKid</div>
<div>
<span style="color: grey;"></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></div>
<div>
<span style="color: grey;"></</span><span style="color: #569cd6;">template</span><span style="color: grey;">></span></div>
</div>
</div>
<div>
<span style="font-family: "verdana" , sans-serif;">------------------------------------------------------------</span></div>
<div>
<br /></div>
<div>
<span style="font-family: "verdana" , sans-serif;">In the above HTML file, we have written just a simple line in which the value of <b>{name} </b>will be requested from backend i.e. JavaScript file.</span></div>
<div>
<br /></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Point to be noted here is the simplicity of defining the markup. As you can see, unlike Aura component we <b>don't have to write</b> <b>{!v.name} </b>here. Just put your attribute in curly brackets like<b> {name}</b> and there you go.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Simple and easy right ? </span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<b style="font-family: Verdana, sans-serif;">dataBindingType1.js :</b></div>
<div>
<span style="font-family: "verdana" , sans-serif;">------------------------------------------------------------</span></div>
<div>
<div style="background-color: #1e1e1e; color: #d4d4d4; font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; line-height: 18px; white-space: pre;">
<div>
<span style="color: #c586c0;">import</span> { <span style="color: #9cdcfe;">LightningElement</span> } <span style="color: #c586c0;">from</span> <span style="color: #ce9178;">'lwc'</span>;</div>
<br />
<div>
<span style="color: #c586c0;">export</span> <span style="color: #c586c0;">default</span> <span style="color: #569cd6;">class</span> <span style="color: #4ec9b0;">DataBindingType1</span> <span style="color: #569cd6;">extends</span> <span style="color: #4ec9b0;">LightningElement</span>{</div>
<div>
<span style="color: #9cdcfe;">name</span> = <span style="color: #ce9178;">'Ajinkya'</span>;</div>
<div>
}</div>
</div>
</div>
<div>
<span style="font-family: "verdana" , sans-serif;">------------------------------------------------------------</span></div>
<div>
<br /></div>
<div>
<span style="font-family: "verdana" , sans-serif;">In the above JavaScript, we have just defined the <b>name</b> attribute (same as HTML) and <b>defined</b> the name as <b>'Ajinkya' </b>that's it.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<b style="font-family: Verdana, sans-serif;">dataBindingType1.js-meta.xml :</b></div>
<div>
<span style="font-family: "verdana" , sans-serif;">------------------------------------------------------------</span></div>
<div>
<div style="background-color: #1e1e1e; color: #d4d4d4; font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; line-height: 18px; white-space: pre;">
<div>
<span style="color: grey;"><?</span><span style="color: #569cd6;">xml</span><span style="color: #9cdcfe;"> version</span>=<span style="color: #ce9178;">"1.0"</span><span style="color: #9cdcfe;"> encoding</span>=<span style="color: #ce9178;">"UTF-8"</span><span style="color: grey;">?></span></div>
<div>
<span style="color: grey;"><</span><span style="color: #569cd6;">LightningComponentBundle</span> <span style="color: #9cdcfe;">xmlns</span>=<span style="color: #ce9178;">"http://soap.sforce.com/2006/04/metadata"</span><span style="color: grey;">></span></div>
<div>
<span style="color: grey;"><</span><span style="color: #569cd6;">apiVersion</span><span style="color: grey;">></span>48.0<span style="color: grey;"></</span><span style="color: #569cd6;">apiVersion</span><span style="color: grey;">></span></div>
<div>
<span style="color: grey;"><</span><span style="color: #569cd6;">isExposed</span><span style="color: grey;">></span>true<span style="color: grey;"></</span><span style="color: #569cd6;">isExposed</span><span style="color: grey;">></span></div>
<div>
<span style="color: grey;"></</span><span style="color: #569cd6;">LightningComponentBundle</span><span style="color: grey;">></span></div>
</div>
</div>
<div>
<span style="font-family: "verdana" , sans-serif;">------------------------------------------------------------</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">To expose our component we need to make <b>isExposed</b> as <b>True </b>we will discuss this in further Episodes.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<b style="font-family: Verdana, sans-serif;"><span style="font-size: large;">STEP 3 :</span></b></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Now to take a preview you have two choices :</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b>1. Add this component to lightning application</b> and take a preview (Just like aura component).</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">------------------------------------------------------------</span></div>
<div>
<div style="background-color: #1e1e1e; color: #d4d4d4; font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; line-height: 18px; white-space: pre;">
<div>
<span style="color: grey;"><</span><span style="color: #569cd6;">aura:application</span> <span style="color: #9cdcfe;">extends</span>=<span style="color: #ce9178;">"force:slds"</span><span style="color: grey;">></span></div>
<div>
<span style="color: grey;"><</span><span style="color: #569cd6;">c:dataBindingType1</span><span style="color: grey;">/></span></div>
<div>
<span style="color: grey;"></</span><span style="color: #569cd6;">aura:application</span><span style="color: grey;">></span> </div>
</div>
</div>
<div>
<span style="font-family: "verdana" , sans-serif;">------------------------------------------------------------</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b>2. Install Local development</b> <span style="color: #660000;">(newly release)</span> setup in vs code to preview your components locally.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">To do this just <b>open your terminal in VS code</b> and <b>run</b> below two <b>commands</b> </span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b>command 1 :</b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">------------------------------------------------------------</span></div>
<div>
<b><code class="VisualForce plain" style="background-attachment: initial !important; background-clip: initial !important; background-image: initial !important; background-origin: initial !important; background-position: 0px 0px !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 14px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre; width: auto !important;">sfdx plugins:install </code><code class="VisualForce color1" style="background-attachment: initial !important; background-clip: initial !important; background-image: initial !important; background-origin: initial !important; background-position: 0px 0px !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: grey !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 14px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre; width: auto !important;">@salesforce</code><code class="VisualForce plain" style="background-attachment: initial !important; background-clip: initial !important; background-image: initial !important; background-origin: initial !important; background-position: 0px 0px !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 14px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre; width: auto !important;">/lwc-dev-server</code><span style="font-family: "verdana" , sans-serif;"> </span></b></div>
<div>
<span style="font-family: "verdana" , sans-serif;">------------------------------------------------------------</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b>command 2 :</b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">------------------------------------------------------------</span></div>
<div>
<b><code class="VisualForce plain" style="background-attachment: initial !important; background-clip: initial !important; background-image: initial !important; background-origin: initial !important; background-position: 0px 0px !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 14px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre; width: auto !important;">sfdx force:lightning:lw</code><code class="VisualForce vfTag" style="background-attachment: initial !important; background-clip: initial !important; background-image: initial !important; background-origin: initial !important; background-position: 0px 0px !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 14px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre; width: auto !important;">c</code><code class="VisualForce vfTag" style="background-attachment: initial !important; background-clip: initial !important; background-image: initial !important; background-origin: initial !important; background-position: 0px 0px !important; background-repeat: initial !important; background-size: initial !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; box-sizing: content-box !important; color: rgb(63, 127, 127) !important; float: none !important; font-family: Consolas, "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; font-size: 14px; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; min-height: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; white-space: pre; width: auto !important;">:start</code></b></div>
<div>
<span style="font-family: "verdana" , sans-serif;">------------------------------------------------------------</span></div>
</div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">and that's now you can display your <b>preview </b></span><span style="font-family: "verdana" , sans-serif;"><b style="color: #666666;">localhost:3333 </b>port in your browser.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<b style="font-family: Verdana, sans-serif;"><span style="font-size: large;">STEP 4 :</span></b></div>
<div>
<b style="font-family: Verdana, sans-serif;"><br /></b></div>
<div>
<span style="font-family: "verdana" , sans-serif;">now whenever you right-click on the lwc components.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBQ_DAkrTFHxnRoQFjRIRpb7TRlqVHQW4vtdV6rPSD8ns1vTLqjto5e5_bbp6D3Hcdc7J4jpThw32CubWJWP3SHn6ijjiwS7EnrT8dvWw0qYYR65gY0c1ON0m32mNGscuwSGOCxNj2iI0/s1600/Screenshot+2020-05-24+at+9.35.22+PM.png" imageanchor="1"><img alt="Data Binding in Salesforce Lightning Web Component (LWC) By SalesforceKid" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBQ_DAkrTFHxnRoQFjRIRpb7TRlqVHQW4vtdV6rPSD8ns1vTLqjto5e5_bbp6D3Hcdc7J4jpThw32CubWJWP3SHn6ijjiwS7EnrT8dvWw0qYYR65gY0c1ON0m32mNGscuwSGOCxNj2iI0/s1600/Screenshot+2020-05-24+at+9.35.22+PM.png" title="Data Binding in Salesforce Lightning Web Component (LWC) By SalesforceKid" /></a></span></div>
<div>
<br /></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Once you click on <b>Preview Component Locally </b>you can preview it without adding or deploying to your salesforce org. Isn't it so cool ?</span></div>
<div>
<br /></div>
<div>
<span style="font-family: "verdana" , sans-serif;">So the output will look like this :</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">------------------------------------------------------------</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNCYwQSBzE7Jm0qkixmnOwWAHYWTqSW8qkXYBoztViJu56Uq0_MhdZYMIl86k9pPfwSYlSYVC4_gghfOanCQjhngOQyrBQ5bNxLX-ZNY1Bxw-VqP70SZZPQi2mFbY7eepoOX-sJrY-DtA/s1600/Screenshot+2020-05-24+at+9.39.44+PM.png" imageanchor="1"><img alt="Data Binding in Salesforce Lightning Web Component (LWC) By SalesforceKid" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNCYwQSBzE7Jm0qkixmnOwWAHYWTqSW8qkXYBoztViJu56Uq0_MhdZYMIl86k9pPfwSYlSYVC4_gghfOanCQjhngOQyrBQ5bNxLX-ZNY1Bxw-VqP70SZZPQi2mFbY7eepoOX-sJrY-DtA/s1600/Screenshot+2020-05-24+at+9.39.44+PM.png" title="Data Binding in Salesforce Lightning Web Component (LWC) By SalesforceKid" /></a></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">------------------------------------------------------------</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">As you can see in the first type, In the output <b>Ajinkya </b>is coming from our javascript <span style="color: #0b5394; font-weight: bold;">name = 'Ajinkya'. </span>and it completed the statement as "<b>Hello, <span style="color: #0b5394;">Ajinkya</span> Welcome to salesforcekid</b>".</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Now let's learn the next cool way of doing the data binding </span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<b style="font-family: Verdana, sans-serif;">#DataBinding Type 2</b></div>
<div>
<b style="font-family: Verdana, sans-serif;"><span style="font-size: large;">2. How to use private property @track for data binding and reflecting on the screen ?</span></b></div>
<div>
<br /></div>
<div>
<span style="font-family: "verdana" , sans-serif;">In this type, the <b>user will give input</b> and based on that input the javascript will get that value to compute and display the output to the user on HTML again. And the output will dynamically change based on the user input with the help of <b>@track property </b>as this is the private property to reflect the input change on the Screen.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Let's understand by creating a new lwc component :</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif; font-size: large;"><b>STEP 1 : </b></span></div>
<div>
<br /></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Create new lwc component from VS code called as <b>dataBindingType2.</b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b><br /></b></span></div>
<div>
<b style="font-family: verdana, sans-serif;"><span style="font-size: large;">STEP 2 :</span></b><br />
<br /></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Create the component with the below code :</span></div>
<div>
<br /></div>
<div>
<b style="font-family: Verdana, sans-serif;">dataBindingType2.html : </b></div>
<div>
<span style="font-family: "verdana" , sans-serif;">------------------------------------------------------------</span></div>
<div>
<div style="background-color: #1e1e1e; color: #d4d4d4; font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; line-height: 18px; white-space: pre;">
<div>
<span style="color: grey;"><</span><span style="color: #569cd6;">template</span><span style="color: grey;">></span></div>
<div>
<span style="color: grey;"><</span><span style="color: #569cd6;">lightning-card</span> <span style="color: #9cdcfe;">title</span>=<span style="color: #ce9178;">"Data Binding Type 2"</span><span style="color: grey;">></span></div>
<div>
</div>
<div>
<span style="color: grey;"><</span><span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"slds-p-around_medium"</span><span style="color: grey;">></span></div>
<div>
<span style="color: grey;"><</span><span style="color: #569cd6;">p</span> <span style="color: #9cdcfe;">style</span>=<span style="color: #ce9178;">"font-size:50px;font-weight:bold;"</span><span style="color: grey;">></span>Hello !! {name}<span style="color: grey;"></</span><span style="color: #569cd6;">p</span><span style="color: grey;">></span></div>
<div>
<span style="color: grey;"><</span><span style="color: #569cd6;">p</span><span style="color: grey;">></span>This is Data Second Type Of Data Binding in LWC<span style="color: grey;"></</span><span style="color: #569cd6;">p</span><span style="color: grey;">></span></div>
<div>
<span style="color: grey;"> <</span><span style="color: #569cd6;">br</span><span style="color: grey;">/></span></div>
<div>
<span style="color: grey;"><</span><span style="color: #569cd6;">lightning-input</span> <span style="color: #9cdcfe;">name</span>=<span style="color: #ce9178;">"Your Name"</span> </div>
<div>
<span style="color: #9cdcfe;">label</span>=<span style="color: #ce9178;">"Enter Your Name"</span> </div>
<div>
<span style="color: #9cdcfe;">value</span>=<span style="color: #ce9178;">{name}</span> </div>
<div>
<span style="color: #9cdcfe;">onchange</span>=<span style="color: #ce9178;">{handleChange}</span><span style="color: grey;">></span></div>
<div>
<span style="color: grey;"></</span><span style="color: #569cd6;">lightning-input</span><span style="color: grey;">></span></div>
<div>
<span style="color: grey;"></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></div>
<div>
<span style="color: grey;"></</span><span style="color: #569cd6;">lightning-card</span><span style="color: grey;">></span></div>
<div>
<span style="color: grey;"></</span><span style="color: #569cd6;">template</span><span style="color: grey;">></span></div>
</div>
</div>
<div>
<span style="font-family: "verdana" , sans-serif;">------------------------------------------------------------</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">In the above HTML file, we have a similar structure. only addition with the <b><lightning-input> </b>tag where we have defined the <b>name(name for input)</b>, <b>label </b>(label to display), <b>value </b>(input value), <b>onchange </b>(on changing of input call this function from .js file).</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Now here we are using <b>name </b>attribute as input value as well as displaying it on the screen.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Now take look at .js file below :</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<div>
<b style="font-family: Verdana, sans-serif;">dataBindingType2.js : </b></div>
<div>
<span style="font-family: "verdana" , sans-serif;">------------------------------------------------------------</span></div>
</div>
<div>
<div style="background-color: #1e1e1e; color: #d4d4d4; font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; line-height: 18px; white-space: pre;">
<div>
<span style="color: #c586c0;">import</span> { <span style="color: #9cdcfe;">LightningElement</span>,<span style="color: #9cdcfe;">track</span> } <span style="color: #c586c0;">from</span> <span style="color: #ce9178;">'lwc'</span>;</div>
<br />
<div>
<span style="color: #c586c0;">export</span> <span style="color: #c586c0;">default</span> <span style="color: #569cd6;">class</span> <span style="color: #4ec9b0;">DataBindingType2</span> <span style="color: #569cd6;">extends</span> <span style="color: #4ec9b0;">LightningElement</span> {</div>
<div>
@<span style="color: #dcdcaa;">track</span> <span style="color: #9cdcfe;">name</span> = <span style="color: #ce9178;">'Ajinkya'</span>;</div>
<br />
<div>
<span style="color: #dcdcaa;">handleChange</span>(<span style="color: #9cdcfe;">event</span>) {</div>
<div>
<span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">name</span> = <span style="color: #9cdcfe;">event</span>.<span style="color: #9cdcfe;">target</span>.<span style="color: #9cdcfe;">value</span>;</div>
<div>
}</div>
<div>
</div>
<div>
}</div>
</div>
</div>
<div>
<span style="font-family: "verdana" , sans-serif;">------------------------------------------------------------</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">In the above code, we have used <b>@track </b>in front of <b>name </b>variable so that whenever the input value will change it will track the updated value.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">in the next line, we have defined the function<b> handleChange(event){}. </b>As you can see how simple it is to define the function here in lwc than aura.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">As we are handling <b>onchange HTML event</b> in the javascript with the function, Hence we have written <b>(event) </b>in brackets.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Now in the next line <b><span style="color: #0b5394;">this.name = event.target.value;</span> </b>Oooooo what's this ????</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Chill.....let's break it down kid to understand it completely.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b><span style="color: #0b5394;">this.name </span>: </b>The variable <b>name</b> which we have defined at the beginning, we are just recalling it in the function to assign its changed value.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<b style="font-family: Verdana, sans-serif;"><span style="color: #0b5394;">event.target.value</span> : </b><span style="font-family: "verdana" , sans-serif;">This means from the onchange <b>event</b> I want the targeted value of <b>value </b>from the <b><lightning-input <span style="color: #0b5394;">value={name}</span>> .</b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Meaning<b>, </b>Whatever is there in value get that. </span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">If you want other parameters from the <b><lightning-input /> </b>tag you can get that as well like for <b>label </b>the syntax will be <b>event.target.label </b>likewise you can use this.</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif; font-size: large;"><b>STEP 3 :</b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">And finally time for output.....same as before just right click on your component and hit <b>SFDX: Preview Component Locally </b>or with <b>Lightning Application </b>choice is yours.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">It will look like this </span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b>OUTPUT :</b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">------------------------------------------------------------</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFcBNFP_ldeKhALdrr8zA06gTjczjWXXzneUHXKV0Vi37LHQAUqdPRG-xY2tSJt-FV9Qw1GZrP6RKjHSx0PeMZSwApk0YpztwiGSeqfSIUGW48Ef5jr3xd9ih97y1dKIpSj6O0iiTKD90/s1600/Screenshot+2020-05-24+at+11.03.18+PM.png" imageanchor="1"><img alt="Data Binding in Salesforce Lightning Web Component (LWC) By SalesforceKid" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFcBNFP_ldeKhALdrr8zA06gTjczjWXXzneUHXKV0Vi37LHQAUqdPRG-xY2tSJt-FV9Qw1GZrP6RKjHSx0PeMZSwApk0YpztwiGSeqfSIUGW48Ef5jr3xd9ih97y1dKIpSj6O0iiTKD90/s1600/Screenshot+2020-05-24+at+11.03.18+PM.png" title="Data Binding in Salesforce Lightning Web Component (LWC) By SalesforceKid" /></a></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">------------------------------------------------------------</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">If you change the default input it will also reflect on place where <b>name </b>is displaying like this :</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">------------------------------------------------------------</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhC1ZRsud7TY5mwgF9wgWKPtIo2RI73ezPBu1Qk0Hrlks1RDhFBLBg3J1M7JXFZcOC4eI6YG_wXhs-QFS8V4qKKPCwkv38Gw1QyctbPooclvgvBupzrgZ7_2jU1HQEMcv1rtuwTXEnE3UE/s1600/Screenshot+2020-05-24+at+11.04.41+PM.png" imageanchor="1"><img alt="Data Binding in Salesforce Lightning Web Component (LWC) By SalesforceKid" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhC1ZRsud7TY5mwgF9wgWKPtIo2RI73ezPBu1Qk0Hrlks1RDhFBLBg3J1M7JXFZcOC4eI6YG_wXhs-QFS8V4qKKPCwkv38Gw1QyctbPooclvgvBupzrgZ7_2jU1HQEMcv1rtuwTXEnE3UE/s1600/Screenshot+2020-05-24+at+11.04.41+PM.png" title="Data Binding in Salesforce Lightning Web Component (LWC) By SalesforceKid" /></a></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">------------------------------------------------------------</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Wohoooo Coool right ?? 🍻 Keep Calm we have one more way of doing this...</span></div>
<div>
<br /></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b>#DataBinding Type 3</b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif; font-size: large;"><b style="font-family: Verdana, sans-serif;">3. How to use JavaScript getter property in LWC ?</b></span><br />
<br />
<span style="font-family: "verdana" , sans-serif;">Whenever we want to dynamically calculate the value of property used in HTML Templates then we use the most powerful javascript function <b>getter property.</b></span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">Advantage of using this is the pain of unit testing and debugging as the outcome coming from this function is already validated in javascript file. So it will save your debugging effort.</span><br />
<span style="font-family: "verdana" , sans-serif;">Hence whenever your <b>component</b> <b>renders</b> for the first time <b>it also invokes</b> the <b>getters</b> from your <b>JavaScript</b> code.</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">So let's understand with the help of the example :</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif; font-size: large;"><b>STEP 1 :</b></span><br />
<span style="font-family: "verdana" , sans-serif;"><b><br /></b></span>
<span style="font-family: "verdana" , sans-serif;">Create a new lightning web component from the VS code called as </span><b style="font-family: verdana, sans-serif;">dataBindingType3.</b><br />
<b style="font-family: verdana, sans-serif;"><br /></b>
<b style="font-family: verdana, sans-serif;"><span style="font-size: large;">STEP 2 :</span></b><br />
<b style="font-family: verdana, sans-serif;"><br /></b>
<span style="font-family: "verdana" , sans-serif;">Create the components with the below codes :</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<b style="font-family: verdana, sans-serif;">dataBindingType3.html</b><br />
<span style="font-family: "verdana" , sans-serif;">------------------------------------------------------------</span><br />
<div style="background-color: #1e1e1e; color: #d4d4d4; font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; line-height: 18px; white-space: pre;">
<div style="line-height: 18px;">
<div>
<span style="color: grey;"><</span><span style="color: #569cd6;">template</span><span style="color: grey;">></span></div>
<div>
<span style="color: grey;"><</span><span style="color: #569cd6;">lightning-card</span> <span style="color: #9cdcfe;">title</span>=<span style="color: #ce9178;">"Data Binding Type 3"</span><span style="color: grey;">></span> </div>
<div>
<span style="color: #569cd6;">div</span> <span style="color: #9cdcfe;">class</span>=<span style="color: #ce9178;">"slds-p-around_medium"</span><span style="color: grey;">></span></div>
<div>
<span style="color: grey;"><</span><span style="color: #569cd6;">p</span> <span style="color: #9cdcfe;">style</span>=<span style="color: #ce9178;">"font-size:50px;font-weight:bold"</span><span style="color: grey;">></span>Hello !! {name}<span style="color: grey;"></</span><span style="color: #569cd6;">p</span><span style="color: grey;">></span></div>
<div>
<span style="color: #569cd6;">p</span><span style="color: grey;">></span>This is Third Type Of Data Binding in LWC<span style="color: grey;"></</span><span style="color: #569cd6;">p</span><span style="color: grey;">><</span><span style="color: #569cd6;">br</span><span style="color: grey;">/></span> </div>
<div>
Your Name and Blog Name is : <span style="color: grey;"><</span><span style="color: #569cd6;">strong</span><span style="color: grey;">></span>{blogname}<span style="color: grey;"></</span><span style="color: #569cd6;">strong</span><span style="color: grey;">></span></div>
<div>
<span style="color: grey;"></</span><span style="color: #569cd6;">div</span><span style="color: grey;">></span></div>
<div>
<span style="color: grey;"></</span><span style="color: #569cd6;">lightning-card</span><span style="color: grey;">></span></div>
<div>
<span style="color: grey;"></</span><span style="color: #569cd6;">template</span><span style="color: grey;">></span></div>
</div>
</div>
<span style="font-family: "verdana" , sans-serif;">------------------------------------------------------------</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">In the above HTML, we want values for <b>{name}</b> and <b>{blogname} </b>from <b>.js </b>file. That's it !! So we need to check the javascript file to understand how these values are actually computing in client-side controller (.js file).</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<b style="font-family: verdana, sans-serif;">dataBindingType3.js</b><br />
<span style="font-family: "verdana" , sans-serif;">------------------------------------------------------------</span><br />
<div style="background-color: #1e1e1e; color: #d4d4d4; font-family: Menlo, Monaco, "Courier New", monospace; font-size: 12px; line-height: 18px; white-space: pre;">
<div style="line-height: 18px;">
<div>
<span style="color: #c586c0;">import</span> { <span style="color: #9cdcfe;">LightningElement</span>} <span style="color: #c586c0;">from</span> <span style="color: #ce9178;">'lwc'</span>;</div>
<div>
<span style="color: #c586c0;">export</span> <span style="color: #c586c0;">default</span> <span style="color: #569cd6;">class</span> <span style="color: #4ec9b0;">DataBindingType3</span> <span style="color: #569cd6;">extends</span> <span style="color: #4ec9b0;">LightningElement</span> {</div>
<div>
<span style="color: #9cdcfe;">name</span> = <span style="color: #ce9178;">'Ajinkya'</span>;</div>
<div>
<span style="color: #9cdcfe;">blogName</span> = <span style="color: #ce9178;">'SalesforceKid'</span>;</div>
<div>
<span style="color: #569cd6;">get</span> <span style="color: #9cdcfe;">blogname</span>(){</div>
<div>
<span style="color: #569cd6;">const</span> <span style="color: #51b6c4;">completeName</span> = <span style="color: #ce9178;">`</span><span style="color: #569cd6;">${</span><span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">name</span><span style="color: #569cd6;">}</span><span style="color: #ce9178;"> </span><span style="color: #569cd6;">${</span><span style="color: #569cd6;">this</span>.<span style="color: #9cdcfe;">blogName</span><span style="color: #569cd6;">}</span><span style="color: #ce9178;"> `</span>;</div>
<div>
<span style="color: #c586c0;">return</span> <span style="color: #51b6c4;">completeName</span>.<span style="color: #dcdcaa;">trim</span>().<span style="color: #dcdcaa;">toLowerCase</span>();</div>
<div>
}</div>
<div>
}</div>
</div>
</div>
<span style="font-family: "verdana" , sans-serif;">------------------------------------------------------------</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">As you can see we declared the <b>name </b>and <b>blogName </b>with predefined values.</span><br />
<span style="font-family: "verdana" , sans-serif;">Hence whenever your lightning web component loads for the first time it will take these values and display on the screen right ??</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">The answer is NO !! </span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">As we know this .js file also contains the <b>get function </b>in it for <b>blogname</b>. Hence when component load for the first time it will take value for <b>name </b>as it is declared '<b>Ajinkya</b>' <b>BUT </b>for the blog name first it will take the predefined value then it will compute <b>get blogname() </b>function.</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">In <b>get blogname() </b>function we have defined one <b>const </b>variable called <b>completeName </b>which means the value in it will be constant<b>.</b></span><br />
<span style="font-family: "verdana" , sans-serif;"><b><br /></b></span>
<span style="font-family: "verdana" , sans-serif;">Then <b>`${this.name} $}{this.blogName}` </b>is the concatenation syntax in <b>modern JavaScript 😊 </b>it simply means<b> name + blogName</b>. and return the result in <b>Lower Case. </b></span><br />
<span style="font-family: "verdana" , sans-serif;"><b><br /></b></span>
<span style="font-family: "verdana" , sans-serif;">The Picture would be more clear with the output. So lets Go...Go...Go.</span><br />
<b style="font-family: verdana, sans-serif;"><br /></b>
<br />
<div>
<span style="font-family: "verdana" , sans-serif; font-size: large;"><b>STEP 3 :</b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">And finally time for output.....same as before just right click on your component and hit <b>SFDX: Preview Component Locally </b>or with <b>Lightning Application.</b></span><br />
<span style="font-family: "verdana" , sans-serif;"><b><br /></b></span>
<span style="font-family: "verdana" , sans-serif;">And the output will be :</span><br />
<span style="font-family: "verdana" , sans-serif;">------------------------------------------------------------</span><br />
<span style="font-family: "verdana" , sans-serif;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZcU0QE9Aq_xz3LZWmSp8IAHDlu9AmrOYkReaFmcsqWnAmVEyusq2f7TeoDNBTXAJ9OJP_qvHyEIQJEsV8HD_JvrwASPdwTVVeNag3CX1AxlGgJ12ci9__Vpoly76DwnGkqhAid3vRHA4/s1600/Screenshot+2020-05-25+at+1.00.01+PM.png" imageanchor="1"><img alt="Data Binding in Salesforce Lightning Web Component (LWC) By SalesforceKid" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZcU0QE9Aq_xz3LZWmSp8IAHDlu9AmrOYkReaFmcsqWnAmVEyusq2f7TeoDNBTXAJ9OJP_qvHyEIQJEsV8HD_JvrwASPdwTVVeNag3CX1AxlGgJ12ci9__Vpoly76DwnGkqhAid3vRHA4/s1600/Screenshot+2020-05-25+at+1.00.01+PM.png" title="Data Binding in Salesforce Lightning Web Component (LWC) By SalesforceKid" /></a></span></div>
<span style="font-family: "verdana" , sans-serif;">------------------------------------------------------------</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">Wooooo !! As you can see, At the place of <b>{name} </b>the output is <b>Ajinkya.</b></span><br />
<span style="font-family: "verdana" , sans-serif;">Whereas value at the place of <b>{blogname} </b>we have <b>name + blogname </b>that too in <b>lowerCase.</b></span><br />
<span style="font-family: "verdana" , sans-serif;"><b><br /></b></span>
<span style="font-family: "verdana" , sans-serif;"><b>⚡️</b>That's the power of <b>JavaScript Getter </b>Method to compute and bind the data when component loads.</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">Hence with these cool 3 ways, we can Bind our data and select the right way based on our requirement.</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">In the next EPISODE, we will discuss how we can render list of data in <b>Lightning Web Component </b>So stay tuned......Kid 🏃♂️</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif; font-size: small; font-weight: 400;"><b>WOHOOO !! YOU HAVE JUST COMPLETED DATA BINDING IN LIGHTNING WEB COMPONENT (LWC)</b></span><span style="font-family: "verdana" , sans-serif;"><span style="font-size: small; font-weight: 400;"> </span><b style="font-size: medium;">EPISODE</b></span><br />
<span style="background-color: white; font-family: "verdana" , sans-serif; font-size: 15px;">If you like this</span><span style="background-color: white; color: #5e5e5e; font-family: "verdana" , sans-serif; font-size: 15px;"> </span><a href="https://www.salesforcekid.com/" style="font-family: verdana, sans-serif;">salesforcekid</a><span style="background-color: white; color: #5e5e5e; font-family: "verdana" , sans-serif; font-size: 15px;"> </span><span style="background-color: white; font-family: "verdana" , sans-serif; font-size: 15px;">learning platform please let me know in the Comment section...Also, Share with your salesforce folks wish you all</span><br />
<span style="background-color: white; font-family: "verdana" , sans-serif; font-size: 15px;"><b>Happy Learning</b> ☁️⚡️ (Learn. Help. Share.) 😊</span><span style="font-family: "verdana" , sans-serif;"> </span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;"> <b> <a href="https://www.salesforcekid.com/2020/05/list-iteration-in-salesforce-lightning-web-component.html">NEXT >></a></b></span><br />
<b style="font-family: verdana, sans-serif;"></b>
<b style="font-family: verdana, sans-serif;"><br /></b>
<b style="font-family: verdana, sans-serif;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwx4wkZzspvFTCha5bydFGdMKlnZqTqcSByPHDB7bL7NftVsZ-I5jDjb7RA6VZMEj7a3Xa_iqANjEKdyqizU1tcn4m1XSjEkxCSLNeN7j6KtjiUHXSrxesECY9G3_9CbXz3dVh3q3jaXw/s1600/blogBottom.jpg" imageanchor="1"><img alt="Salesforcekid By Ajinkya Dhas on Play Store " border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwx4wkZzspvFTCha5bydFGdMKlnZqTqcSByPHDB7bL7NftVsZ-I5jDjb7RA6VZMEj7a3Xa_iqANjEKdyqizU1tcn4m1XSjEkxCSLNeN7j6KtjiUHXSrxesECY9G3_9CbXz3dVh3q3jaXw/s1600/blogBottom.jpg" title="Salesforcekid By Ajinkya Dhas on Play Store " /></a></b></div>
</div>
AJINKYA DHAS http://www.blogger.com/profile/13223328981950114267noreply@blogger.com3tag:blogger.com,1999:blog-8457518975744463615.post-19938885982385660012020-05-17T07:06:00.000-07:002020-07-15T00:32:28.857-07:00How To Take Complete Salesforce Org Backup With VS Code<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: center;">
<span style="font-family: "verdana" , sans-serif;"></span></h2>
<h2 style="text-align: center;">
<span style="font-family: "verdana" , sans-serif;"></span></h2>
<h2 style="text-align: center;">
<span style="font-family: "verdana" , sans-serif;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSGPRMgBqVzRqBGQBRaLIBaoBLdMlCHEated36nliI53TdAV_hEjtE8l8mHm3xd4nSQk6CudrPTRU_TmKRzaYdOXKX7rsQKsRNIzmpGDfNf872QDoSPxRmgkP3nCVSHzq-v9vOmHgIw-g/s1600/orgbackup.jpg" imageanchor="1"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSGPRMgBqVzRqBGQBRaLIBaoBLdMlCHEated36nliI53TdAV_hEjtE8l8mHm3xd4nSQk6CudrPTRU_TmKRzaYdOXKX7rsQKsRNIzmpGDfNf872QDoSPxRmgkP3nCVSHzq-v9vOmHgIw-g/s1600/orgbackup.jpg" /></a></span></h2>
<h2 style="text-align: center;">
<span style="font-family: "verdana" , sans-serif;">Salesforce Org Backup With VS Code</span></h2>
<div>
<span style="font-family: "verdana" , sans-serif;">Hey there !! I hope you are doing great. In today's post, we will be talking about how to take complete salesforce org backup with VS Code IDE.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">As a developer whenever we want to make any changes in the code or process builder, workflow etc. we need to have an old backup before making any changes.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">It's very frustrating sometimes right? because copypasting and maintaining those separate files is quite time-consuming. Hence we want something which can easily do this work. Although there are multiple ways to do this with the other tool, in this blog we will be discussing it with the help of the VS Code.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">So let's get started.....</span></div>
<div>
<br /></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Please follow the below steps :</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif; font-size: large;"><b>STEP 1 : </b></span></div>
<div style="text-align: left;">
<span style="font-family: "verdana" , sans-serif;">- Install VS Code from the there official website.</span></div>
<div style="text-align: left;">
<span style="font-family: "verdana" , sans-serif;">- Just like any other IDE complete the installation setup.</span></div>
<div style="text-align: left;">
<span style="font-family: "verdana" , sans-serif;">- Make sure to Install </span><span style="font-family: "verdana" , sans-serif;">Salesforce CLI Extension from the extension section</span></div>
<div style="text-align: left;">
<span style="font-family: "verdana" , sans-serif;">- Restart your VS Code Once.</span></div>
<div style="text-align: left;">
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div style="text-align: left;">
<span style="font-family: "verdana" , sans-serif;"><b><span style="font-size: large;">STEP 2 :</span></b></span></div>
<div style="text-align: left;">
<span style="font-family: "verdana" , sans-serif;">- Now Press <b>Ctrl+Shift+P</b> (Windows) or <b>Command+Shift+P</b> (Mac)</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">- Then type <b>SFDX: Create project with manifest</b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b><br /></b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6ByhlefnCeTzv-20BYW-ve_vLF62SoD4r8KsVU-NJagqUxcDShb32kW7wl9AuKJSguV6MRe9AyoTDsBQJGZ87seJaoyVQEuFcKK2xxcixguxxplQQm1bQDmXcH1nd4NMPUiPh-yW7noo/s1600/Screenshot+2020-05-13+at+9.26.21+PM.png" imageanchor="1"><img alt="How To Take Complete Salesforce Org Backup With VS Code" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6ByhlefnCeTzv-20BYW-ve_vLF62SoD4r8KsVU-NJagqUxcDShb32kW7wl9AuKJSguV6MRe9AyoTDsBQJGZ87seJaoyVQEuFcKK2xxcixguxxplQQm1bQDmXcH1nd4NMPUiPh-yW7noo/s1600/Screenshot+2020-05-13+at+9.26.21+PM.png" title="How To Take Complete Salesforce Org Backup With VS Code" /></a></b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<b style="font-family: Verdana, sans-serif;"><span style="font-size: large;">STEP 3 :</span></b></div>
<div>
<span style="font-family: "verdana" , sans-serif;">- Then Select <b>Standard </b>on the next screen</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdc5y4oNA618OftvX9xGNbbWDEZodYMEHA8HxnwY_tFWTP7COo__hrDjDVLOHXBtv8JpAjehA1KQlV57qfDXRkvc_kU2R4Uk1asYEVYSRPou_DUaqyi4IvLhnH6qdusZkky_ObcohB8Nw/s1600/Screenshot+2020-05-13+at+9.26.38+PM.png" imageanchor="1"><img alt="How To Take Complete Salesforce Org Backup With VS Code" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdc5y4oNA618OftvX9xGNbbWDEZodYMEHA8HxnwY_tFWTP7COo__hrDjDVLOHXBtv8JpAjehA1KQlV57qfDXRkvc_kU2R4Uk1asYEVYSRPou_DUaqyi4IvLhnH6qdusZkky_ObcohB8Nw/s1600/Screenshot+2020-05-13+at+9.26.38+PM.png" title="How To Take Complete Salesforce Org Backup With VS Code" /></a></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b><span style="font-size: large;">STEP 4 :</span></b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">- Give your project folder a name whatever you want </span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjt6hRHoVv-U4tm0uykN1KzEaPnG0wJ9HAecQHb0HunBJ0043JslIzliz7vdPLLIHObU4YRagbeKfUL2885zzi75y1-DxD64Km1Np-VSo4jMPJEiW4KmRHbeUXtFqhS9yIDDJrPC0l4u2w/s1600/Screenshot+2020-05-13+at+9.26.51+PM.png" imageanchor="1"><img alt="How To Take Complete Salesforce Org Backup With VS Code" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjt6hRHoVv-U4tm0uykN1KzEaPnG0wJ9HAecQHb0HunBJ0043JslIzliz7vdPLLIHObU4YRagbeKfUL2885zzi75y1-DxD64Km1Np-VSo4jMPJEiW4KmRHbeUXtFqhS9yIDDJrPC0l4u2w/s1600/Screenshot+2020-05-13+at+9.26.51+PM.png" title="How To Take Complete Salesforce Org Backup With VS Code" /></a></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<b style="font-family: Verdana, sans-serif;"><span style="font-size: large;">STEP 5 :</span></b></div>
<div>
<span style="font-family: "verdana" , sans-serif;">- Once the folder is created again press </span><b style="font-family: Verdana, sans-serif;">Ctrl+Shift+P</b><span style="font-family: "verdana" , sans-serif;"> (Windows) or </span><b style="font-family: Verdana, sans-serif;">Command+Shift+P</b><span style="font-family: "verdana" , sans-serif;"> (Mac).</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">- Then type <b>SFDX: Authorize an Org </b>and hit enter.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieCtIU5NxyI5zUDVWteDIIlKItvFFs83wcokhFdJIAzyqmBt-TFJaVkqdGA7JvLzPJ9rnY5wcyrKPzPdI7tjO9fv1FV2AEbcKvNFFPMYBzGw-HqiHbU1vobuv3xAVuzXQyjZSVy2p92fY/s1600/Screenshot+2020-05-13+at+9.27.55+PM.png" imageanchor="1"><img alt="How To Take Complete Salesforce Org Backup With VS Code" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEieCtIU5NxyI5zUDVWteDIIlKItvFFs83wcokhFdJIAzyqmBt-TFJaVkqdGA7JvLzPJ9rnY5wcyrKPzPdI7tjO9fv1FV2AEbcKvNFFPMYBzGw-HqiHbU1vobuv3xAVuzXQyjZSVy2p92fY/s1600/Screenshot+2020-05-13+at+9.27.55+PM.png" title="How To Take Complete Salesforce Org Backup With VS Code" /></a></span></div>
<div>
<br /></div>
<div>
<div>
<b style="font-family: Verdana, sans-serif;"><span style="font-size: large;">STEP 6 :</span></b></div>
<div>
<span style="font-family: "verdana" , sans-serif;">- Now Select Production, Sandbox based on your requirement.</span></div>
</div>
<div>
<span style="font-family: "verdana" , sans-serif;">- Now give some alias (short name) and hit enter.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjK0xyxEOzXp23xujvMp5QB8PxMY5sY7BqsajFmdHioxjlzmR9_Y3wBOy3w00EWobT2IEsoFvQKjCZruR_eEdV73JlKX9skwoHFXLeYAiTshq-RjgeT2Ul32qtWl7rzlwOiPFJlAzOU73w/s1600/Screenshot+2020-05-13+at+9.28.20+PM.png" imageanchor="1"><img alt="How To Take Complete Salesforce Org Backup With VS Code" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjK0xyxEOzXp23xujvMp5QB8PxMY5sY7BqsajFmdHioxjlzmR9_Y3wBOy3w00EWobT2IEsoFvQKjCZruR_eEdV73JlKX9skwoHFXLeYAiTshq-RjgeT2Ul32qtWl7rzlwOiPFJlAzOU73w/s1600/Screenshot+2020-05-13+at+9.28.20+PM.png" title="How To Take Complete Salesforce Org Backup With VS Code" /></a></div>
<div>
<br /></div>
<div>
<div>
<b style="font-family: Verdana, sans-serif;"><span style="font-size: large;">STEP 7 :</span></b></div>
<div>
<span style="font-family: "verdana" , sans-serif;">- Now it will redirect you to your browser.</span></div>
</div>
<div>
<span style="font-family: "verdana" , sans-serif;">- Enter your credentials and login. Once you're done go back to VS Code.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">- You will see a message like this that <b>Authorize an Org Successfully ran</b>.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8XPB93k34aK104ZELSYr3mYtxJBqkLN71oGj4-fU7ddwwqY7gRYWJYE5dr4imv-q9hxqZWLz3EIMWfNzX5vFWy-qnkzAMKwlsttYZNHCmsLfJODA6BPq3UB8-2yH9-FcALq9MggoQ-CI/s1600/Screenshot+2020-05-13+at+9.32.30+PM.png" imageanchor="1"><img alt="How To Take Complete Salesforce Org Backup With VS Code" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8XPB93k34aK104ZELSYr3mYtxJBqkLN71oGj4-fU7ddwwqY7gRYWJYE5dr4imv-q9hxqZWLz3EIMWfNzX5vFWy-qnkzAMKwlsttYZNHCmsLfJODA6BPq3UB8-2yH9-FcALq9MggoQ-CI/s1600/Screenshot+2020-05-13+at+9.32.30+PM.png" title="How To Take Complete Salesforce Org Backup With VS Code" /></a></span></div>
<div>
<br /></div>
<div>
<div>
<b style="font-family: Verdana, sans-serif;"><span style="font-size: large;">STEP 8 :</span></b></div>
<div>
<span style="font-family: "verdana" , sans-serif;">- From left side folder hierarchy click on <b>Manifest</b>.</span></div>
</div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQz3QlkrXuUzZo1YxOveiAQBdmfvNwDAEwgjVwQYMwR8i1WStl8z2IBy6pbHYgVdBee_WHYoKQZSvJ4eaDV0Y0YtQwn16UidY0V-rTtG6L68QDQWzB5ji00e9vGxlsJLPVdHq9vIEQvKE/s1600/Screenshot+2020-05-13+at+9.33.09+PM.png" imageanchor="1"><img alt="How To Take Complete Salesforce Org Backup With VS Code" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQz3QlkrXuUzZo1YxOveiAQBdmfvNwDAEwgjVwQYMwR8i1WStl8z2IBy6pbHYgVdBee_WHYoKQZSvJ4eaDV0Y0YtQwn16UidY0V-rTtG6L68QDQWzB5ji00e9vGxlsJLPVdHq9vIEQvKE/s1600/Screenshot+2020-05-13+at+9.33.09+PM.png" title="How To Take Complete Salesforce Org Backup With VS Code" /></a></span></div>
<div>
<br /></div>
<div>
<div>
<b style="font-family: Verdana, sans-serif;"><span style="font-size: large;">STEP 9 :</span></b></div>
<div>
<span style="font-family: "verdana" , sans-serif;">- Then Click on <b>package.xml </b>file.</span></div>
</div>
<div>
<span style="font-family: "verdana" , sans-serif;">- Now <b>replace</b> the code inside package.xml with the following code to get complete salesforce org backup</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">------------------------------------------------------------</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div style="text-align: left;">
<div style="background-color: #1e1e1e; color: #d4d4d4; font-family: menlo, monaco, "courier new", monospace; line-height: 18px; white-space: pre;">
<div style="font-size: 12px;">
<span style="color: grey;"><?</span><span style="color: #569cd6;">xml</span><span style="color: #9cdcfe;"> version</span>=<span style="color: #ce9178;">"1.0"</span><span style="color: #9cdcfe;"> encoding</span>=<span style="color: #ce9178;">"UTF-8"</span><span style="color: #9cdcfe;"> standalone</span>=<span style="color: #ce9178;">"yes"</span><span style="color: grey;">?></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">Package</span> <span style="color: #9cdcfe;">xmlns</span>=<span style="color: #ce9178;">"http://soap.sforce.com/2006/04/metadata"</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>ActionLinkGroupTemplate<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>ApexClass<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>ApexComponent<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>ApexPage<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>ApexTrigger<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>AppMenu<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>ApprovalProcess<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>AssignmentRules<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>AuraDefinitionBundle<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>AuthProvider<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>AutoResponseRules<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>BrandingSet<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>CallCenter<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>Certificate<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>CleanDataService<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>Community<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>ConnectedApp<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>ContentAsset<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>CorsWhitelistOrigin<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>CustomApplication<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>CustomApplicationComponent<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>CustomFeedFilter<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>CustomHelpMenuSection<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>CustomLabels<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>CustomMetadata<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>CustomObject<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>CustomObjectTranslation<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>CustomPageWebLink<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>CustomPermission<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>CustomSite<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>CustomTab<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>Dashboard<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>DataCategoryGroup<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>DelegateGroup<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>Document<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>DuplicateRule<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>EclairGeoData<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>EmailServicesFunction<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>EmailTemplate<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>EscalationRules<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>ExternalDataSource<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>ExternalServiceRegistration<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>FlexiPage<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>Flow<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>FlowCategory<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>FlowDefinition<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>GlobalValueSet<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>GlobalValueSetTranslation<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>HomePageComponent<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>HomePageLayout<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>InstalledPackage<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>Layout<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>Letterhead<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>LightningBolt<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>LightningComponentBundle<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>LightningExperienceTheme<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>MatchingRules<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>NamedCredential<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>NetworkBranding<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>PathAssistant<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>PermissionSet<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>PlatformCachePartition<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>PostTemplate<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>Profile<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>ProfileSessionSetting<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>Queue<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>QuickAction<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>RecommendationStrategy<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>RecordActionDeployment<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>RemoteSiteSetting<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>ReportType<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>Role<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>SamlSsoConfig<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>Scontrol<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>Settings<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>SharingRules<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>SiteDotCom<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>StandardValueSetTranslation<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>StaticResource<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>SynonymDictionary<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>TopicsForObjects<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>TransactionSecurityPolicy<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span>*<span style="color: grey;"></</span><span style="color: #569cd6;">members</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey;"><</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span>Workflow<span style="color: grey;"></</span><span style="color: #569cd6;">name</span><span style="color: grey;">></span></div>
<div>
<div style="font-size: 12px;">
<span style="color: grey;"></</span><span style="color: #569cd6;">types</span><span style="color: grey;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey; font-family: "menlo" , "monaco" , "courier new" , monospace; font-size: x-small;"><</span><span style="color: #569cd6; font-family: "menlo" , "monaco" , "courier new" , monospace; font-size: x-small;">version</span><span style="color: grey; font-family: "menlo" , "monaco" , "courier new" , monospace; font-size: x-small;">></span><span style="font-family: "menlo" , "monaco" , "courier new" , monospace; font-size: x-small;">46.0</span><span style="color: grey; font-family: "menlo" , "monaco" , "courier new" , monospace; font-size: x-small;"></</span><span style="color: #569cd6; font-family: "menlo" , "monaco" , "courier new" , monospace; font-size: x-small;">version</span><span style="color: grey; font-family: "menlo" , "monaco" , "courier new" , monospace; font-size: x-small;">></span></div>
<div style="font-size: 12px;">
<span style="color: grey; font-family: "menlo" , "monaco" , "courier new" , monospace; font-size: x-small;"></</span><span style="color: #569cd6; font-family: "menlo" , "monaco" , "courier new" , monospace; font-size: x-small;">Package</span><span style="color: grey; font-family: "menlo" , "monaco" , "courier new" , monospace; font-size: x-small;">></span></div>
</div>
</div>
</div>
<div style="text-align: left;">
<span style="font-family: "verdana" , sans-serif;">------------------------------------------------------------</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b><br /></b></span></div>
<div>
<div>
<b style="font-family: Verdana, sans-serif;"><span style="font-size: large;">STEP 10 :</span></b></div>
<div>
<span style="font-family: "verdana" , sans-serif;">- Now right click on <b>package.xml </b>file and click on <b>SFDX: Retrieve Source in Manifest From Org </b></span></div>
</div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b><br /></b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3Gk-b8POLvc3zef5fgpxsyEAywgOlQz64vmIInqkbEqryS6_8SsgKD0FtVafzInJkIBJLtWtZilf5haKlq_yaFeMRraAj9FLcjHwTHGfuyT6Wq_2aJCrIy5QCyKX6-YpEJM_57hI5HkY/s1600/Screenshot+2020-05-17+at+6.04.59+PM.png" imageanchor="1"><img alt="How To Take Complete Salesforce Org Backup With VS Code" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3Gk-b8POLvc3zef5fgpxsyEAywgOlQz64vmIInqkbEqryS6_8SsgKD0FtVafzInJkIBJLtWtZilf5haKlq_yaFeMRraAj9FLcjHwTHGfuyT6Wq_2aJCrIy5QCyKX6-YpEJM_57hI5HkY/s1600/Screenshot+2020-05-17+at+6.04.59+PM.png" title="How To Take Complete Salesforce Org Backup With VS Code" /></a></b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">- Then It will start retrieving all your data from your salesforce org.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">- It will take time based on the data in your org (sometimes internet speed as well 😉)</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Once you will get success message you can click on <b>force-app </b>and under that folder you will see all your backup files in the respective type of folder.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQ3rFnf2QTa5VPwxdBQQ_XHw0_U5us3JB_oB5mqD6spogUbDQLjw-Av3DaQray3sEYWLojyIWM3Aj6TApaQo1tHjpPwyUREcGWhubnLKgD50b8LVlUplpOzuJg4R57RRnIsWu7TaKKklU/s1600/Screenshot+2020-05-17+at+6.09.11+PM.png" imageanchor="1"><img alt="How To Take Complete Salesforce Org Backup With VS Code" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQ3rFnf2QTa5VPwxdBQQ_XHw0_U5us3JB_oB5mqD6spogUbDQLjw-Av3DaQray3sEYWLojyIWM3Aj6TApaQo1tHjpPwyUREcGWhubnLKgD50b8LVlUplpOzuJg4R57RRnIsWu7TaKKklU/s1600/Screenshot+2020-05-17+at+6.09.11+PM.png" title="How To Take Complete Salesforce Org Backup With VS Code" /></a></span></div>
<div>
<br /></div>
<div>
<span style="font-family: "verdana" , sans-serif;">And finally, we have everything that you need in your backup.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">In this above process, the most important file is <b>package.xml </b>file which actually fetches all your metadata from your salesforce org.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Cheers 🍻!!</span><br />
<span style="font-family: "verdana" , sans-serif; font-size: small; font-weight: 400;"><b><br /></b></span>
<span style="font-family: "verdana" , sans-serif; font-size: small; font-weight: 400;"><b>WOHOOO !! YOU HAVE JUST COMPLETED </b></span><span style="font-family: "verdana" , sans-serif;"><span style="font-size: small;"><b>COMPLETE SALESFORCE ORG BACKUP WITH VS CODE</b></span><span style="font-size: small; font-weight: 400;"> </span><b style="font-size: medium;">EPISODE</b></span><br />
<span style="background-color: white; font-family: "verdana" , sans-serif; font-size: 15px;">If you like this</span><span style="background-color: white; color: #5e5e5e; font-family: "verdana" , sans-serif; font-size: 15px;"> </span><a href="https://www.salesforcekid.com/" style="font-family: verdana, sans-serif;">salesforcekid</a><span style="background-color: white; color: #5e5e5e; font-family: "verdana" , sans-serif; font-size: 15px;"> </span><span style="background-color: white; font-family: "verdana" , sans-serif; font-size: 15px;">learning platform please let me know in the Comment section...Also, Share with your salesforce folks wish you all</span><br />
<span style="background-color: white; font-family: "verdana" , sans-serif; font-size: 15px;"><b>Happy Learning</b> ☁️⚡️ (Learn. Help. Share.) 😊</span><span style="font-family: "verdana" , sans-serif;"> </span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYaKNuIipFKgH_UzIfF1LhtzsWE3gx-XcDr94DkrQISOAVGR4qSea1EOXsMF1D82yd99eC6l2RLsUt3o-P7SrrkrFW5P-GwYR2rhCtGrVzIDl1Q6Gu132lq0KdT8rqLdgcbm4Yhb-lYkE/s1600/blogBottom.jpg" imageanchor="1"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYaKNuIipFKgH_UzIfF1LhtzsWE3gx-XcDr94DkrQISOAVGR4qSea1EOXsMF1D82yd99eC6l2RLsUt3o-P7SrrkrFW5P-GwYR2rhCtGrVzIDl1Q6Gu132lq0KdT8rqLdgcbm4Yhb-lYkE/s1600/blogBottom.jpg" /></a></span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"></span></div>
</div>
AJINKYA DHAS http://www.blogger.com/profile/13223328981950114267noreply@blogger.com25tag:blogger.com,1999:blog-8457518975744463615.post-22814365122325557382020-04-12T07:08:00.000-07:002020-08-15T07:10:37.939-07:00Salesforce Apex REST API | Basic + Hands On<div dir="ltr" style="text-align: left;" trbidi="on">
<h1 dir="ltr" style="line-height: 1.38; margin-bottom: 6pt; margin-top: 24pt; text-align: center;">
<span style="background-color: transparent; color: black; font-family: "verdana"; font-size: 23pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGmdTj9vLzxNWlcJ8-4AeVjlPgIoE6P1aEBPEm4HV3VRfQiPXVmmQ_CyNCbOog3IvYBhwETfWgJyLhwImQY7VsmirarRQjESmaEyggRDs1M5MYp4Urh48XYvknGUEYYldLz7NYDTOCcRE/s1600/RESTApi.jpg" imageanchor="1"><img alt="Salesforce Apex REST API | Basic + Hands On" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGmdTj9vLzxNWlcJ8-4AeVjlPgIoE6P1aEBPEm4HV3VRfQiPXVmmQ_CyNCbOog3IvYBhwETfWgJyLhwImQY7VsmirarRQjESmaEyggRDs1M5MYp4Urh48XYvknGUEYYldLz7NYDTOCcRE/s1600/RESTApi.jpg" title="Salesforce Apex REST API | Basic + Hands On" /></a></span></h1>
<h1 dir="ltr" style="line-height: 1.38; margin-bottom: 6pt; margin-top: 24pt; text-align: center;">
<span style="background-color: transparent; color: black; font-family: "verdana"; font-size: 23pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre;">SALESFORCE APEX REST API</span></h1>
<h1 dir="ltr" style="line-height: 1.38; margin-bottom: 6pt; margin-top: 24pt;">
<span id="docs-internal-guid-1d4c51e3-7fff-745e-f24d-dc492c1be530" style="font-weight: normal;"><span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">In the previous EPISODE of Integration series, we discussed the Basics of Integration before you started with Salesforce integration.</span></span></h1>
<h1 dir="ltr" style="line-height: 1.38; margin-bottom: 6pt; margin-top: 24pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: normal; white-space: pre-wrap;">In this EPISODE, we are gonna discuss everything you need to know about salesforce apex REST API. Everything from scratch. Don't worry Kid, Integration is just a fancy word to define a bridge. Bridge ?? Yeah correct with integration will help you to connect two countries in our terminology its a bridge which allows you to connect two different types of application. Hence to accept the data or to send the data to any external application system we use these API. In this EPISODE we will learn how to create REST API and how to use it to accept the data from the external system to salesforce.</span></h1>
<h1 dir="ltr" style="line-height: 1.38; margin-bottom: 6pt; margin-top: 24pt;">
<span id="docs-internal-guid-8b50b872-7fff-61de-2d03-d2fe75caa88c"><div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"><span style="font-size: large;">WHAT IS APEX REST ?</span></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">So Apex REST is a way to expose the salesforce objects with the third party and perform operations with that. </span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">For example, If you have any E-commerce site let's say Shopify. Now you want all information about your products and all its information like product price and description from salesforce, in that case, we will develop these Apex REST API Classes. </span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">NOTE: </span><span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">This Apex REST API supports(accepts) data in XML and JSON format.</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">Relax it's just an Apex class with some fancy annotation and little different syntax.</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">Let's take look at the simple syntax of APEX REST API :</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">------------------------------------------------------------------------</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">@RestResource(urlMapping = '</span><span style="color: #d52c1f; font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">/salesforcekid/</span><span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">')</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">Global class myRestAPI{</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">}</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">------------------------------------------------------------------------</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">As you can see in the above syntax </span><span style="color: #d52c1f; font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">/salesforcekid/ </span><span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">is the URL which you will use from the external system to hit and send the data on.</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">Let me explain this in brief, these API what we will create gonna have one</span><span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> URL </span><span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">which is </span><span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">/salesforcekid/ </span><span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">in our case. So next time whenever web developer is asking for the API from you just provide this </span><span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">URL </span><span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">to him. With this URL he will send the data from the other system and with this URL only that data will enter in the salesforce. Gotcha ??</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">NOTE :</span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"><span style="font-weight: normal;">- The Apex class you are creating should be </span></span><span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">global</span><span style="font-family: "verdana"; font-size: 12pt; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;"> so that it can be accessible fro external systems as well.</span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;">- This Apex class must be with annotation </span><span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">@RestResorce</span><span style="font-family: "verdana"; font-size: 12pt; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;">.</span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;">- When defining the </span><span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">URL </span><span style="font-family: "verdana"; font-size: 12pt; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;">in the REST Apex it should always start with </span><span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">/ </span><span style="font-family: "verdana"; font-size: 12pt; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;">and ends with </span><span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">/</span><span style="font-family: "verdana"; font-size: 12pt; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;"> as this is the pattern you need to follow and as you know in between whatever </span><span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">URL </span><span style="font-family: "verdana"; font-size: 12pt; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;">you want you can define that.</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">Now there are more annotation which you need to use based on the requirement, Let's have a look at 6 annotations that will help you to expose your REST API Apex class as a RESTful Service :</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">1. @RestResource(urlMapping='/yourURLNameHere/') :</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">This annotation is used at the beginning of your apex class which allows a third party system to hit this URL. </span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">2. @HttpDelete : </span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">When you want to delete the record from salesforce based on a request from the third party system. </span><span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">For Example:</span><span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"> If the product is deleted from the Shopify website then delete that product from salesforce.</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">A method with this annotation doesn't require any particular body to be sent from the third party.</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">3. @HttpGet :</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">Whenever you want to get or retrieve the record from salesforce then we use this annotation above your method. </span><span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">For Example: </span><span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">Whenever you want to fetch the data of your products then you will use this annotation.</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">A method with this annotation doesn't require any particular body to be sent from the third party.</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">4. @HttpPatch :</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">This is an interesting annotation as this allows you to update an existing record in Salesforce or else if the record doesn't exist then it will create a new record inside salesforce. This is just like an upsert DML operation. </span><span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">For Example: </span><span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">If you updated some product information on your website then update the same information in salesforce if that record is already present or create a new record.</span><span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">A method with this annotation requires a particular body to be sent from the third party in JSON or XML format.</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">5. HttpPost :</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">This annotation use to create a record in salesforce from external system data. This is the most common annotation used. </span><span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">For Example: </span><span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">If a new product is uploaded or created on your website and you want to create those in salesforce as well to maintain the product data, In such scenarios, you will use this annotation in your REST Apex Class.</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">A method with this annotation requires a particular body to be sent from the third party in JSON or XML format.</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">6. @HttpPut :</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">This annotation is used to simply update the record in salesforce. </span><span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">For Example: </span><span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">When any product pricing updated on your Shopify website then update the same in salesforce.</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">A method with this annotation requires a particular body to be sent from the third party in JSON or XML format.</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">For Example :</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">------------------------------------------------------------------------</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">@RestResource(urlMapping='/salesforceKid/*')</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> global with sharing class myRestAPI</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">{</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> @HttpGet</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> global static void getData(){}</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> @HttpPost</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> global static void postData(){}</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> @HttpPut</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> global static void putData(){}</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> @HttpDelete</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> global static void deleteData(){}</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> }</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">------------------------------------------------------------------------</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">NOTE:</span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"><span style="font-weight: normal;">- Every </span></span><span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">@RestResorce </span><span style="font-family: "verdana"; font-size: 12pt; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;">class can have only one method with the same annotation. For Example, the class can only have one method with the above annotations.</span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;">- If you are calling </span><span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">@httpMethod </span><span style="font-family: "verdana"; font-size: 12pt; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;">from 3rd party then you need to append </span><span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">?_httpMethod=PATCH </span><span style="font-family: "verdana"; font-size: 12pt; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;">at the end of the URL and set </span><span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">POST </span><span style="font-family: "verdana"; font-size: 12pt; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;">as the method.</span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: normal; white-space: pre-wrap;">- If two classes have the same URL in urlMapping then the class with the latest modified date will be considered.</span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"><span style="font-weight: 400;">- </span>RestRequest </span><span style="font-family: "verdana"; font-size: 12pt; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;">and </span><span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">RestResponse </span><span style="font-family: "verdana"; font-size: 12pt; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;">object are available by default in your Apex methods through the static </span><span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">RestContext </span><span style="font-family: "verdana"; font-size: 12pt; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;">object.</span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;">- To get the params from the URL use </span><span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">RestContext.request.params</span><span style="font-family: "verdana"; font-size: 12pt; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;">, it will return the </span><span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">Map<String, String></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">Now, this is about syntax to be used inside salesforce. Let's quickly have a look at the URL syntax of the external system to send the data to salesforce :</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"><span style="font-size: large;">API URL FOR EXTERNAL SYSTEM :</span></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">SYNTAX:</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">------------------------------------------------------------------------</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="color: #f57c00; font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">https://instance.salesforce.com/</span><span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">services/apexrest</span><span style="color: #4285f4; font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">/customNamspace/</span><span style="color: #d52c1f; font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">YourURL</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">------------------------------------------------------------------------</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="color: #f57c00; font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">https://instance.salesforce.com/ </span><span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">:</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">This is your salesforce org URL which you can easily find out when you logged in to your org.</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-size: large;"><span style="font-family: "verdana"; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">services/apexrest</span><span style="color: #4285f4; font-family: "verdana"; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">/ </span><span style="font-family: "verdana"; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">:</span></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">This will tell you that the URL is exposed via APEX REST service</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="color: #4285f4; font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">/customNamspace/ </span><span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">:</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">This is your org namespace if it is defined in a custom namespace. It's an option so if it's present or enabled in your system then only you need this in the URL.</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="color: #d52c1f; font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">YourURL </span><span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">:</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">This is the URL which we specified in our apex class. Just like in the above example we defined </span><span style="color: #d52c1f; font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">/salesforcekid/ </span><span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">as a URL.</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"><span style="font-size: large;">HANDS ON :</span></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">Now before starting with this coolest part please log in to your salesforce org. In this hands-on session, we will send some data from an external system (I am going to to use </span><span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">workbench </span><span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">here). Then we will send some data from a workbench and hit this APEX REST API Url. Then we will perform operations in salesforce.</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">Let's begin........Kid</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"><span style="font-size: large;">Before You started :</span></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"><span style="font-size: large;"><br /></span></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">Create a custom Product object :</span></div>
<br /><div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibOmTcpgP6o7eMA5HjQy2iWdyR4vVZD4UJJKanh1MQ_cLTQP5Csj4LV5ZEOSHsjyskjzy7pPZGmnlDG5RfFAyOuAp6Ub4a8uDfiiMheEg9WnW5QIGsZgfDoWBT5Br9_vfiinq-Xpi6buQ/s1600/Screenshot+2020-08-15+at+6.55.17+PM.png" imageanchor="1"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibOmTcpgP6o7eMA5HjQy2iWdyR4vVZD4UJJKanh1MQ_cLTQP5Csj4LV5ZEOSHsjyskjzy7pPZGmnlDG5RfFAyOuAp6Ub4a8uDfiiMheEg9WnW5QIGsZgfDoWBT5Br9_vfiinq-Xpi6buQ/s1600/Screenshot+2020-08-15+at+6.55.17+PM.png" /></a></div>
<br /><div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">Create One new custom field as Product Code :</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiU3XNBdpivxs8iQjEj65uuQjVWz2XCaVz6PghHH9BA7qd8nWuTkHWKXUcmJ994y5hH8J7H1ITtUK71Ow7vHDPdsEd3APrKfPfsjrNGKp4Mf08-krSaRKSaNADjDp7qIvMjfcgsmMiyPpE/s1600/Screenshot+2020-08-15+at+7.09.43+PM.png" imageanchor="1"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiU3XNBdpivxs8iQjEj65uuQjVWz2XCaVz6PghHH9BA7qd8nWuTkHWKXUcmJ994y5hH8J7H1ITtUK71Ow7vHDPdsEd3APrKfPfsjrNGKp4Mf08-krSaRKSaNADjDp7qIvMjfcgsmMiyPpE/s1600/Screenshot+2020-08-15+at+7.09.43+PM.png" /></a></div>
<br /><div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">Now create some sample records in your org before proceeding further.</span><br />
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"><br /></span>
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">Now create APEX Class Called </span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="color: #666666; font-family: "verdana"; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"><span style="font-size: large;">myRestAPI.apxc</span></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">-----------------------------------------------------------</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="color: #666666; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">@RestResource</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">(urlMapping=</span><span style="color: #cc0000; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">'/salesforcekid/'</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">)</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="color: purple; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">global class</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> myRestAPI {</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: #666666; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">@HttpGet</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: purple; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">global static</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> Product__c getProducts(){</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: #b45f06; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">//create a new instance for product object</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> Product__c </span><span style="color: #0b5394; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">prod</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> = </span><span style="color: purple; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">new</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> Product__c();</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: #b45f06; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">//As params returns in Map<string, string> format and request the params</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: purple; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">Map</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"><</span><span style="color: #0b5394; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">string</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">, </span><span style="color: #0b5394; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">string</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">> paramsMap = RestContext.request.</span><span style="color: #0b5394; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">params</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">;</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: #b45f06; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">//It will get the Id passed from external system</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: #0b5394; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">string prodId</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> = paramsMap.get(</span><span style="color: #990000; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">'Id'</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">);</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: #b45f06; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">//Query the product record</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: #0b5394; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">prod</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> = [</span><span style="color: #741b47; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">Select</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: #0b5394; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">Id</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">, Name, Product_Code__c </span><span style="color: purple; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">From</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> Product__c </span><span style="color: purple; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">Where</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: #0b5394; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">Id</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> =: </span><span style="color: #0b5394; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">prodId</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">];</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: #b45f06; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">//return the product with that id</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: purple; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">return</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: #0b5394; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">prod</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">;</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> }</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: #666666; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">@HttpDelete</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: purple; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">global static</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: #0b5394; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">String</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> deleteProducts(){</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: #b45f06; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">//create a new instance for product object</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> Product__c </span><span style="color: #0b5394; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">prod</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> = </span><span style="color: purple; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">new</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> Product__c();</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: #b45f06; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">//As params returns in Map<string, string> format and request the params</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: purple; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">Map</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"><</span><span style="color: #0b5394; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">string</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">, </span><span style="color: #0b5394; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">string</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">> paramsMap = RestContext.request.</span><span style="color: #0b5394; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">params</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">;</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: #b45f06; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">//It will get the Id passed from external system</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: #0b5394; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">string</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> prodId = paramsMap.get(</span><span style="color: #990000; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">'Id'</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">);</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: #b45f06; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">//Query the product record</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: #0b5394; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">prod</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> = [Select Id, Name, Product_Code__c From Product__c Where </span><span style="color: #0b5394; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">Id</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> =: </span><span style="color: #0b5394; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">prodId</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">];</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: #b45f06; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">//Delete the product from salesforce</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: purple; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">Delete</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: #0b5394; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">prod</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">;</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: #b45f06; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">//return the String</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: #0b5394; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">return</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: #990000; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">'Product Deleted'</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">;</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> }</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: #666666; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">@HttpPost</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: #b45f06; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> //Name and ProductCode will come from external system as a input</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: purple; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">global static</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> Product__c createProducts( </span><span style="color: #0b5394; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">String Name</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">, </span><span style="color: #0b5394; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">String ProductCode</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">){</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: #b45f06; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">//Create an instance of products</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> Product__c </span><span style="color: #0b5394; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">prod</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> = </span><span style="color: purple; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">new</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> Product__c();</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: #b45f06; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">//Map the input params to name and productCode</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> prod.</span><span style="color: #0b5394; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">Name</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> = </span><span style="color: #0b5394; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">Name</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">;</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> prod.</span><span style="color: #0b5394; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">Product_Code__c</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> = </span><span style="color: #0b5394; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">ProductCode</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">;</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: #b45f06; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">//insert the product</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: purple; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">insert</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: #0b5394; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">prod</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">;</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: #b45f06; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">//Return this product to the third party system as a response</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: purple; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">return</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: #0b5394; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">prod</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">; </span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> }</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: #666666; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">@HttpPut</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: #b45f06; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">//Name and ProductCode will come from external system as a input</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: purple; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">global static</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> Product__c updateProducts( </span><span style="color: #0b5394; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">String Name</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">, </span><span style="color: #0b5394; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">String ProductCode</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">){</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: #b45f06; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">//As params returns in Map<string, string> format and request the params</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: purple; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">Map</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"><</span><span style="color: #0b5394; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">string</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">, </span><span style="color: #0b5394; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">string</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">> </span><span style="color: #0b5394; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">paramsMap</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> = RestContext.request.</span><span style="color: #0b5394; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">params</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">;</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: #b45f06; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> //It will get the Id passed from external system</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: #0b5394; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">string prodId</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> = paramsMap.get(</span><span style="color: #990000; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">'Id'</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">);</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: #b45f06; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">//Create an instance of products</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> Product__c </span><span style="color: #0b5394; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">prod</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> = </span><span style="color: purple; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">new</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> Product__c();</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: #b45f06; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">//Map the input params to Id, name and productCode </span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> prod.</span><span style="color: #0b5394; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">Id</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> = </span><span style="color: #0b5394; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">prodId</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">;</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> prod.</span><span style="color: #0b5394; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">Name</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> = </span><span style="color: #0b5394; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">Name</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">;</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> prod.</span><span style="color: #0b5394; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">Product_Code__c</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> = </span><span style="color: #0b5394; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">ProductCode</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">;</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: #b45f06; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> //insert the product</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: #741b47; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">update</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: #0b5394; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">prod</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">;</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: #b45f06; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">//Return this product to the third party system as a response</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: #741b47; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">return</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="color: #0b5394; font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">prod</span><span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">; </span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"> } </span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "courier new"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">}</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">-----------------------------------------------------------</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">Above Apex class is self-explanatory code for each Annotation REST Method. </span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">Now its time to test this REST API and all the methods </span><span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">create</span><span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">, </span><span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">delete</span><span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">, </span><span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">update </span><span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">product record.</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">Now as I mentioned before, we are gonna use </span><span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">workbench </span><span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">as a platform as an external system.</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"> </span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"><span style="font-size: large;">STEP 1 :</span></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">Search on google for workbench or enter this URL: </span><span style="color: #1155cc; font-family: "arial"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"><a href="https://workbench.developerforce.com/restExplorer.php" style="text-decoration-line: none;">https://workbench.developerforce.com/restExplorer.php</a></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">Then you will be landed on its home screen :</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">CLICK ON : SignIn with Salesforce </span><span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">and login to your salesforce org.</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">-----------------------------------------------------------</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMJUJ_YVYAUk09cPJy3t6mewl8rJVqLhQscyvFgm7sUFkMtDTM0OKBS1JzKqNZd9I7WQTPOunxwCEXW-wJwZZdJjtswvIqNg3D2ZGJgKG2mRUnUwITgfmc2djddPhxl9z2SmwD16g7Cvk/s1600/Screenshot+2020-08-15+at+6.46.01+PM.png" imageanchor="1"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMJUJ_YVYAUk09cPJy3t6mewl8rJVqLhQscyvFgm7sUFkMtDTM0OKBS1JzKqNZd9I7WQTPOunxwCEXW-wJwZZdJjtswvIqNg3D2ZGJgKG2mRUnUwITgfmc2djddPhxl9z2SmwD16g7Cvk/s1600/Screenshot+2020-08-15+at+6.46.01+PM.png" /></a></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">-----------------------------------------------------------</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"><span style="font-size: large;">STEP 2 :</span></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">Now from Utility tab select REST Explorer</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">-----------------------------------------------------------</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqzcWHjOKkFuPcE9O95mCg9tMjXxU9leA7CkA5bqE_KPe_UNcEKhu8wRu9vMjUkwgtFBGHM7uPvYh9lP9yn-5NtOFkb6FjHFze5grT0jIKd2oBHwZ29DhAD4d2eNGY5Y7BK5PDDvRUdkc/s1600/Screenshot+2020-08-15+at+6.51.22+PM.png" imageanchor="1"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqzcWHjOKkFuPcE9O95mCg9tMjXxU9leA7CkA5bqE_KPe_UNcEKhu8wRu9vMjUkwgtFBGHM7uPvYh9lP9yn-5NtOFkb6FjHFze5grT0jIKd2oBHwZ29DhAD4d2eNGY5Y7BK5PDDvRUdkc/s1600/Screenshot+2020-08-15+at+6.51.22+PM.png" /></a></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">-----------------------------------------------------------</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"><span style="font-size: large;">STEP 3 :</span></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">Now enter our URL of REST API Class as follows :</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">-----------------------------------------------------------</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSWQug-ZzhOg4eJ-13FReTI641_KeD9ohR6BdD5EkH2sC07azrILQFAY4phzJMSHo7U56Hf-VnxUfH0DRPLRjsV_OB4v-BSUVE4Us8BlSq2m-pNtQ-EkyCqjv0d_I0EbXJAGfBZ9eTw2o/s1600/Screenshot+2020-08-15+at+7.20.32+PM.png" imageanchor="1"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSWQug-ZzhOg4eJ-13FReTI641_KeD9ohR6BdD5EkH2sC07azrILQFAY4phzJMSHo7U56Hf-VnxUfH0DRPLRjsV_OB4v-BSUVE4Us8BlSq2m-pNtQ-EkyCqjv0d_I0EbXJAGfBZ9eTw2o/s1600/Screenshot+2020-08-15+at+7.20.32+PM.png" /></a></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">-----------------------------------------------------------</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">Now, all set....we will check our every method one by one :</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"><span style="font-size: large;">For GET Method :</span></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">As we know the </span><span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">Get</span><span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"> method will give/retrieve the record information from the product object. Hence make sure sample records are created in your org.</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">Enter the Id of any product record created in your salesforce org by selecting </span><span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">get </span><span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">method in workbench and pass that salesforce record </span><span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">Id</span><span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"> and execute like this :</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">-----------------------------------------------------------</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqAzDYzEYSBqgvfxpowhzQS_cWaJSIk6SPm5NLS0Nkh6UU6i7j2H3XFrCk1c-M-sruR6Lpn8KE1HpYcJrrmTe194c3DNiFvJkaLaeZjXtPg1qwiHgIZqzvKtENDKmvssv8-A3rMkk-l6g/s1600/Screenshot+2020-08-15+at+7.22.08+PM.png" imageanchor="1"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqAzDYzEYSBqgvfxpowhzQS_cWaJSIk6SPm5NLS0Nkh6UU6i7j2H3XFrCk1c-M-sruR6Lpn8KE1HpYcJrrmTe194c3DNiFvJkaLaeZjXtPg1qwiHgIZqzvKtENDKmvssv8-A3rMkk-l6g/s1600/Screenshot+2020-08-15+at+7.22.08+PM.png" /></a></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">-----------------------------------------------------------</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">As you can see as a response I received the </span><span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">Product Name</span><span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"> and </span><span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">Product Code</span><span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">.</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">Coool right ?? 😊</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">Now next...</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"><span style="font-size: large;">For DELETE Method :</span></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">For this also we need to pass Id of record to be deleted. So for this also we need to pass the Id in the same way. But this time in workbench we will select method as </span><span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">Delete</span><span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">. </span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">And I will pass the same Id of the record to be deleted. and hit </span><span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">execute </span><span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">and check what response we will get. </span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">-----------------------------------------------------------</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqxtyJjTUI3FxQgFH62rVDRtLMsI2nAPeJ1xoYyfv_qCvoFMRqtC0-Z4xhc8L-Loi4ImG6SPDEc0FrlnGwVx8hQCsTzNXSyGpnCkX_FTb_EHTntDed4ZZp5TtNyNFpB3xPrvSA_LXLwRc/s1600/Screenshot+2020-08-15+at+7.23.34+PM.png" imageanchor="1"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqxtyJjTUI3FxQgFH62rVDRtLMsI2nAPeJ1xoYyfv_qCvoFMRqtC0-Z4xhc8L-Loi4ImG6SPDEc0FrlnGwVx8hQCsTzNXSyGpnCkX_FTb_EHTntDed4ZZp5TtNyNFpB3xPrvSA_LXLwRc/s1600/Screenshot+2020-08-15+at+7.23.34+PM.png" /></a></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">-----------------------------------------------------------</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">As you can see we received the response as a </span><span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">string</span><span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"> as expected and for verification, you can check the record in your salesforce org whether its deleted or not.</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"><span style="font-size: large;">For POST Method :</span></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">As we know for POST further methods we need to follow a pattern of sending the data in </span><span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">JSON</span><span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"> or </span><span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">XML</span><span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"> format.</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">For this type please select method as </span><span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">POST</span><span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"> in workbench and pass the record data as follows and let's check whether this will create a record in salesforce or not. </span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">Let's pass the JSON data like this and hit </span><span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">execute</span><span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"> :</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">-----------------------------------------------------------</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyXPJ5W9pDyTOh5X7Aqyym3blshDPPDwyDxGo-I07oeVXZIZRzWGy6Y7dV9S9a2uSVtHRQ-o5D9_-5wE-iN51cjytoScf9-4_SKY-4Gr3jMCVAWYpzGDJMBHJhY-xsy_6j-twrcOktIjg/s1600/Screenshot+2020-08-15+at+7.34.08+PM.png" imageanchor="1"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyXPJ5W9pDyTOh5X7Aqyym3blshDPPDwyDxGo-I07oeVXZIZRzWGy6Y7dV9S9a2uSVtHRQ-o5D9_-5wE-iN51cjytoScf9-4_SKY-4Gr3jMCVAWYpzGDJMBHJhY-xsy_6j-twrcOktIjg/s1600/Screenshot+2020-08-15+at+7.34.08+PM.png" /></a></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">-----------------------------------------------------------</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">Wooohoo.....It's created the record in salesforce with these details...and returned the record details as expected.</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"><span style="font-size: large;">For PUT Method :</span></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: normal; vertical-align: baseline; white-space: pre-wrap;">Now next is Put for updating we need to follow the same pattern like POST but this time we need to pass the id </span><span style="font-family: verdana; font-size: 16px; font-weight: normal; white-space: pre-wrap;">in the URL </span><span style="font-family: verdana; font-size: 12pt; font-weight: normal; white-space: pre-wrap;">also in the workbench and we are updating the product code here from "1234" to "</span><span style="font-family: verdana;"><span style="font-size: 16px; font-weight: 400; white-space: pre-wrap;">P-00123</span></span><span style="font-family: verdana; font-size: 12pt; font-weight: normal; white-space: pre-wrap;">" like this :</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">-----------------------------------------------------------</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyCs6xu4nbXrwd2FFrYWYKjgHVM4TuxaNHShJXQ36K1cCDXI1eRHS5k9esD_HZbjc0PMbmAzSSxIBqKMCvc0LI4_RW6z5XF_F-9sRWsoevQbE-H-la2Et09rgcLE_4TPOg6nmMBj50kEA/s1600/Screenshot+2020-08-15+at+7.38.49+PM.png" imageanchor="1"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyCs6xu4nbXrwd2FFrYWYKjgHVM4TuxaNHShJXQ36K1cCDXI1eRHS5k9esD_HZbjc0PMbmAzSSxIBqKMCvc0LI4_RW6z5XF_F-9sRWsoevQbE-H-la2Et09rgcLE_4TPOg6nmMBj50kEA/s1600/Screenshot+2020-08-15+at+7.38.49+PM.png" /></a></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">-----------------------------------------------------------</span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">Wooooh.....Finally after executing you will update the old record with this new one.</span><br />
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="font-weight: normal; line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">Awesome Kid...Now next time if someone asks you to integrate the system with REST API don't panic because now you know how to do that with this easy methodology.</span><br />
<span style="font-family: "verdana"; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<span style="font-family: "verdana" , sans-serif; font-size: small; font-weight: 400;"><b>WOHOOO !! YOU HAVE JUST COMPLETED </b></span><span style="font-family: "verdana" , sans-serif;"><span style="font-size: small;">APEX REST API SALESFORCE</span><b style="font-size: medium; font-weight: 400;"> </b><b style="font-size: medium;">EPISODE</b></span><br />
<div style="font-size: medium; font-weight: 400;">
<span style="font-family: "verdana" , sans-serif;"><span style="font-family: "verdana" , sans-serif;"><span style="background-color: white; font-size: 15px;">If you like this</span><span style="background-color: white; color: #5e5e5e; font-size: 15px;"> </span><a href="https://www.salesforcekid.com/">salesforcekid</a><span style="background-color: white; color: #5e5e5e; font-size: 15px;"> </span><span style="background-color: white; font-size: 15px;">learning platform please let me know in the Comment section...Also, Share with your salesforce folks wish you all</span></span></span></div>
<div style="font-size: medium; font-weight: 400;">
<span style="background-color: white; font-family: "verdana" , sans-serif; font-size: 15px;">Happy Learning ☁️⚡️ (Learn. Help. Share.) 😊</span><span style="font-family: "verdana" , sans-serif;"> </span></div>
<div style="font-size: medium; font-weight: 400;">
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div style="font-size: medium;">
<span style="font-family: "verdana" , sans-serif;"><a href="https://www.salesforcekid.com/2019/11/salesforce-integration-basics.html"><< PREVIOUS</a></span></div>
<div style="font-size: medium; font-weight: 400;">
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiM6YyYKTDDMzfYIzwHb7N_TiWyQ9arXvm4toFDbgurOFFdwx4MXZa8I4FqictqCzgVGMlzvx8buBwefk8OKyHWC6prRVyuY9ecK0Rc2oTjWbA0tdskTIstJdvxZnT9cZ7T4TLDVaEpa9Y/s1600/blogBottom.jpg" imageanchor="1"><img alt="SalesforceKid On Play Store " border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiM6YyYKTDDMzfYIzwHb7N_TiWyQ9arXvm4toFDbgurOFFdwx4MXZa8I4FqictqCzgVGMlzvx8buBwefk8OKyHWC6prRVyuY9ecK0Rc2oTjWbA0tdskTIstJdvxZnT9cZ7T4TLDVaEpa9Y/s1600/blogBottom.jpg" title="SalesforceKid On Play Store" /></a><br /></span></h1>
</div>
AJINKYA DHAS http://www.blogger.com/profile/13223328981950114267noreply@blogger.com5tag:blogger.com,1999:blog-8457518975744463615.post-68484142063132917592020-03-24T06:06:00.000-07:002020-03-24T07:56:17.012-07:00Create A Record In Salesforce Lightning Component With Error Handling<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: center;">
<span style="font-family: "verdana" , sans-serif;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqvWbPPwZR6kBk_Gq0DepT4eXrhFkwQloO3fr9eFmisbhPNVufxfKc3j6YGZ1ha4qhJfI4qVID4DauoGYQF9Owf8oFzNhRpj8YgJTS1KMgDrS-_4cfjrF5yHnxDC1JpBA7rBw3DVhf-q4/s1600/createRecords.jpg" imageanchor="1"><img alt="Create A Record In Salesforce Lightning Component With Error Handling By SalesforceKid" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqvWbPPwZR6kBk_Gq0DepT4eXrhFkwQloO3fr9eFmisbhPNVufxfKc3j6YGZ1ha4qhJfI4qVID4DauoGYQF9Owf8oFzNhRpj8YgJTS1KMgDrS-_4cfjrF5yHnxDC1JpBA7rBw3DVhf-q4/s1600/createRecords.jpg" title="Create A Record In Salesforce Lightning Component With Error Handling By SalesforceKid" /></a></span></h2>
<h2 style="text-align: center;">
<span style="font-family: "verdana" , sans-serif;">HOW TO CREATE A RECORD IN SALESFORCE LIGHTNING COMPONENT</span></h2>
<div>
<span style="font-family: "verdana" , sans-serif;">In the previous EPISODE, we discussed how we can use application events in salesforce lightning component.</span><br />
<span style="font-family: "verdana" , sans-serif;">In this EPISODE we are going to discuss easy but most requested topic i.e. how to perform DML operations in salesforce lightning component.</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">Before starting...let me give you some idea about DML operations in salesforce lightning component.</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<br />
<h3 style="text-align: left;">
<span style="font-family: "verdana" , sans-serif;">DML operations in salesforce ?</span></h3>
<span style="font-family: "verdana" , sans-serif;">Consider an example of a standard salesforce object model present in your org, where we create records, update records and delete records as well. In the same way, sometimes we need to perform these operations with custom lightning components as well. Hence, in that case, we will perform these operations from our custom lightning component itself. Excited Kid ?? </span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">So let's get started.....</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<br />
<h3 style="text-align: left;">
<span style="font-family: "verdana" , sans-serif;">What's today's recipe (Component Blueprint ) ?</span></h3>
<div>
<span style="font-family: "verdana" , sans-serif;">Today we are going to create a lightning custom record form with <b>Account</b> object fields like <b>Name (text)</b>, <b>Type (picklist)</b>, <b>Annual Revenue (Currency) </b>fields and two buttons in the bottom <b>Save</b> and <b>Cancel</b>.</span></div>
<div>
<br /></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b>Blueprint</b> of today's recipe is here :</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">--------------------------------------------------------</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglAcC4-6opERfufqCVf2lHpt36KF_cROFEBHU9ddwjrB-7nmHMfbXJmUVbZ4mGi9R2gFI0y-cAl_MpKJbrWexcjDm6mpsrBeHNP_rAgSOGwHW03GgFWgHFUMSnZBFzscbY4-UjJG0yDcA/s1600/create.jpg" imageanchor="1"><img alt="Create A Record In Salesforce Lightning Component With Error Handling By SalesforceKid" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglAcC4-6opERfufqCVf2lHpt36KF_cROFEBHU9ddwjrB-7nmHMfbXJmUVbZ4mGi9R2gFI0y-cAl_MpKJbrWexcjDm6mpsrBeHNP_rAgSOGwHW03GgFWgHFUMSnZBFzscbY4-UjJG0yDcA/s1600/create.jpg" title="Create A Record In Salesforce Lightning Component With Error Handling By SalesforceKid" /></a></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">--------------------------------------------------------</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<div>
<span style="font-family: "verdana" , sans-serif;">So today will create a lightning component as a quick action on account record itself (you can use as per your need). Then from that quick action, we are going to create new account records with these three fields (you can add as per your need)</span></div>
</div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Cool right along with with your favourite <b>Success !!</b> toast message. </span></div>
<div>
<br /></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Get...Set...Go....Kid </span></div>
<h3 style="text-align: left;">
<span style="font-family: "verdana" , sans-serif;">Steps to follow :</span></h3>
<div>
<span style="font-family: "verdana" , sans-serif;"><b>STEP 1 :</b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Create a lightning component </span><b style="font-family: Verdana, sans-serif;">createRecord.cmp</b></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b><br /></b></span></div>
<div>
<b style="font-family: Verdana, sans-serif;"><span style="font-size: large;">createRecord.cmp</span></b></div>
<div>
<span style="font-family: "verdana" , sans-serif;">--------------------------------------------------------</span></div>
<div>
<div>
<b><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;"><aura:component </span><span style="color: #0b5394; font-family: "courier new" , "courier" , monospace;">controller</span><span style="font-family: "courier new" , "courier" , monospace;">=</span><span style="color: #990000; font-family: "courier new" , "courier" , monospace;">"createRecordController" </span><span style="color: #0b5394; font-family: "courier new" , "courier" , monospace;">implements</span><span style="font-family: "courier new" , "courier" , monospace;">=</span><span style="color: #990000; font-family: "courier new" , "courier" , monospace;">"force:lightningQuickActionWithoutHeader"</span><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;">></span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #b45f06;"><!-- attributes to capture account fields --></span></span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #38761d;"><aura:attribute</span> <span style="color: #0b5394;">name</span>=<span style="color: #990000;">"name"</span> <span style="color: #0b5394;">type</span>=<span style="color: #990000;">"String"</span><span style="color: #38761d;">/></span></span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #38761d;"><aura:attribute</span> <span style="color: #0b5394;">name</span>=<span style="color: #990000;">"type"</span> <span style="color: #0b5394;">type</span>=<span style="color: #990000;">"String"</span><span style="color: #38761d;">/></span></span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #38761d;"><aura:attribute</span> <span style="color: #0b5394;">name</span>=<span style="color: #990000;">"annualRevenue"</span> <span style="color: #0b5394;">type</span>=<span style="color: #990000;">"Currency"</span><span style="color: #38761d;">/></span></span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> </span></b></div>
<div>
<b><span style="color: #b45f06; font-family: "courier new" , "courier" , monospace;"> <!-- Picklist options attribute --></span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #38761d;"><aura:attribute</span> <span style="color: #0b5394;">name</span>=<span style="color: #990000;">"options"</span> </span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #0b5394;">type</span>=<span style="color: #990000;">"list" </span></span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #0b5394;">default</span>=<span style="color: #990000;">"[</span></span></b></div>
<div>
<b><span style="color: #990000; font-family: "courier new" , "courier" , monospace;"> {'label': 'Prospect', 'value': 'Prospect'},</span></b></div>
<div>
<b><span style="color: #990000; font-family: "courier new" , "courier" , monospace;"> {'label': 'Customer - Direct', 'value': 'Customer - Direct'},</span></b></div>
<div>
<b><span style="color: #990000; font-family: "courier new" , "courier" , monospace;"> {'label': 'Customer - Channel', 'value': 'Customer - Channel'},</span></b></div>
<div>
<b><span style="color: #990000; font-family: "courier new" , "courier" , monospace;"> {'label': 'Channel Partner / Reseller', 'value': 'Channel Partner / Reseller'},</span></b></div>
<div>
<b><span style="color: #990000; font-family: "courier new" , "courier" , monospace;"> {'label': 'Installation Partner', 'value': 'Installation Partner'},</span></b></div>
<div>
<b><span style="color: #990000; font-family: "courier new" , "courier" , monospace;"> {'label': 'Technology Partner', 'value': 'Technology Partner'},</span></b></div>
<div>
<span style="color: #990000;"><b><span style="font-family: "courier new" , "courier" , monospace;"> {'label': 'Other', 'value': 'Other'} </span></b><b><span style="font-family: "courier new" , "courier" , monospace;">]" </span></b></span></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #0b5394;">description</span>=<span style="color: #990000;">"Below attribute will define picklist values if you want dynamic values </span></span></b><b><span style="font-family: "courier new" , "courier" , monospace;"><span style="color: #990000;">then you can query that from the database and set those values"</span><span style="color: #38761d;">/></span></span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> </span></b></div>
<div>
<b><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;"> <center></span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #38761d;"><h1</span> <span style="color: #0b5394;">class</span>=<span style="color: #990000;">"inlineTitle slds-p-top--large slds-p-horizontal--medium slds-p-bottom--medium slds-text-heading--medium" </span></span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #0b5394;">style</span>=<span style="color: #990000;">"font-size:20px"</span><span style="color: #38761d;">></span></span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> Custom Create Account</span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #38761d;"> <hr</span> <span style="color: #0b5394;">size</span>=<span style="color: #990000;">"3"</span> <span style="color: #0b5394;">noshade</span>=<span style="color: #990000;">""</span><span style="color: #38761d;">></hr></span></span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #38761d;"></h1></span></span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #38761d;"> </center></span></span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> </span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #38761d;"><h2</span> <span style="color: #0b5394;">class</span>=<span style="color: #990000;">"slds-section__title slds-theme--shade primaryPaletteBorder test-id__section-header-container"</span>> </span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> New Account Information</span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #38761d;"> </h2></span></span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> </span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #38761d;"><div </span><span style="color: #0b5394;">class</span>=<span style="color: #990000;">"slds-p-around_medium"</span><span style="color: #38761d;">></span></span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #38761d;"><lightning:input</span> <span style="color: #0b5394;">name</span>=<span style="color: #990000;">"Name" </span></span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #0b5394;">required</span>=<span style="color: #990000;">"true" </span></span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #0b5394;">value</span>=<span style="color: #990000;">"{!v.name}" </span></span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #0b5394;">label</span>=<span style="color: #990000;">"Name"</span> </span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #0b5394;">maxlength</span>=<span style="color: #990000;">"255"</span><span style="color: #38761d;">/></span></span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> </span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #38761d;"><lightning:combobox</span> <span style="color: #0b5394;">name</span>=<span style="color: #990000;">"Status" </span></span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #0b5394;">label</span>=<span style="color: #990000;">"Status" </span></span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #0b5394;">value</span>=<span style="color: #990000;">"inProgress"</span> </span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #0b5394;">placeholder</span>=<span style="color: #990000;">"Select Progress" </span></span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #0b5394;">options</span>=<span style="color: #990000;">"{!v.options}"</span> </span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #0b5394;">onchange</span>=<span style="color: #990000;">"{!c.handleChange}"</span>/></span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> </span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #38761d;"><lightning:input</span> <span style="color: #0b5394;">type</span>=<span style="color: #990000;">"number" </span></span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #0b5394;">name</span>=<span style="color: #990000;">"Annual Revenue"</span></span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #0b5394;">label</span>=<span style="color: #990000;">"Annual Revenue" </span></span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #0b5394;">value</span>=<span style="color: #990000;">"{!v.annualRevenue}"</span> </span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #0b5394;">formatter</span>=<span style="color: #990000;">"currency"</span></span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #0b5394;">fieldLevelHelp</span>=<span style="color: #990000;">"Please enter in numbers"</span>/></span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> </span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #38761d;"></div> </span></span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #38761d;"><center></span></span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #38761d;"><lightning:button</span> <span style="color: #0b5394;">variant</span>=<span style="color: #990000;">"Brand"</span> </span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #0b5394;">label</span>=<span style="color: #990000;">"Save" </span></span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #0b5394;">title</span>=<span style="color: #990000;">"Save" </span></span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #0b5394;">onclick</span>=<span style="color: #990000;">"{!c.save}"</span>/></span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #38761d;"><lightning:button</span> <span style="color: #0b5394;">variant</span>=<span style="color: #990000;">"Neutral"</span> </span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #0b5394;">label</span>=<span style="color: #990000;">"Cancel" </span></span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #0b5394;">title</span>=<span style="color: #990000;">"Cancel" </span></span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #0b5394;">onclick</span>=<span style="color: #990000;">"{!c.cancel}"</span>/></span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #38761d;"> </center></span></span></b></div>
<div>
<b><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;"></aura:component></span></b></div>
</div>
<div>
<span style="font-family: "verdana" , sans-serif;">--------------------------------------------------------</span></div>
<div>
<br /></div>
<div>
<span style="font-family: "verdana" , sans-serif;">- As you can see in the above code </span><span style="color: #0b5394; font-family: "courier new" , "courier" , monospace; font-weight: bold;">controller</span><span style="font-family: "courier new" , "courier" , monospace; font-weight: bold;">=</span><span style="color: #990000; font-family: "courier new" , "courier" , monospace; font-weight: bold;">"createRecordController" </span><span style="font-family: "verdana" , sans-serif;">is our apex or server-side controller which will help us to insert the data in the database.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">- Next, is </span><span style="color: #0b5394; font-family: "courier new" , "courier" , monospace; font-weight: bold;">implements</span><span style="font-family: "courier new" , "courier" , monospace; font-weight: bold;">=</span><span style="color: #990000; font-family: "courier new" , "courier" , monospace; font-weight: bold;">"force:lightningQuickActionWithoutHeader" </span><span style="font-family: "verdana" , sans-serif;">it is used to tell the quick action that whenever I will use this lightning component in the quick action then I don't want salesforce standard quick action header and footer. As we are designing our own 😊.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">- Then we have defined the </span><span style="color: #38761d; font-family: "courier new" , "courier" , monospace; font-weight: bold;">aura:attribute </span><span style="font-family: "verdana" , sans-serif;">to capture the three fields of <b>Account </b>object.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">- Then we defined the picklist and its values/option so that we can use that in our picklist, as mentioned in the description you can use dynamic picklist values by fetching it from the database.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">- Then we defined <b>header</b>, then <b>fields</b> and at the bottom, we have defined the <b>Save</b> and <b>Cancel</b> button as well.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<b style="font-family: Verdana, sans-serif;">STEP 2 :</b></div>
<div>
<span style="font-family: "verdana" , sans-serif;">As you can see we have some methods also in this <b>.cmp</b> or <b>markup</b> file like on </span><span style="color: #38761d; font-family: "courier new" , "courier" , monospace; font-weight: bold;">lightning:combobox </span><span style="font-family: "verdana" , sans-serif;">we have </span><span style="font-family: "courier new" , "courier" , monospace;"><span style="color: #0b5394; font-weight: bold;">onchange</span><b>=</b><span style="color: #990000; font-weight: bold;">"{!c.handleChange}"</span>,<span style="color: #990000; font-weight: bold;"> </span></span><span style="font-family: "verdana" , sans-serif;">on </span><b><span style="font-family: "courier new" , "courier" , monospace;"><span style="color: #38761d;">lightning:button </span></span></b><span style="font-family: "verdana" , sans-serif;">we have </span><span style="color: #0b5394; font-family: "courier new" , "courier" , monospace; font-weight: bold;">onclick</span><b style="font-family: "Courier New", Courier, monospace;">=</b><span style="color: #990000; font-family: "courier new" , "courier" , monospace; font-weight: bold;">"{!c.save}" </span><span style="font-family: "verdana" , sans-serif;">and</span><span style="color: #990000; font-family: "courier new" , "courier" , monospace; font-weight: bold;"> </span><span style="color: #0b5394; font-family: "courier new" , "courier" , monospace; font-weight: bold;">onclick</span><span style="font-family: "courier new" , "courier" , monospace;"><b>=</b></span><span style="color: #990000; font-family: "courier new" , "courier" , monospace; font-weight: bold;">"{!c.cancel}" </span><span style="font-family: "verdana" , sans-serif;">actions.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">These actions will be defined in <b>.js </b>controller file right ?? so let's create those at <b>createRecordController.js </b>file :</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<b style="font-family: Verdana, sans-serif;"><span style="font-size: large;">createRecordController.js</span></b></div>
<div>
<span style="font-family: "verdana" , sans-serif;">--------------------------------------------------------</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><b>({ </b></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><b> handleChange: <span style="color: #741b47;">function</span> (<span style="color: blue;">component</span>, <span style="color: blue;">event</span>) {</b></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><b> <span style="color: #b45f06;">// This will contain the string of the "value" attribute of the selected option</span></b></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><b> <span style="color: #741b47;">var</span> <span style="color: #0b5394;">selectedOptionValue</span> = <span style="color: #0b5394;">event</span>.getParam(<span style="color: #990000;">"value"</span>);</b></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><b> <span style="color: #0b5394;">component</span>.set(<span style="color: #990000;">"v.type"</span>, <span style="color: #0b5394;">selectedOptionValue</span>);</b></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><b> },</b></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><b> </b></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><b> save : <span style="color: #741b47;">function</span> (<span style="color: blue;">component</span>, <span style="color: blue;">event</span>, <span style="color: blue;">helper</span>){</b></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><b> <span style="color: #b45f06;"> //get all the inputs from form</span></b></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><b> <span style="color: #741b47;">var</span> <span style="color: #0b5394;">name</span> = <span style="color: #0b5394;">component</span>.get(<span style="color: #990000;">"v.name"</span>);</b></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><b> <span style="color: #741b47;">var</span> <span style="color: #0b5394;">type</span> = <span style="color: #0b5394;">component</span>.get(<span style="color: #990000;">"v.type"</span>);</b></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><b> <span style="color: #741b47;">var</span> <span style="color: #0b5394;">annualRevenue</span> = <span style="color: #0b5394;">component</span>.get(<span style="color: #990000;">"v.annualRevenue"</span>);</b></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><b> </b></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><b> <span style="color: #b45f06;">//Error handling: if any field is undefined</span></b></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><b> <span style="color: #741b47;">if</span>(<span style="color: #0b5394;">name</span> == <span style="color: #741b47;">undefined</span> || <span style="color: #0b5394;">type</span> == <span style="color: #741b47;">undefined</span> || <span style="color: #0b5394;">annualRevenue</span> == <span style="color: #741b47;">undefined</span>)</b></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><b> {</b></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><b> <span style="color: #0b5394;">helper</span>.showToast(<span style="color: #990000;">'Ooops !'</span>, <span style="color: #990000;">'Please fill up all the information'</span>, <span style="color: #990000;">'error'</span>);</b></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><b> }</b></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><b> <span style="color: #741b47;">else</span></b></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><b> {</b></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><b> <span style="color: #b45f06;">//if everything is okey then make server call </span> </b></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><b> <span style="color: #741b47;">var</span> <span style="color: #0b5394;">action</span> = component.get(<span style="color: #990000;">"c.saveAccount"</span>); </b></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><b> <span style="color: #0b5394;">action</span>.setParams({</b></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><b> name : <span style="color: #0b5394;">name</span>, </b></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><b> accountType : <span style="color: #0b5394;">type</span>,</b></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><b> revenue : <span style="color: #0b5394;">annualRevenue</span></b></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><b> }); </b></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><b> <span style="color: #0b5394;">action</span>.setCallback(<span style="color: #741b47;">this</span>,<span style="color: #741b47;">function</span>(<span style="color: #0b5394;">response</span>){</b></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><b> <span style="color: #741b47;">var</span> <span style="color: blue;">state</span> = <span style="color: #0b5394;">response</span>.getState();</b></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><b> <span style="color: #b45f06;">//if callback is Success then show toast message and close the modal popup</span></b></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><b> <span style="color: #741b47;">if</span>(<span style="color: #0b5394;">state</span> === <span style="color: #990000;">"SUCCESS"</span>)</b></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><b> {</b></span></div>
<div>
<span style="color: #b45f06; font-family: "courier new" , "courier" , monospace;"><b>//pass parameters to helper showToast method </b></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><b> <span style="color: #0b5394;">helper</span>.showToast(<span style="color: #990000;">'Success !'</span>,<span style="color: #990000;"> 'Record Inserted Successfully'</span>,<span style="color: #990000;"> 'success'</span>);</b></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><b> <span style="color: #0b5394;">$A</span>.get(<span style="color: #990000;">"e.force:closeQuickAction"</span>).fire();</b></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><b> }</b></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><b> });</b></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><b> <span style="color: #0b5394;">$A</span>.enqueueAction(<span style="color: #0b5394;">action</span>);</b></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><b> } </b></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><b> },</b></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><b> </b></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><b> cancel : <span style="color: #741b47;">function</span>(<span style="color: blue;">component</span>, <span style="color: blue;">helper</span>, <span style="color: blue;">event</span>)</b></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><b> {</b></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><b> <span style="color: #b45f06;">//Below line of code will close the modal popup</span></b></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><b> <span style="color: #0b5394;">$A</span>.get(<span style="color: #990000;">"e.force:closeQuickAction"</span>).fire(); </b></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><b> }</b></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><b>}) </b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">--------------------------------------------------------</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">- In the above code, every method is self-explanatory please read the comments above each method you will definitely understand what exactly every method is doing</span></div>
<div>
<br /></div>
<div>
- <span style="font-family: "verdana" , sans-serif;">The major part which needs to be highlighted is the error handling here....as we know a user can leave any fields blank here as on account only standard Name field is mandatory, but as its a custom lightning component we want Name as well as other fields also to be filled up by the user.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">- Hence if the values are the undefined system will show a <b>Red Toast </b>message to the user. As well as <b>Success Toast </b>when the record is inserted successfully in the database.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">- So the question here is, do we need to write two different toast message here? The answer is <b>NO</b>. Because as you can see, we have created <b>helper </b>method called a </span><b style="font-family: "Courier New", Courier, monospace;">showToast </b><span style="font-family: "verdana" , sans-serif;">method<b> </b>here. Where we are passing the parameters as an input, hence it's a completely dynamic method. </span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><b><br /></b></span></div>
<div>
<b style="font-family: Verdana, sans-serif;">STEP 3 :</b></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Now let's see how we have created this helper method in </span><b style="font-family: Verdana, sans-serif;">createRecordHelper.js </b><span style="font-family: "verdana" , sans-serif;">file :</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<b style="font-family: Verdana, sans-serif;"><span style="font-size: large;">createRecordHelper.js</span></b></div>
<div>
<span style="font-family: "verdana" , sans-serif;">--------------------------------------------------------</span></div>
<div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;">({</span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #b45f06;">//dynamic toast message alert function</span></span></b></div>
<div>
<b><span style="color: #b45f06; font-family: "courier new" , "courier" , monospace;"> //It will take dynamic input parameters from controller methods</span></b></div>
<div>
<b><span style="color: #b45f06; font-family: "courier new" , "courier" , monospace;"> //We used this for displaying error and success </span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> showToast : <span style="color: #741b47;">function</span>(<span style="color: blue;">title</span>, <span style="color: blue;">message</span>, <span style="color: blue;">error</span>) {</span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #741b47;">let</span> <span style="color: #0b5394;">toastParams</span> = {</span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> title: <span style="color: #0b5394;">title</span>,</span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> message: <span style="color: #0b5394;">message</span>, <span style="color: #b45f06;">// Error message</span></span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> type: <span style="color: #0b5394;">error</span></span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> };</span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #741b47;">let</span> <span style="color: #0b5394;">toastEvent</span> = <span style="color: #0b5394;">$A</span>.get(<span style="color: #990000;">"e.force:showToast"</span>);</span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #0b5394;">toastEvent</span>.setParams(<span style="color: #0b5394;">toastParams</span>);</span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #0b5394;">toastEvent</span>.fire();</span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> }</span></b></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;">})</span></b></div>
</div>
<div>
<span style="font-family: "verdana" , sans-serif;">--------------------------------------------------------</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">As you can see dynamically we are passing the values to this helper method and just mapping that with <b><span style="color: #0b5394;">toastParams</span></b> as <b>title</b>,<b> message</b>,<b> type</b>.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">- Also in our <b>.js </b>controller,<b> </b>We are passing the parameters to apex controller </span><b style="font-family: verdana, sans-serif;">name</b><span style="font-family: "verdana" , sans-serif;">, </span><b style="font-family: verdana, sans-serif;">accountType</b><span style="font-family: "verdana" , sans-serif;">, </span><b style="font-family: verdana, sans-serif;">revenue </b><span style="font-family: "verdana" , sans-serif;">and then sending it to the server-side controller. If you don't know how to make server calls please visit out Previous EPISODES.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Let's see how server-side controller/ Apex class handling these inputs and inserting the records in </span><span style="font-family: "verdana" , sans-serif;"><b style="color: #990000;">createRecordController </b>controller.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">- Create a new apex class called as <b>createRecordController </b>as below :</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif; font-size: large;"><b>createRecordController.apxc</b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">--------------------------------------------------------</span></div>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"></span></b><br />
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"><span style="color: #741b47;">public class</span> createRecordController {</span></b></div>
<b><span style="font-family: "courier new" , "courier" , monospace;">
</span></b>
<br />
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> </span></b></div>
<b><span style="font-family: "courier new" , "courier" , monospace;">
</span></b>
<br />
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;">@<span style="color: #666666;">AuraEnabled</span></span></b></div>
<b><span style="font-family: "courier new" , "courier" , monospace;">
</span></b>
<br />
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #741b47;">public static</span> Account saveAccount(<span style="color: #0b5394;">String name</span>, <span style="color: #0b5394;">String accountType</span>, <span style="color: #741b47;">Decimal</span> <span style="color: #0b5394;">revenue</span>)</span></b></div>
<b><span style="font-family: "courier new" , "courier" , monospace;">
</span></b>
<br />
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> {</span></b></div>
<b><span style="font-family: "courier new" , "courier" , monospace;">
</span></b>
<div>
<b><span style="font-family: "courier new" , "courier" , monospace;"> Account <span style="color: #0b5394;">acc</span> = <span style="color: #741b47;">new</span> Account();</span></b></div>
<b><span style="font-family: "courier new" , "courier" , monospace;">
<div>
acc.Name = name;</div>
<div>
acc.Type = accountType;</div>
<div>
acc.AnnualRevenue = revenue;</div>
<div>
<span style="color: #741b47;">insert</span> acc;</div>
<div>
<span style="color: #741b47;">return</span> acc;</div>
<div>
}</div>
<div>
}</div>
</span></b></div>
<div>
<span style="font-family: "verdana" , sans-serif;">--------------------------------------------------------</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">- As you can observe here in apex controller we are accepting three as an input parameter. Then we have created a new account instance as we need to create a new record in the database.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Then we mapped all those three parameters and finally inserted the record with </span><span style="color: #741b47; font-family: "courier new" , "courier" , monospace; font-weight: 700;">insert</span><span style="font-family: "courier new" , "courier" , monospace; font-weight: 700;"> acc.</span><span style="font-family: "verdana" , sans-serif;"> </span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">And There you go...</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b>STEP 4 :</b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">- Now once the lightning component and apex controller was created then we need to add this lightning component on Account Object as a quick action.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">- For that Go <b>Setup --> Object Manager --> Account --> Button Links and Actions --> Create New Action </b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b><br /></b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">- Create a new action as below screenshot</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">--------------------------------------------------------</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAtSOYlYC_n9FBfpf4weQ0cDqp0XRlA7TQpTFGsUFoV0NH0meG1M_RKFn7L_5lBz4nURGMLKzybXQKRZuHj5Q7gzVuT6wYuu3iaQhrfnoRqqugIKVVkcE9qeO-QkZjpRbY6diVPWETGb0/s1600/Screenshot+2020-03-24+at+1.56.08+PM.png" imageanchor="1"><img alt="Create A Record In Salesforce Lightning Component With Error Handling By SalesforceKid" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAtSOYlYC_n9FBfpf4weQ0cDqp0XRlA7TQpTFGsUFoV0NH0meG1M_RKFn7L_5lBz4nURGMLKzybXQKRZuHj5Q7gzVuT6wYuu3iaQhrfnoRqqugIKVVkcE9qeO-QkZjpRbY6diVPWETGb0/s1600/Screenshot+2020-03-24+at+1.56.08+PM.png" title="Create A Record In Salesforce Lightning Component With Error Handling By SalesforceKid" /></a></span></div>
<div>
<br /></div>
<div>
<span style="font-family: "verdana" , sans-serif;">--------------------------------------------------------</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">And now <b>add</b> this quick action in your <b>Account layout</b>.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Now go to your Account object and open any record you will see quick action button there called as <b>Create Record </b>like :</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">--------------------------------------------------------</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2_KGcKnAIgkfaP2zWSJcu70p7fnXysxkMJGNq79x0NpmAnDSwo0Zq7I1z7DDiiK5woZuSaDaa6r9tk0Ft4jf8AFWQeqb80QxBXD3qtcQJIZxiZgNRWMFLZboy-uVL1NRNRk6lORVPDX8/s1600/Screenshot+2020-03-24+at+2.00.50+PM.png" imageanchor="1"><img alt="Create A Record In Salesforce Lightning Component With Error Handling By SalesforceKid" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2_KGcKnAIgkfaP2zWSJcu70p7fnXysxkMJGNq79x0NpmAnDSwo0Zq7I1z7DDiiK5woZuSaDaa6r9tk0Ft4jf8AFWQeqb80QxBXD3qtcQJIZxiZgNRWMFLZboy-uVL1NRNRk6lORVPDX8/s1600/Screenshot+2020-03-24+at+2.00.50+PM.png" title="Create A Record In Salesforce Lightning Component With Error Handling By SalesforceKid" /></a></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">--------------------------------------------------------</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">- Click on that action.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">You will see something like this and now you can put your input values and check the component. </span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b>OUTPUT :</b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">--------------------------------------------------------</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">- When you open <b>quick action </b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgz1GXMmKJ3bXmUJTpvfTvJQp2aKKAAo98hkRkTx7OpXMjlqOFuMSgFmaHxk3JYBM4a63j1GM7V-WMFGyasIn-VkkF7bAheKsrON77S5oyfb76cxp4BIGmaTtv6hr8hWPFdxoyZwkcW2F4/s1600/Screenshot+2020-03-24+at+12.39.51+PM.png" imageanchor="1"><img alt="Create A Record In Salesforce Lightning Component With Error Handling By SalesforceKid" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgz1GXMmKJ3bXmUJTpvfTvJQp2aKKAAo98hkRkTx7OpXMjlqOFuMSgFmaHxk3JYBM4a63j1GM7V-WMFGyasIn-VkkF7bAheKsrON77S5oyfb76cxp4BIGmaTtv6hr8hWPFdxoyZwkcW2F4/s1600/Screenshot+2020-03-24+at+12.39.51+PM.png" title="Create A Record In Salesforce Lightning Component With Error Handling By SalesforceKid" /></a></span></div>
<div>
<br /></div>
<div>
- <span style="font-family: "verdana" , sans-serif;"><b>Undefined</b> field check With Toast</span></div>
<div>
<br /></div>
<div>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiS1DRDAkMHmvMwUZ2ryDhs8EQUHIDPKdVTqmgAXFVTQ3TM61C5tCZjbvqs1q437cXKTY1nnQQT_5eHIl89Xilzu3jFf5lS-HjkjqWCC7YbpFvFdEy50ghbVs6Nr_rDtU_CDUKral2Z1XQ/s1600/Screenshot+2020-03-24+at+12.40.26+PM.png" imageanchor="1"><img alt="Create A Record In Salesforce Lightning Component With Error Handling By SalesforceKid" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiS1DRDAkMHmvMwUZ2ryDhs8EQUHIDPKdVTqmgAXFVTQ3TM61C5tCZjbvqs1q437cXKTY1nnQQT_5eHIl89Xilzu3jFf5lS-HjkjqWCC7YbpFvFdEy50ghbVs6Nr_rDtU_CDUKral2Z1XQ/s1600/Screenshot+2020-03-24+at+12.40.26+PM.png" title="Create A Record In Salesforce Lightning Component With Error Handling By SalesforceKid" /></a></div>
<div>
<br /></div>
<div>
- <span style="font-family: "verdana" , sans-serif;">Once user filled up everything correctly and saved the record <b>Success </b>toast and <b>close popup</b>.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPCVFENzJflfwJdtkdiRDnFMi717FAhvxKgAIhTd-Kl7iMIAXPUwjqPu2WLUHelZ5JtjMXPoAH_eRmv7L3UBiZhHnjMTxnjqYjvlkHqP1H92h-ovlz3bW_SJwvIj-7DspopmojvA0Ap3U/s1600/Screenshot+2020-03-24+at+12.40.15+PM.png" imageanchor="1"><img alt="Create A Record In Salesforce Lightning Component With Error Handling By SalesforceKid" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPCVFENzJflfwJdtkdiRDnFMi717FAhvxKgAIhTd-Kl7iMIAXPUwjqPu2WLUHelZ5JtjMXPoAH_eRmv7L3UBiZhHnjMTxnjqYjvlkHqP1H92h-ovlz3bW_SJwvIj-7DspopmojvA0Ap3U/s1600/Screenshot+2020-03-24+at+12.40.15+PM.png" title="Create A Record In Salesforce Lightning Component With Error Handling By SalesforceKid" /></a></span></div>
<div>
<br /></div>
<div>
<span style="font-family: "verdana" , sans-serif;">--------------------------------------------------------</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">After this, you can go to the account object and see the will be created in the Account List Successfully!! 🎊</span><br />
<br />
<span style="font-family: "verdana" , sans-serif;">Visit our youtube channel for preview and demonstration of our output :</span><br />
<span style="font-family: "verdana" , sans-serif;">--------------------------------------------------------</span><br />
<br />
<iframe allowfullscreen="" frameborder="0" height="270" src="https://www.youtube.com/embed/rX0Nh49OGLs?clip=&clipt=EAAYAA%3D%3D" width="480"></iframe><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">--------------------------------------------------------</span>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">Coooool !! In this easy way, you can create the records with a completely customised salesforce lightning component. I hope this will be very easy for you guys to understand step by step.</span></div>
<div>
</div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b>WOHOOO !! YOU HAVE JUST COMPLETED CUSTOM CONFETTI IN SALESFORCE LIGHTNING COMPONENT</b></span><span style="font-family: "verdana" , sans-serif;"><b> EPISODE</b></span><br />
<span style="font-family: "verdana" , sans-serif;"><span style="font-family: "verdana" , sans-serif;"><span style="background-color: white; font-size: 15px;">If you like this</span><span style="background-color: white; color: #5e5e5e; font-size: 15px;"> </span><a href="https://www.salesforcekid.com/">salesforcekid</a><span style="background-color: white; color: #5e5e5e; font-size: 15px;"> </span><span style="background-color: white; font-size: 15px;">learning platform please let me know in the Comment section...Also, Share with your salesforce folks wish you all</span></span></span><br />
<span style="background-color: white; font-family: "verdana" , sans-serif; font-size: 15px;">Happy Learning ☁️⚡️ (Learn. Help. Share.) 😊</span><span style="font-family: "verdana" , sans-serif;"> </span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;"><a href="https://www.salesforcekid.com/2020/02/component-events-in-salesforce-lightning.html"><b><< PREVIOUS</b></a></span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiW4ZTgE2bQyeBq-e62QRMtkYNdjNTccXNrzzxH2E1L1mqnUV91C0JMw5rbyDdaAraPJ2HWT6SU2Flt28dD6-Zplle-o3n1mbYpQQEMz0Y247Tec3NmM8a6vMnU0YZJFf8TZD_7LdRyjfI/s1600/blogBottom.jpg" imageanchor="1"><img alt="SalesforceKid On play google play store" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiW4ZTgE2bQyeBq-e62QRMtkYNdjNTccXNrzzxH2E1L1mqnUV91C0JMw5rbyDdaAraPJ2HWT6SU2Flt28dD6-Zplle-o3n1mbYpQQEMz0Y247Tec3NmM8a6vMnU0YZJFf8TZD_7LdRyjfI/s1600/blogBottom.jpg" title="SalesforceKid on google play store " /></a></span></div>
</div>
</div>
AJINKYA DHAS http://www.blogger.com/profile/13223328981950114267noreply@blogger.com9tag:blogger.com,1999:blog-8457518975744463615.post-25258684122548915702020-03-19T09:18:00.000-07:002020-03-19T09:22:16.129-07:00@wire Possibilities In Lightning Web Component ( LWC) Salesforce<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: center;">
<span style="font-family: "verdana" , sans-serif;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0Fh3rZx4PkhGEBGxdj4_-plKfyfJ6gcIO_rBrGyzdIDTQVPiKMvAzb6mejRZwyylWkERmiZ2acEWbvHxfWd2-M_HpTn5OJVWaHEL-eGxOJhE2BIJHUyoXQfQub8KPNczrkl36AjudOhU/s1600/wireLWC.jpg" imageanchor="1"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0Fh3rZx4PkhGEBGxdj4_-plKfyfJ6gcIO_rBrGyzdIDTQVPiKMvAzb6mejRZwyylWkERmiZ2acEWbvHxfWd2-M_HpTn5OJVWaHEL-eGxOJhE2BIJHUyoXQfQub8KPNczrkl36AjudOhU/s1600/wireLWC.jpg" /></a></span></h2>
<h2 style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: center;">
<span style="font-family: "verdana" , sans-serif;">@wire Possibilities IN LWC</span></h2>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span style="font-family: "verdana" , sans-serif;">In this EPISODE we are going to discuss what are the possibilities with mysterious <b>@wire </b>property in salesforce lightning web component (LWC). </span></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span style="font-family: "verdana" , sans-serif;">With the help of this, we will also understand how wire can help us to develop lightning web components.</span></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span style="font-family: "verdana" , sans-serif;"><br /></span></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span style="font-family: "verdana" , sans-serif;">So let's....get....started...</span></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span style="font-family: "verdana" , sans-serif;"><br /></span></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span style="font-family: "verdana" , sans-serif; font-size: large;"><b>What Exactly @wire In LWC ?</b></span></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span style="font-family: "verdana" , sans-serif;">Salesforce lightning web components can import methods from Apex classes. The imported methods are functions that the component can call either via <b>@wire</b> or <b>imperatively</b>. Today we will discuss <b>@wire </b>adaptor.</span></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span style="font-family: "verdana" , sans-serif;"><br /></span></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span style="font-family: "verdana" , sans-serif;"><b>@wire </b>property is useful when you want to consume the data or an error.</span></span></div>
<span style="color: black; font-family: "verdana" , sans-serif; font-size: 11pt; vertical-align: baseline; white-space: pre-wrap;"><br /></span>
<span style="color: black; font-family: "verdana" , sans-serif; font-size: 11pt; vertical-align: baseline; white-space: pre-wrap;">In salesforce lightning web component<b> @wire</b></span><span style="color: black; font-family: "verdana" , sans-serif; font-size: 11pt; vertical-align: baseline; white-space: pre-wrap;"> can be used :</span><br />
<ul style="margin-bottom: 0px; margin-top: 0px; text-align: left;">
<li><span style="font-size: 11pt; white-space: pre-wrap;"><span style="font-family: "verdana" , sans-serif;"><b>To a property</b></span></span></li>
<li><span style="font-family: "verdana" , sans-serif;"><b>As a function</b></span></li>
</ul>
<span style="font-family: "verdana" , sans-serif; font-size: 11pt; white-space: pre-wrap;"><br /></span>
<span style="font-family: "verdana" , sans-serif; font-size: 11pt; white-space: pre-wrap;">Let's understand the usage of </span><b style="font-family: verdana, sans-serif; font-size: 11pt; white-space: pre-wrap;">@wire </b><span style="font-family: "verdana" , sans-serif; font-size: 11pt; white-space: pre-wrap;">with the help of the following example to understand </span><b style="font-family: verdana, sans-serif; font-size: 11pt; white-space: pre-wrap;">@wire</b><span style="font-family: "verdana" , sans-serif; font-size: 11pt; white-space: pre-wrap;">.</span><br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<br /></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana" , sans-serif;"><span style="background-color: transparent; color: black; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><b><span style="font-size: large;">Wire a property :</span></b></span><span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana" , sans-serif;"><span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Here, the </span><span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><b>wire</b></span><span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> service either provides you with the list of account to the </span><span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">wiredAccounts</span><span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">.</span><span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">data</span><span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> property, or returns an error to the </span><span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">wiredAccounts.error </span><span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">property</span><span style="background-color: #fafaf9; color: #080707; font-size: 12pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">.</span></span></div>
<div dir="ltr" style="background-color: #1e1e1e; line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt;">
<b><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-size: x-small; vertical-align: baseline; white-space: pre;">//below code will wire list of Account data </span></b></div>
<div dir="ltr" style="background-color: #1e1e1e; line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt;">
<b><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">@</span><span style="background-color: transparent; color: #dcdcaa; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">wire</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">(</span><span style="background-color: transparent; color: #dcdcaa; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">getAccounts</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">) </span><span style="background-color: transparent; color: #dcdcaa; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">wiredAccounts</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">;</span></b></div>
<span style="color: black; font-family: "verdana" , sans-serif; vertical-align: baseline; white-space: pre-wrap;"><b><span style="font-size: large;"><br /></span></b></span>
<span style="color: black; font-family: "verdana" , sans-serif; vertical-align: baseline; white-space: pre-wrap;"><b><span style="font-size: large;">Wire a function :</span></b></span><span style="color: black; font-family: "verdana" , sans-serif; font-size: 11pt; vertical-align: baseline; white-space: pre-wrap;"> </span><br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana" , sans-serif;"><span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Wire a function if you want to </span><span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><b>operate</b></span><span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> on the returned data. </span></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana" , sans-serif;"><span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">If a function is decorated with </span><span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><b>@wire</b></span><span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">, the results are returned in an object with a </span><span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">data</span><span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> property or an </span><span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">error</span><span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> property.</span></span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="background-color: #1e1e1e; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><b><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">@</span><span style="background-color: transparent; color: #dcdcaa; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">track</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #9cdcfe; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">lstaccounts</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">;</span></b></div>
<div dir="ltr" style="background-color: #1e1e1e; line-height: 1.2; margin-bottom: 0pt; margin-top: 0pt;">
<b><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> @</span><span style="background-color: transparent; color: #dcdcaa; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">track</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #9cdcfe; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">error</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">;</span></b></div>
<div dir="ltr" style="background-color: #1e1e1e; line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt;">
<b><br /></b></div>
<div dir="ltr" style="background-color: #1e1e1e; line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt;">
<b><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> //below code will be used as a function</span></b><br />
<b><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> @</span><span style="background-color: transparent; color: #dcdcaa; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">wire</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">(</span><span style="background-color: transparent; color: #dcdcaa; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">getAccounts</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">) </span><span style="background-color: transparent; color: #dcdcaa; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">wiredAccounts</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> ({ </span><span style="background-color: transparent; color: #9cdcfe; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">error</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">, </span><span style="background-color: transparent; color: #9cdcfe; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">data</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> }) {</span></b></div>
<div dir="ltr" style="background-color: #1e1e1e; line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt;">
<b><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #c586c0; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">if</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> (</span><span style="background-color: transparent; color: #9cdcfe; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">data</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">) {</span></b></div>
<div dir="ltr" style="background-color: #1e1e1e; line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt;">
<b><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #569cd6; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">this</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">.</span><span style="background-color: transparent; color: #9cdcfe; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">lstaccounts</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> = </span><span style="background-color: transparent; color: #9cdcfe; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">data</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">;</span></b></div>
<div dir="ltr" style="background-color: #1e1e1e; line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt;">
<b><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> } </span><span style="background-color: transparent; color: #c586c0; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">else</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #c586c0; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">if</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> (</span><span style="background-color: transparent; color: #9cdcfe; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">error</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">) {</span></b></div>
<div dir="ltr" style="background-color: #1e1e1e; line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt;">
<b><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #569cd6; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">this</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">.</span><span style="background-color: transparent; color: #9cdcfe; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">error</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> = </span><span style="background-color: transparent; color: #9cdcfe; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">error</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">;</span></b></div>
<div dir="ltr" style="background-color: #1e1e1e; line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><b> }</b></span></div>
<div dir="ltr" style="background-color: #1e1e1e; line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><b> }</b></span></div>
<b style="font-family: verdana, sans-serif; white-space: pre-wrap;"><span style="font-size: large;"><br /></span></b>
<b style="font-family: verdana, sans-serif; white-space: pre-wrap;"><span style="font-size: large;">Wire with dynamic Parameters :</span></b><br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana" , sans-serif;"><span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">- A parameter with </span><span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><b>$</b></span><span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> to indicate that it’s </span><span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><b>dynamic</b></span><span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> and </span><span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><b>reactive</b></span><span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">. </span></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana" , sans-serif;"><span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">- It refers to a property of the </span><span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><b>component instance</b></span><span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">. </span></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana" , sans-serif;"><span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">- If its value changes, the template </span><span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">rerenders</span><span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">.</span></span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="background-color: #1e1e1e; line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;"> </span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><b><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">@</span><span style="background-color: transparent; color: #dcdcaa; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">track</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #9cdcfe; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">strName</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">;</span></b><br />
<b><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">//using @wire with dynamic parameters</span></b></div>
<div dir="ltr" style="background-color: #1e1e1e; line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt;">
<b><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> @</span><span style="background-color: transparent; color: #dcdcaa; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">wire</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">(</span><span style="background-color: transparent; color: #dcdcaa; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">getFilteredAccounts</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">,{</span><span style="background-color: transparent; color: #9cdcfe; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">strName:</span><span style="background-color: transparent; color: #ce9178; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> ‘$strName’</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">}) </span><span style="background-color: transparent; color: #dcdcaa; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">wiredAccounts</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> ({ </span><span style="background-color: transparent; color: #9cdcfe; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">error</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">, </span><span style="background-color: transparent; color: #9cdcfe; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">data</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> }) {</span></b></div>
<div dir="ltr" style="background-color: #1e1e1e; line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt;">
<b><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #c586c0; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">if</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> (</span><span style="background-color: transparent; color: #9cdcfe; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">data</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">) {</span></b></div>
<div dir="ltr" style="background-color: #1e1e1e; line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt;">
<b><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #569cd6; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">this</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">.</span><span style="background-color: transparent; color: #9cdcfe; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">lstaccounts</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> = </span><span style="background-color: transparent; color: #9cdcfe; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">data</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">;</span></b></div>
<div dir="ltr" style="background-color: #1e1e1e; line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt;">
<b><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> } </span><span style="background-color: transparent; color: #c586c0; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">else</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #c586c0; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">if</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> (</span><span style="background-color: transparent; color: #9cdcfe; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">error</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">) {</span></b></div>
<div dir="ltr" style="background-color: #1e1e1e; line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt;">
<b><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #569cd6; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">this</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">.</span><span style="background-color: transparent; color: #9cdcfe; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">error</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> = </span><span style="background-color: transparent; color: #9cdcfe; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">error</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">;</span></b></div>
<div dir="ltr" style="background-color: #1e1e1e; line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt; text-indent: 36pt;">
<span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><b>}</b></span></div>
<div dir="ltr" style="background-color: #1e1e1e; line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><b> }</b></span></div>
<b style="font-family: verdana, sans-serif; font-size: x-large; white-space: pre-wrap;"><br /></b>
<b style="font-family: verdana, sans-serif; font-size: x-large; white-space: pre-wrap;">Wire to refresh :</b><br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span style="font-family: "verdana" , sans-serif;">It can also be used in a scenario where you need to r<b>efresh your data on an action</b></span></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span style="font-family: "verdana" , sans-serif;"><br /></span></span></div>
<div dir="ltr" style="background-color: #1e1e1e; line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: #dcdcaa; font-family: "courier new"; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;"> </span><span style="background-color: transparent; color: #dcdcaa; font-family: "courier new"; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><b><span style="background-color: transparent; color: #dcdcaa; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> afterUpdate</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">(){</span></b></div>
<div dir="ltr" style="background-color: #1e1e1e; line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt;">
<b><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #dcdcaa; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">getUpdatedAccounts</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">({</span><span style="background-color: transparent; color: #9cdcfe; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">param1:</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #569cd6; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">this</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">.</span><span style="background-color: transparent; color: #9cdcfe; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">param1</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">})</span></b></div>
<div dir="ltr" style="background-color: #1e1e1e; line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt;">
<b><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> .</span><span style="background-color: transparent; color: #dcdcaa; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">then</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">(</span><span style="background-color: transparent; color: #9cdcfe; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">result</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #569cd6; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=></span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> {</span></b></div>
<div dir="ltr" style="background-color: #1e1e1e; line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt;">
<b><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> //below code will be use to refresh the wiredAccounts </span></b><br />
<b><span style="background-color: transparent; color: #dcdcaa; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> refreshApex</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">(</span><span style="background-color: transparent; color: #569cd6; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">this</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">.</span><span style="background-color: transparent; color: #dcdcaa; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">wiredAccounts</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">);</span></b></div>
<div dir="ltr" style="background-color: #1e1e1e; line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt;">
<b><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> }).</span><span style="background-color: transparent; color: #dcdcaa; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">catch</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">(</span><span style="background-color: transparent; color: #9cdcfe; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">error</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #569cd6; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=></span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> {</span></b></div>
<div dir="ltr" style="background-color: #1e1e1e; line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt;">
<b><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #569cd6; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">this</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">.</span><span style="background-color: transparent; color: #9cdcfe; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">error</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> = </span><span style="background-color: transparent; color: #9cdcfe; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">error</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">;</span></b></div>
<div dir="ltr" style="background-color: #1e1e1e; line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><b> });</b></span></div>
<div dir="ltr" style="background-color: #1e1e1e; line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><b> }</b></span></div>
<span style="color: black; font-family: "verdana" , sans-serif; font-size: large; vertical-align: baseline; white-space: pre-wrap;"><b><br /></b></span>
<span style="color: black; font-family: "verdana" , sans-serif; font-size: large; vertical-align: baseline; white-space: pre-wrap;"><b>Reuse apex calls without @wire :</b></span><span style="color: black; font-family: "verdana" , sans-serif; font-size: large; vertical-align: baseline; white-space: pre-wrap;"> </span><br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana" , sans-serif;"><span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">- <b>@wire</b></span><span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> accepts defined adapters. </span></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana" , sans-serif;"><span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">- If you wish to </span><span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><b>reuse</b></span><span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> the </span><span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><b>apex calling </b></span><span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">we can do it using connected callbacks.</span></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana" , sans-serif; font-size: 11pt; vertical-align: baseline; white-space: pre-wrap;">- Connected callbacks are called when the element is <b>inserted</b> into the <b>DOM</b></span><span style="background-color: #fafaf9; color: #080707; font-family: "verdana" , sans-serif; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;">.</span><span style="font-family: "verdana" , sans-serif; font-size: 11pt; vertical-align: baseline; white-space: pre-wrap;"> </span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana" , sans-serif; font-size: 11pt; vertical-align: baseline; white-space: pre-wrap;">- It is generally used when we want our code to <b>run</b> only <b>one time</b>, to prevent it from running twice. </span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana" , sans-serif; font-size: 11pt; vertical-align: baseline; white-space: pre-wrap;">- <b>For example:</b> when you hit the save button multiple times then your record will get saved multiple time because your code will run multiple times. </span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana" , sans-serif; font-size: 11pt; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana" , sans-serif; font-size: 11pt; vertical-align: baseline; white-space: pre-wrap;"><b>In that case, you need to use the following snippet syntax :</b></span></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana" , sans-serif;"><span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><br /></span></span></div>
<div dir="ltr" style="background-color: #1e1e1e; line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: #dcdcaa; font-family: "courier new"; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre;"> </span><span style="background-color: transparent; color: #dcdcaa; font-family: "courier new"; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><b><span style="background-color: transparent; color: #cccccc; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> //below code will be used to reuse apex calls without wire</span></b><br />
<b><span style="background-color: transparent; color: #dcdcaa; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> connectedCallback</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">() {</span></b></div>
<div dir="ltr" style="background-color: #1e1e1e; line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt;">
<b><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #569cd6; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">this</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">.</span><span style="background-color: transparent; color: #dcdcaa; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">applyFilter</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">();</span></b></div>
<div dir="ltr" style="background-color: #1e1e1e; line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><b> }</b></span></div>
<div dir="ltr" style="background-color: #1e1e1e; line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt;">
<b><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #dcdcaa; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">applyFilter</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">(){</span></b></div>
<div dir="ltr" style="background-color: #1e1e1e; line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt;">
<b><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #dcdcaa; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">getFilteredAccounts</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">({</span><span style="background-color: transparent; color: #9cdcfe; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">strName:</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #569cd6; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">this</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">.</span><span style="background-color: transparent; color: #9cdcfe; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">strName</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">}).</span><span style="background-color: transparent; color: #dcdcaa; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">then</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">(</span><span style="background-color: transparent; color: #9cdcfe; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">result</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #569cd6; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=></span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> {</span></b></div>
<div dir="ltr" style="background-color: #1e1e1e; line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt;">
<b><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #569cd6; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">this</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">.</span><span style="background-color: transparent; color: #9cdcfe; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">lstaccounts</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> = </span><span style="background-color: transparent; color: #9cdcfe; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">result</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">;</span></b></div>
<div dir="ltr" style="background-color: #1e1e1e; line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt;">
<b><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> }).</span><span style="background-color: transparent; color: #dcdcaa; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">catch</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">(</span><span style="background-color: transparent; color: #9cdcfe; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">error</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #569cd6; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">=></span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> {</span></b></div>
<div dir="ltr" style="background-color: #1e1e1e; line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt;">
<b><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="background-color: transparent; color: #569cd6; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">this</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">.</span><span style="background-color: transparent; color: #9cdcfe; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">error</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> = </span><span style="background-color: transparent; color: #9cdcfe; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">error</span><span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">;</span></b></div>
<div dir="ltr" style="background-color: #1e1e1e; line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><b> });</b></span></div>
<div dir="ltr" style="background-color: #1e1e1e; line-height: 1.7999999999999998; margin-bottom: 0pt; margin-top: 0pt;">
<span style="background-color: transparent; color: #d4d4d4; font-family: "courier new"; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><b> }</b></span></div>
<b style="font-weight: normal;"><br /></b>
<br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<b style="font-family: Verdana, sans-serif; font-size: x-large; white-space: pre-wrap;">Few things to keep in mind :</b></div>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
</div>
<ul style="text-align: left;">
<li><span style="font-family: "verdana" , sans-serif;"><span style="font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;">To use apex methods via <b>@wire</b>, you must annotate it with </span><span style="background-color: #f8f8f8; color: #000814; font-size: 12pt; vertical-align: baseline; white-space: pre-wrap;"><b>cacheable=true</b>.</span></span></li>
<li><span style="font-family: "verdana" , sans-serif;"><span style="font-size: 11pt; white-space: pre-wrap;">Assess your use case properly before deciding to use <b>@wire</b></span><span style="font-size: 14.6667px; white-space: pre-wrap;">
- </span>Check if, Base Lightning component, like <span style="font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">lightning-record-form, lightning-record-view-form, or lightning-record-edit-form</span><span style="font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline;"><span style="font-size: 11pt; white-space: pre-wrap;"> can be used</span><span style="font-size: 14.6667px; white-space: pre-wrap;">
</span></span><span style="font-size: 14.6667px; white-space: pre-wrap;">- </span>If not, check for <b>@wire Adapters and functions</b><br />- If both the above don’t serve the purpose, you can write apex code</span></li>
<li><span style="font-family: "verdana" , sans-serif;"><b>@wire</b> is a reactive service. When the wire service provisions data, the component re-renders. if you want it to be fired on-demand, then it's better to go with the imperative approach<span style="background-color: white; color: #242729; font-size: 11.5pt; vertical-align: baseline; white-space: pre-wrap;">.</span></span></li>
</ul>
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<span style="font-family: "verdana" , sans-serif;"><span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Wire Adapters are beyond the apex. Here are few</span><span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 700; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> lightning/ui*Api Wire Adapters and Functions </span><span style="background-color: transparent; color: black; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">to work with Salesforce data and metadata references :</span></span></div>
<span style="color: black; font-family: "verdana" , sans-serif; font-size: 11pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"><br /></span>
<span style="color: black; font-family: "verdana" , sans-serif; font-size: 11pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">getListUi(Beta)</span><span style="color: black; font-family: "verdana" , sans-serif; font-size: 11pt; vertical-align: baseline; white-space: pre-wrap;"> - </span><span style="color: black; font-family: "verdana" , sans-serif; font-size: 11pt; vertical-align: baseline; white-space: pre-wrap;"><b>to get the records and metadata for a list view</b></span><br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<a href="https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.reference_get_list_ui" style="text-decoration: none;" target="_blank"><span style="background-color: transparent; color: #1155cc; font-family: "calibri" , sans-serif; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre;">https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.reference_get_list_ui</span></a></div>
<span style="color: black; font-family: "verdana" , sans-serif; font-size: 11pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"><br /></span>
<span style="color: black; font-family: "verdana" , sans-serif; font-size: 11pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">getObjectInfo</span><span style="color: black; font-family: "verdana" , sans-serif; font-size: 11pt; vertical-align: baseline; white-space: pre-wrap;"> - </span><span style="color: black; font-family: "verdana" , sans-serif; font-size: 11pt; vertical-align: baseline; white-space: pre-wrap;"><b>to get metadata about a specific object which includes metadata describing fields, child relationships, record type, and theme</b></span><br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<a href="https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.reference_wire_adapters_object_info" style="text-decoration: none;" target="_blank"><span style="background-color: transparent; color: #1155cc; font-family: "calibri" , sans-serif; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre;">https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.reference_wire_adapters_object_info</span></a></div>
<span style="color: black; font-family: "verdana" , sans-serif; font-size: 11pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"><br /></span>
<span style="color: black; font-family: "verdana" , sans-serif; font-size: 11pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">getPicklistValues </span><span style="color: black; font-family: "verdana" , sans-serif; font-size: 11pt; vertical-align: baseline; white-space: pre-wrap;">- </span><span style="color: black; font-family: "verdana" , sans-serif; font-size: 11pt; vertical-align: baseline; white-space: pre-wrap;"><b>to get the picklist values for a specified field</b></span><br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<a href="https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.reference_wire_adapters_picklist_values" style="text-decoration: none;" target="_blank"><span style="background-color: transparent; color: #1155cc; font-family: "calibri" , sans-serif; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre;">https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.reference_wire_adapters_picklist_values</span></a></div>
<span style="color: black; font-family: "verdana" , sans-serif; font-size: 11pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"><br /></span>
<span style="color: black; font-family: "verdana" , sans-serif; font-size: 11pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">getRecord - </span><span style="color: black; font-family: "verdana" , sans-serif; font-size: 11pt; vertical-align: baseline; white-space: pre-wrap;"><b>to get a record’s data</b></span><br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<a href="https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.reference_wire_adapters_record" style="text-decoration: none;" target="_blank"><span style="background-color: transparent; color: #1155cc; font-family: "calibri" , sans-serif; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre;">https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.reference_wire_adapters_record</span></a></div>
<span style="color: black; font-family: "verdana" , sans-serif; font-size: 11pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;"><br /></span>
<span style="color: black; font-family: "verdana" , sans-serif; font-size: 11pt; font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">createRecord</span><span style="color: black; font-family: "verdana" , sans-serif; font-size: 11pt; vertical-align: baseline; white-space: pre-wrap;"> - </span><span style="color: black; font-family: "verdana" , sans-serif; font-size: 11pt; vertical-align: baseline; white-space: pre-wrap;"><b>Creates a record</b></span><br />
<div dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;">
<a href="https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.reference_create_record" style="text-decoration: none;" target="_blank"><span style="background-color: transparent; color: #1155cc; font-family: "calibri" , sans-serif; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: underline; vertical-align: baseline; white-space: pre;">https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.reference_create_record</span></a></div>
<span style="color: black; font-size: 11pt; vertical-align: baseline; white-space: pre-wrap;"><span style="font-family: "verdana" , sans-serif;"><br /></span></span>
<span style="color: black; font-size: 11pt; vertical-align: baseline; white-space: pre-wrap;"><span style="font-family: "verdana" , sans-serif;">And few others, in detail</span></span><span style="color: black; font-family: "calibri" , sans-serif; font-size: 11pt; vertical-align: baseline; white-space: pre;"> </span><a href="https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.reference_ui_api" style="text-decoration-line: none;"><span style="color: #1155cc; font-family: "calibri" , sans-serif; font-size: 11pt; vertical-align: baseline; white-space: pre;">https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.reference_ui_api</span></a><br />
<br />
<span style="font-family: "verdana" , sans-serif;">Coool !! I hope now you have more possibilities with <b>@wire </b>in salesforce lightning web components.</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFFe_Gvk13hKc4ldn_rjJgRIXRLw7mkkm6tkghhh5tKYWJbRCf9PJWQcIlwosVhUBxEZ4hABIw-3hDEehd2zPd8s0LTj5C8_I8yIiQH7_QpkTfFqKpzQMYtGeQ61FDD4ucJycVxnf16Ak/s1600/sikha.jpg" imageanchor="1"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFFe_Gvk13hKc4ldn_rjJgRIXRLw7mkkm6tkghhh5tKYWJbRCf9PJWQcIlwosVhUBxEZ4hABIw-3hDEehd2zPd8s0LTj5C8_I8yIiQH7_QpkTfFqKpzQMYtGeQ61FDD4ucJycVxnf16Ak/s1600/sikha.jpg" /></a></span><br />
<span style="font-family: "verdana" , sans-serif;"><b><br /></b></span>
<span style="font-family: "verdana" , sans-serif;"><b>WOHOOO !! YOU HAVE JUST COMPLETED @WIRE POSSIBILITIES IN SALESFORCE LIGHTNING WEB COMPONENT</b></span><span style="font-family: "verdana" , sans-serif;"><b> EPISODE</b></span><br />
<span style="font-family: "verdana" , sans-serif;"><span style="font-family: "verdana" , sans-serif;"><span style="background-color: white; font-size: 15px;">If you like this</span><span style="background-color: white; color: #5e5e5e; font-size: 15px;"> </span><a href="https://www.salesforcekid.com/">salesforcekid</a><span style="background-color: white; color: #5e5e5e; font-size: 15px;"> </span><span style="background-color: white; font-size: 15px;">learning platform please let me know in the Comment section...Also, Share with your salesforce folks wish you all</span></span></span><br />
<span style="font-family: "verdana" , sans-serif;"><span style="background-color: white; font-size: 15px;">Happy Learning ☁️⚡️ (Learn. Help. Share.) 😊</span> </span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<b><span style="font-family: "verdana" , sans-serif;"><a href="https://www.salesforcekid.com/2020/03/javascript-standards-for-salesforce.html?m=1"><< PREVIOUS</a> <a href="https://www.salesforcekid.com/2019/12/salesforce-lightning-web-component-record-form-modal-popup-dependant-picklist.html">NEXT >></a></span></b><br />
<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFC_e3ystSqGxG2qjy-P_vFDOSiKdLEmWUeumosf-DP6Np70eCFCrFAPYtBWbC_VMiSzv3UNaTaCvu2DBAzF60f4eL8kaXnuIDL57sM50_JtbHa4wW1quR6wB83904j18KY4EALcL_Usk/s1600/blogBottom.jpg" imageanchor="1"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFC_e3ystSqGxG2qjy-P_vFDOSiKdLEmWUeumosf-DP6Np70eCFCrFAPYtBWbC_VMiSzv3UNaTaCvu2DBAzF60f4eL8kaXnuIDL57sM50_JtbHa4wW1quR6wB83904j18KY4EALcL_Usk/s1600/blogBottom.jpg" /></a></div>
AJINKYA DHAS http://www.blogger.com/profile/13223328981950114267noreply@blogger.com0tag:blogger.com,1999:blog-8457518975744463615.post-49957315882880725702020-03-14T23:46:00.001-07:002020-03-14T23:48:09.148-07:00Custom Confetti(Celebration) In Lightning Component Salesforce <div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: center;">
<span style="font-family: "verdana" , sans-serif;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfcn0f2eelqT7bciasxZdU2VPSlUOBe1Dw1fTpI_g5BPC_U4E-OKKSoqG1nKXi9FMlG2XSBSue4tWYDqPlm4DRGKeb_4prrojumZ3qtotzzRhGS4c6ozbUdp9gQdFiaM_rApXN482HBrA/s1600/CONFETTI.jpg" imageanchor="1"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfcn0f2eelqT7bciasxZdU2VPSlUOBe1Dw1fTpI_g5BPC_U4E-OKKSoqG1nKXi9FMlG2XSBSue4tWYDqPlm4DRGKeb_4prrojumZ3qtotzzRhGS4c6ozbUdp9gQdFiaM_rApXN482HBrA/s1600/CONFETTI.jpg" /></a></span></h2>
<h2 style="text-align: center;">
<span style="font-family: "verdana" , sans-serif;">Custom Confetti In Lightning Component Salesforce </span></h2>
<div>
<span style="font-family: "verdana" , sans-serif;">In this EPISODE, we will learn how to create custom confetti (Celebration) in salesforce lightning component.</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif; font-size: large;"><b>Don't know what is confetti 🎉?</b></span><br />
<span style="font-family: "verdana" , sans-serif;">Don't worry !! It's the most attractive way of celebrating your opportunity won or quote accepted in business scenarios. This feature is introduced by salesforce recently in your <b>path setting</b>. </span><br />
<span style="font-family: "verdana" , sans-serif;">But what if you want to use this in your lightning component <b>for example </b>: when you are saving the record from a custom lightning component record form then you want to show this <b>confetti </b>or when you have completed any process then you want to display this celebration 🎊.</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">Today we are going to create different types of confetti, Have a look at </span><br />
<span style="font-family: "verdana" , sans-serif;"><b><br /></b></span>
<span style="font-family: "verdana" , sans-serif;"><b>Today's Recipe</b> :</span><br />
<span style="font-family: "verdana" , sans-serif;">-----------------------------------------------------</span><br />
<span style="font-family: "verdana" , sans-serif;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDotawFmhex98StpP4kW_WumvEmcEGke12oLVkr3E8Tym123LSY80GMqjy4VbV9N8-6ilcyemLY_lp_Mpjj8lsoMVueMAqMUS2zMlsviEzgnt18vE22oYRD0YhiD9KMHmTKFrvVWaP7bY/s1600/Screenshot+2020-03-14+at+11.51.47+PM.png" imageanchor="1"><img border="0" height="350" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDotawFmhex98StpP4kW_WumvEmcEGke12oLVkr3E8Tym123LSY80GMqjy4VbV9N8-6ilcyemLY_lp_Mpjj8lsoMVueMAqMUS2zMlsviEzgnt18vE22oYRD0YhiD9KMHmTKFrvVWaP7bY/s640/Screenshot+2020-03-14+at+11.51.47+PM.png" width="640" /></a> </span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5ckWdrWtBBfQcXbffthGgN_-hnieePt3pf0zOp7qL_aPRa_qZ6SS5fogXKY66YwbkrQIRKmxahmMClDyoboXxdvQDurCS-RsAv7ZCTNRsJadfGISCkhV1-U8H-Z2fM4u1qQNP2tJO0hI/s1600/Screenshot+2020-03-14+at+11.56.50+PM.png" imageanchor="1"><img border="0" height="350" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5ckWdrWtBBfQcXbffthGgN_-hnieePt3pf0zOp7qL_aPRa_qZ6SS5fogXKY66YwbkrQIRKmxahmMClDyoboXxdvQDurCS-RsAv7ZCTNRsJadfGISCkhV1-U8H-Z2fM4u1qQNP2tJO0hI/s640/Screenshot+2020-03-14+at+11.56.50+PM.png" width="640" /></a> </span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFLqlCI9SUWG_mrF-MZWBJBBMnKw8vtdV5hyphenhyphenvBRbS1vnu9F3IovvSRMHl6s_8CIBPb2inLzpFjCoiBD8R7jT1OEMqAY09Vj0_Wt-ZKYtpEC2rGxhemsf8MJHZ73HqrDXt54PpvOBjg7cU/s1600/Screenshot+2020-03-14+at+11.52.41+PM.png" imageanchor="1"><img border="0" height="350" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFLqlCI9SUWG_mrF-MZWBJBBMnKw8vtdV5hyphenhyphenvBRbS1vnu9F3IovvSRMHl6s_8CIBPb2inLzpFjCoiBD8R7jT1OEMqAY09Vj0_Wt-ZKYtpEC2rGxhemsf8MJHZ73HqrDXt54PpvOBjg7cU/s640/Screenshot+2020-03-14+at+11.52.41+PM.png" width="640" /></a></span><br />
<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh66mPrL13L2AA33yToMWD0cBfyUTda9BqtOZI_yorJXTTI5NcPJYPzBNmHEHQ_hPcfx4qcBvkc-oxdMTPoURj-LauYg4dsc3PEKTwC7635XiASXPTr8UJh9cRkgNPtH0ODNsI8LwhSjzU/s1600/Screenshot+2020-03-14+at+11.52.21+PM.png" imageanchor="1"><img border="0" height="350" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh66mPrL13L2AA33yToMWD0cBfyUTda9BqtOZI_yorJXTTI5NcPJYPzBNmHEHQ_hPcfx4qcBvkc-oxdMTPoURj-LauYg4dsc3PEKTwC7635XiASXPTr8UJh9cRkgNPtH0ODNsI8LwhSjzU/s640/Screenshot+2020-03-14+at+11.52.21+PM.png" width="640" /></a><br />
<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUPrbH77shQUt9ry20svXoKej3NzG405iXMBhYVHrAfPtMeAZkDxVtMqx3EfxMK9v0dny9WIvTdIE7waDpZbQjf39cDo_FLYQl_9SPphSNCDn7D-Ol7HIR1AkRV-2jhR0FqF00cRP_j6A/s1600/Screenshot+2020-03-14+at+11.52.13+PM.png" imageanchor="1"><img border="0" height="350" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUPrbH77shQUt9ry20svXoKej3NzG405iXMBhYVHrAfPtMeAZkDxVtMqx3EfxMK9v0dny9WIvTdIE7waDpZbQjf39cDo_FLYQl_9SPphSNCDn7D-Ol7HIR1AkRV-2jhR0FqF00cRP_j6A/s640/Screenshot+2020-03-14+at+11.52.13+PM.png" width="640" /></a><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">-----------------------------------------------------</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">So let's get started.....😊</span><br />
<span style="font-family: "verdana" , sans-serif; font-size: large;"><b><br /></b></span>
<span style="font-family: "verdana" , sans-serif; font-size: large;"><b>Custom JavaScript File :</b></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;">As we are using custom confetti from custom javascript file, Hence we need to add custom javaScript file in static resource and then we will use that in our lightning component.</span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "verdana" , sans-serif;"><b>Copy</b> the below code and <b>save</b> it as <b>confetti.js </b>file. </span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<br />
<div>
<span style="font-family: "verdana" , sans-serif;"><b>confetti.js</b></span><br />
<span style="font-family: "verdana" , sans-serif;">-----------------------------------------------------</span><br />
<span style="font-family: "courier new" , "courier" , monospace; font-size: x-small;"><b>!function(t,e){!function(){var o=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||t.msRequestAnimationFrame||function(e){t.setTimeout(e,1e3/60)},n={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,ticks:200,x:.5,y:.5,zIndex:100,colors:["#610B0B","#FFFF00","#FF00BF","#0040FF","#585858","#00FFBF","#FE642E","#FFBF00","#0101DF","#FF8000","#00FF00","#FF0040","#A901DB","#0B0B3B","#FF0000"]};function i(){}function r(t,e,o){return function(t,e){return e?e(t):t}(t&&null!=t[e]?t[e]:n[e],o)}function a(t){return parseInt(t,16)}function l(t){t.width=document.documentElement.clientWidth,t.height=document.documentElement.clientHeight}function c(t){var e=t.getBoundingClientRect();t.width=e.width,t.height=e.height}function s(n,r,a,s,u){var d=r.slice(),f=n.getContext("2d"),h=n.width,m=n.height,b=a?l:c;function g(){h=m=null}var y,v=(y=function(e){o(function i(){h||m||(b(n),h=n.width,m=n.height),f.clearRect(0,0,h,m),(d=d.filter(function(t){return function(t,e){e.x+=Math.cos(e.angle2D)*e.velocity,e.y+=Math.sin(e.angle2D)*e.velocity+3,e.wobble+=.1,e.velocity*=e.decay,e.tiltAngle+=.1,e.tiltSin=Math.sin(e.tiltAngle),e.tiltCos=Math.cos(e.tiltAngle),e.random=Math.random()+5,e.wobbleX=e.x+10*Math.cos(e.wobble),e.wobbleY=e.y+10*Math.sin(e.wobble);var o=e.tick++/e.totalTicks,n=e.x+e.random*e.tiltCos,i=e.y+e.random*e.tiltSin,r=e.wobbleX+e.random*e.tiltCos,a=e.wobbleY+e.random*e.tiltSin;return t.fillStyle="rgba("+e.color.r+", "+e.color.g+", "+e.color.b+", "+(1-o)+")",t.beginPath(),t.moveTo(Math.floor(e.x),Math.floor(e.y)),t.lineTo(Math.floor(e.wobbleX),Math.floor(i)),t.lineTo(Math.floor(r),Math.floor(a)),t.lineTo(Math.floor(n),Math.floor(e.wobbleY)),t.closePath(),t.fill(),e.tick<e.totalTicks}(f,t)})).length?o(i):(s&&t.removeEventListener("resize",g),u(),e())})},e.exports.Promise?new e.exports.Promise(y):(y(i,i),null));return s&&t.addEventListener("resize",g,!1),{addFettis:function(t){return d=d.concat(t),v},canvas:n,promise:v}}function u(t,e){var o,n=!t,i=!!r(e||{},"resize"),u=!1;return function(e){var d=r(e,"particleCount",Math.floor),f=r(e,"angle",Number),h=r(e,"spread",Number),m=r(e,"startVelocity",Number),b=r(e,"decay",Number),g=r(e,"colors"),y=r(e,"ticks",Number),v=r(e,"zIndex",Number),p=function(t){var e=r(t,"origin",Object);return e.x=r(e,"x",Number),e.y=r(e,"y",Number),e}(e),x=d,M=[];n?t=o?o.canvas:function(t){var e=document.createElement("canvas");return l(e),e.style.position="fixed",e.style.top="0px",e.style.left="0px",e.style.pointerEvents="none",e.style.zIndex=t,e}(v):i&&!u&&(c(t),u=!0);for(var w,k,C,A,P,N=t.width*p.x,T=t.height*p.y;x--;)M.push((w={x:N,y:T,angle:f,spread:h,startVelocity:m,color:g[x%g.length],ticks:y,decay:b},k=void 0,C=void 0,A=void 0,P=void 0,A=w.angle*(Math.PI/180),P=w.spread*(Math.PI/180),{x:w.x,y:w.y,wobble:10*Math.random(),velocity:.5*w.startVelocity+Math.random()*w.startVelocity,angle2D:-A+(.5*P-Math.random()*P),tiltAngle:Math.random()*Math.PI,color:(k=w.color,C=String(k).replace(/[^0-9a-f]/gi,""),C.length<6&&(C=C[0]+C[0]+C[1]+C[1]+C[2]+C[2]),{r:a(C.substring(0,2)),g:a(C.substring(2,4)),b:a(C.substring(4,6))}),tick:0,totalTicks:w.ticks,decay:w.decay,random:Math.random()+5,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0}));return o?o.addFettis(M):(n&&document.body.appendChild(t),(o=s(t,M,n,n||i,function(){o=null,n&&document.body.removeChild(t)})).promise)}}e.exports=u(),e.exports.create=u,e.exports.Promise=t.Promise||null}(),t.confetti=e.exports}(window,{});</b></span><br />
<span style="font-family: "courier new" , "courier" , monospace; font-size: x-small;"><b>//# sourceMappingURL=/sm/a35a3af602da0416611bbb29c85b9df4d35cd22e54ede0aba8f1fcf410e9b0ae.map</b></span><br />
<span style="font-family: "verdana" , sans-serif;">-----------------------------------------------------</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;"><b>Save</b> it inside <b>static resources </b>from <b>setup</b> as below, we will use this javascript file in our lightning component.</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">-----------------------------------------------------</span><br />
<span style="font-family: "verdana" , sans-serif;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIMtxb1qa2Z8kPJXbbQJlwZxEWLqwKlgNmfqfMxfJVLQ7V_XRtl0a3AH-xTp2EKlKdJP17ZunhQut19gzVw0s0HXS3ZKWCnMAaqv2qRVG7fdWVZOdwhedexBqNS4EbmotizX-tZY5jNqI/s1600/Screenshot+2020-03-14+at+8.12.57+PM.png" imageanchor="1"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIMtxb1qa2Z8kPJXbbQJlwZxEWLqwKlgNmfqfMxfJVLQ7V_XRtl0a3AH-xTp2EKlKdJP17ZunhQut19gzVw0s0HXS3ZKWCnMAaqv2qRVG7fdWVZOdwhedexBqNS4EbmotizX-tZY5jNqI/s1600/Screenshot+2020-03-14+at+8.12.57+PM.png" /></a></span><br />
<span style="font-family: "verdana" , sans-serif;">-----------------------------------------------------</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">All set...Now we are ready to go....now before creating lightning component have a look at how many different types of confetti's we have :</span><br />
<br />
<ul style="text-align: left;">
<li><span style="font-family: "verdana" , sans-serif;"><b>Basic Confetti</b></span></li>
<li><span style="font-family: "verdana" , sans-serif;"><b>Fireworks Confetti</b></span></li>
<li><span style="font-family: "verdana" , sans-serif;"><b>Shower Confetti</b></span></li>
<li><span style="font-family: "verdana" , sans-serif;"><b>Celebration Confetti</b></span></li>
<li><span style="font-family: "verdana" , sans-serif;"><b>Burst Confetti</b></span></li>
</ul>
<span style="font-family: "verdana" , sans-serif;">Now let's get started with our lightning component Kid...get..set...go </span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">Create a lightning new lightning component as <b>confetti</b> as below</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif; font-size: large;"><b>confetti.cmp</b></span><br />
<span style="font-family: "verdana" , sans-serif;">-----------------------------------------------------</span><br />
<b><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;"><aura:component ></span></b><br />
<b><span style="color: #b45f06; font-family: "courier new" , "courier" , monospace;"> <!-- Below line will get confetti script from static resource--></span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #990000;"><ltng:require scripts="{!$Resource.Confetti}"/></span></span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #38761d;"><center></span></span></b><br />
<b><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;"> <lightning:button </span><span style="color: #0b5394; font-family: "courier new" , "courier" , monospace;">variant</span><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;">=</span><span style="color: #990000; font-family: "courier new" , "courier" , monospace;">"brand" </span></b><br />
<b><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;"> </span><span style="color: #0b5394; font-family: "courier new" , "courier" , monospace;">class</span><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;">=</span><span style="color: #990000; font-family: "courier new" , "courier" , monospace;">"buttonBox" </span></b><br />
<b><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;"> </span><span style="color: #0b5394; font-family: "courier new" , "courier" , monospace;">label</span><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;">=</span><span style="color: #990000; font-family: "courier new" , "courier" , monospace;">"Basic" </span></b><br />
<b><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;"> </span><span style="color: #0b5394; font-family: "courier new" , "courier" , monospace;">onclick</span><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;">=</span><span style="color: #990000; font-family: "courier new" , "courier" , monospace;">"{!c.basic}"</span><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;">/> </span></b><br />
<b><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;"> </span></b><br />
<b><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;"> <lightning:button </span><span style="color: #0b5394; font-family: "courier new" , "courier" , monospace;">variant</span><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;">=</span><span style="color: #990000; font-family: "courier new" , "courier" , monospace;">"brand" </span></b><br />
<b><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;"> </span><span style="color: #0b5394; font-family: "courier new" , "courier" , monospace;">class</span><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;">=</span><span style="color: #990000; font-family: "courier new" , "courier" , monospace;">"buttonBox"</span><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;"> </span></b><br />
<b><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;"> </span><span style="color: #0b5394; font-family: "courier new" , "courier" , monospace;">label</span><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;">=</span><span style="color: #990000; font-family: "courier new" , "courier" , monospace;">"Fireworks" </span></b><br />
<b><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;"> </span><span style="color: #0b5394; font-family: "courier new" , "courier" , monospace;">onclick</span><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;">=</span><span style="color: #990000; font-family: "courier new" , "courier" , monospace;">"{!c.fireworks}"</span><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;">/></span></b><br />
<b><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;"> </span></b><br />
<b><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;"> <lightning:button </span><span style="color: #0b5394; font-family: "courier new" , "courier" , monospace;">variant</span><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;">=</span><span style="color: #990000; font-family: "courier new" , "courier" , monospace;">"brand" </span></b><br />
<b><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;"> </span><span style="color: #0b5394; font-family: "courier new" , "courier" , monospace;">class</span><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;">=</span><span style="color: #990000; font-family: "courier new" , "courier" , monospace;">"buttonBox" </span></b><br />
<b><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;"> </span><span style="color: #0b5394; font-family: "courier new" , "courier" , monospace;">label</span><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;">=</span><span style="color: #990000; font-family: "courier new" , "courier" , monospace;">"Shower"</span><span style="color: #0b5394; font-family: "courier new" , "courier" , monospace;"> </span></b><br />
<b><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;"> </span><span style="color: #0b5394; font-family: "courier new" , "courier" , monospace;">onclick</span><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;">=</span><span style="color: #990000; font-family: "courier new" , "courier" , monospace;">"{!c.shower}"</span><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;">/></span></b><br />
<b><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;"> </span></b><br />
<b><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;"> <lightning:button </span><span style="color: #0b5394; font-family: "courier new" , "courier" , monospace;">variant</span><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;">=</span><span style="color: #990000; font-family: "courier new" , "courier" , monospace;">"brand" </span></b><br />
<b><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;"> </span><span style="color: #0b5394; font-family: "courier new" , "courier" , monospace;">class</span><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;">=</span><span style="color: #990000; font-family: "courier new" , "courier" , monospace;">"buttonBox" </span></b><br />
<b><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;"> </span><span style="color: #0b5394; font-family: "courier new" , "courier" , monospace;">label</span><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;">=</span><span style="color: #990000; font-family: "courier new" , "courier" , monospace;">"Celebration" </span></b><br />
<b><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;"> </span><span style="color: #0b5394; font-family: "courier new" , "courier" , monospace;">onclick</span><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;">=</span><span style="color: #990000; font-family: "courier new" , "courier" , monospace;">"{!c.celebration}"</span><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;">/></span></b><br />
<b><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;"> </span></b><br />
<b><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;"> <lightning:button </span><span style="color: #0b5394; font-family: "courier new" , "courier" , monospace;">variant</span><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;">=</span><span style="color: #990000; font-family: "courier new" , "courier" , monospace;">"brand" </span></b><br />
<b><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;"> </span><span style="color: #0b5394; font-family: "courier new" , "courier" , monospace;">class</span><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;">=</span><span style="color: #990000; font-family: "courier new" , "courier" , monospace;">"buttonBox" </span></b><br />
<b><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;"> </span><span style="color: #0b5394; font-family: "courier new" , "courier" , monospace;">label</span><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;">=</span><span style="color: #990000; font-family: "courier new" , "courier" , monospace;">"Burst"</span><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;"> </span></b><br />
<b><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;"> </span><span style="color: #0b5394; font-family: "courier new" , "courier" , monospace;">onclick</span><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;">=</span><span style="color: #990000; font-family: "courier new" , "courier" , monospace;">"{!c.burst}"</span><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;">/></span></b><br />
<b><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;"> </center></span></b><br />
<b><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;"></aura:component></span></b><br />
<span style="font-family: "verdana" , sans-serif;">-----------------------------------------------------</span><br />
<br />
<span style="font-family: "verdana" , sans-serif;">In the above code, we will at the start we have used </span><span style="color: #990000; font-family: "courier new" , "courier" , monospace; font-weight: bold;"><ltng:require scripts="{!$Resource.Confetti}"/> </span><span style="font-family: "verdana" , sans-serif;">this we get your javaScript script which we have previously stored in a static resource.</span><br />
<span style="font-family: "verdana" , sans-serif;">Then we have created separate <b>5 buttons</b> for <b>every</b> type of confetti.</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">Now its time to create its javascript methods as below :</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<b style="font-family: verdana, sans-serif; font-size: x-large;">confetti.js</b><br />
<span style="font-family: "verdana" , sans-serif;">-----------------------------------------------------</span><br />
<b><span style="font-family: "courier new" , "courier" , monospace;">({</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #b45f06;">// Method for basic confetti mode</span></span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> basic : <span style="color: #741b47;">function</span>(<span style="color: #0b5394;">component</span>, <span style="color: #0b5394;">event</span>, <span style="color: #0b5394;">helper</span>){</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #0b5394;">confetti</span>({</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> particleCount: 200,</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> startVelocity: 60,</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> spread: 150,</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> origin:{</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> y: 0.9</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> },</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> });</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> },</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #b45f06;">// Method for fireworks confetti mode</span></span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> fireworks : <span style="color: #741b47;">function</span>(<span style="color: #0b5394;">component</span>, <span style="color: #0b5394;">event</span>, <span style="color: #0b5394;">helper</span>){</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #741b47;">var</span> <span style="color: #0b5394;">end</span> = Date.now() + (15 * 100);</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #741b47;">var</span> <span style="color: #0b5394;">interval</span> = setInterval(function() {</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> if (Date.now() > end) {</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> return clearInterval(interval);</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> }</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #0b5394;">confetti</span>({</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> particleCount : 450,</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> startVelocity: 30,</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> spread: 360,</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> ticks: 60,</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> origin:{</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> x: Math.random(),</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> y: Math.random() </span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> },</span></b><b><span style="font-family: "courier new" , "courier" , monospace;"> </span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> });</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> }, 200);</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> },</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #b45f06;">// Method for shower confetti mode</span></span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> shower : <span style="color: #741b47;">function</span>(<span style="color: #0b5394;">component</span>, <span style="color: #0b5394;">event</span>, <span style="color: #0b5394;">helper</span>){</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #741b47;">var</span> <span style="color: #0b5394;">end</span> = Date.now() + (15 * 100);</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> (function frame() {</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #0b5394;">confetti</span>({</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> particleCount: 10,</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> startVelocity: 0,</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> ticks: 300,</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> origin: {</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> x: Math.random(),</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> y: 0</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> },</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> });</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> if (Date.now() < end) {</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> requestAnimationFrame(frame);</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> }</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> }());</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> },</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #b45f06;">// Method for celebration confetti mode</span></span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> celebration : <span style="color: #741b47;">function</span>(<span style="color: #0b5394;">component</span>, <span style="color: #0b5394;">event</span>, <span style="color: #0b5394;">helper</span>) {</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #741b47;">var</span> <span style="color: #0b5394;">end</span> = Date.now() + (15 * 100);</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> (function frame() {</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #0b5394;">confetti</span>({</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> particleCount: 10,</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> angle: 60,</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> spread: 25,</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> origin:{</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> x: 0,</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> y : 0.65</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> },</span></b><b><span style="font-family: "courier new" , "courier" , monospace;"> </span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> });</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #0b5394;">confetti</span>({</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> particleCount: 10,</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> angle: 120,</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> spread: 25,</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> origin:{</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> x: 1,</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> y : 0.65</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> },</span></b><b><span style="font-family: "courier new" , "courier" , monospace;"> </span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> });</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> if (Date.now() < end) {</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> requestAnimationFrame(frame);</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> }</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> }());</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> },</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #b45f06;">// Method for burst confetti mode</span></span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> burst : <span style="color: #741b47;">function</span>(<span style="color: #0b5394;">component</span>, <span style="color: #0b5394;">event</span>, <span style="color: #0b5394;">helper</span>){</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #741b47;">var</span> <span style="color: #0b5394;">end</span> = Date.now() + (15 * 75);</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #b45f06;">//These are four diffrent confetti in frour diffrent corner</span></span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> (function frame() {</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #b45f06;">// #1</span></span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #0b5394;">confetti</span>({</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> particleCount: 7,</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> startVelocity: 25,</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> angle: 335,</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> spread: 10,</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> origin:{</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> x: 0,</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> y: 0,</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> },</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> }); </span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #b45f06;">// #2</span></span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #0b5394;">confetti</span>({</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> particleCount: 7,</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> startVelocity: 25,</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> angle: 205,</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> spread: 10,</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> origin:{</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> x: 1,</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> y: 0,</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> },</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> });</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #b45f06;">// #3</span></span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #0b5394;">confetti</span>({</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> particleCount: 7,</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> startVelocity: 35,</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> angle: 140,</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> spread: 30,</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> origin:{</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> x: 1,</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> y: 1,</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> },</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> });</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #b45f06;">// #4</span></span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #0b5394;">confetti</span>({</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> particleCount: 7,</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> startVelocity: 35,</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> angle: 40,</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> spread: 30,</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> origin: {</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> x: 0,</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> y: 1,</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> },</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> });</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> if (Date.now() < end) {</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> requestAnimationFrame(frame);</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> }</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> }());</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"> }</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;">})</span></b><br />
<span style="font-family: "verdana" , sans-serif;">-----------------------------------------------------</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">Above <b>.js</b> controller <b>5 methods</b> will be called when the user hit the button based on which button is pressed.</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span><span style="font-family: "verdana" , sans-serif;">And finally...Add above lightning component inside Lightning Application.</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">Create a new lightning application and add the component to view <b>preview</b>.</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;"><b>Confetti.app</b></span><br />
<span style="font-family: "verdana" , sans-serif;">-----------------------------------------------------</span><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"><span style="color: #38761d;"><aura:application</span> <span style="color: #0b5394;">extends</span>=<span style="color: #990000;">"force:slds"</span>></span></b><br />
<b><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;"> <c:Confetti/></span></b><br />
<b><span style="color: #38761d; font-family: "courier new" , "courier" , monospace;"></aura:application></span></b><br />
<span style="font-family: "verdana" , sans-serif;">-----------------------------------------------------</span><br />
<br />
<span style="font-family: "verdana" , sans-serif;">Hit the <b>Preview</b> button for <b>Output</b> </span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;"><b>Output</b></span><br />
<span style="font-family: "verdana" , sans-serif;">-----------------------------------------------------</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">You can see all these different types of buttons </span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRbVQzvvfeQ5-c2ICst873ZO9QClFJft4EkuworOpYVCCLrXPzFs2So9dMPMYLsDlkJUw8AnjU11mnPDZ849AYzUgR420TnbISkYGlHpOuvgXjn113pEG8J7WVex6rslbJwrdVnaJ5VMM/s1600/Screenshot+2020-03-14+at+11.51.34+PM.png" imageanchor="1"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRbVQzvvfeQ5-c2ICst873ZO9QClFJft4EkuworOpYVCCLrXPzFs2So9dMPMYLsDlkJUw8AnjU11mnPDZ849AYzUgR420TnbISkYGlHpOuvgXjn113pEG8J7WVex6rslbJwrdVnaJ5VMM/s1600/Screenshot+2020-03-14+at+11.51.34+PM.png" /></a></span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">Now we will click on every button to see individual effects of the custom confetti in salesforce lightning component</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">I am attaching some screenshots captured for every effect, you will enjoy this once in a live experience.</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;"><b>Basic :</b></span><br />
<span style="font-family: "verdana" , sans-serif;"><b><br /></b></span>
<span style="font-family: "verdana" , sans-serif;"><b><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipH7uvVrD6lfQwU1jS5kj4cZ47eFiX57xB_VIySNEOnmkDsJkO_-VC_hMrUNILgdd7YPsy1w1sRaaNY5BYeuwUtrDMYLm0qcTkFbevtWqNuwO5KESozLUlv7NPGJCDdSX9ooxEgvPtI4Q/s1600/Screenshot+2020-03-14+at+11.51.47+PM.png" imageanchor="1"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipH7uvVrD6lfQwU1jS5kj4cZ47eFiX57xB_VIySNEOnmkDsJkO_-VC_hMrUNILgdd7YPsy1w1sRaaNY5BYeuwUtrDMYLm0qcTkFbevtWqNuwO5KESozLUlv7NPGJCDdSX9ooxEgvPtI4Q/s1600/Screenshot+2020-03-14+at+11.51.47+PM.png" /></a></b></span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;"><b>Fireworks :</b></span><br />
<span style="font-family: "verdana" , sans-serif;"><b><br /></b></span>
<span style="font-family: "verdana" , sans-serif;"><b><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbtFnPTWS7dXtjOmFDMVC533Iq2lmOQDy1dbppfI7QXuolCMND0xxR7tAroNULU-ELGQrVMuwYKowu_TSK4FzOw-gW7fxT97_d70NYNRZU-L5xlDT6vuzHdnIXEvI7KqM38L5lF3ox-8k/s1600/Screenshot+2020-03-14+at+11.56.50+PM.png" imageanchor="1"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbtFnPTWS7dXtjOmFDMVC533Iq2lmOQDy1dbppfI7QXuolCMND0xxR7tAroNULU-ELGQrVMuwYKowu_TSK4FzOw-gW7fxT97_d70NYNRZU-L5xlDT6vuzHdnIXEvI7KqM38L5lF3ox-8k/s1600/Screenshot+2020-03-14+at+11.56.50+PM.png" /></a></b></span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;"><b>Shower : </b></span><br />
<span style="font-family: "verdana" , sans-serif;"><b><br /></b></span>
<span style="font-family: "verdana" , sans-serif;"><b><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggoYv1H1bACbiNWQJbaFt46v3R5_pwGaXPeqvGjAK9udL_rw2KfW2l04LHCIzIO2FdxQJ30EZvfWv1qcm84JpxaPJ0RraywNo-RQRp5CiCQ9Z8tcRGC4_TeFM9gQ4fOzNAw0dnWfgKcdQ/s1600/Screenshot+2020-03-14+at+11.52.13+PM.png" imageanchor="1"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggoYv1H1bACbiNWQJbaFt46v3R5_pwGaXPeqvGjAK9udL_rw2KfW2l04LHCIzIO2FdxQJ30EZvfWv1qcm84JpxaPJ0RraywNo-RQRp5CiCQ9Z8tcRGC4_TeFM9gQ4fOzNAw0dnWfgKcdQ/s1600/Screenshot+2020-03-14+at+11.52.13+PM.png" /></a></b></span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;"><b>Celebrations :</b></span><br />
<span style="font-family: "verdana" , sans-serif;"><b><br /></b></span>
<span style="font-family: "verdana" , sans-serif;"><b><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtGOZaWUutAWT-mgax3iVx76W9JHem3sI9n8q37qDrS5Z6fIACAadWwF1L28RiqgFPodudXCu7DHW044ftwBLhnxYq5kht6IUnP2sr616TB7Y4XFEnbqqAVN5dloVblL1dZCw0WjZMV1E/s1600/Screenshot+2020-03-14+at+11.52.21+PM.png" imageanchor="1"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtGOZaWUutAWT-mgax3iVx76W9JHem3sI9n8q37qDrS5Z6fIACAadWwF1L28RiqgFPodudXCu7DHW044ftwBLhnxYq5kht6IUnP2sr616TB7Y4XFEnbqqAVN5dloVblL1dZCw0WjZMV1E/s1600/Screenshot+2020-03-14+at+11.52.21+PM.png" /></a></b></span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;"><b>Burst :</b></span><br />
<span style="font-family: "verdana" , sans-serif;"><b><br /></b></span>
<span style="font-family: "verdana" , sans-serif;"><b><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzwuCJ74snXZTqJQNO3R4IzWlvbjpWu_r4auV_W4K6RZElF0_1qKLC38X4SEIvdJPj0UDc0dRevNTmODBU_iBijOqEp93z0KdG8AeyqR84rgBBnoe5BKZVk2-5tQClf2nOeZNXcvzi1uw/s1600/Screenshot+2020-03-14+at+11.52.33+PM.png" imageanchor="1"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzwuCJ74snXZTqJQNO3R4IzWlvbjpWu_r4auV_W4K6RZElF0_1qKLC38X4SEIvdJPj0UDc0dRevNTmODBU_iBijOqEp93z0KdG8AeyqR84rgBBnoe5BKZVk2-5tQClf2nOeZNXcvzi1uw/s1600/Screenshot+2020-03-14+at+11.52.33+PM.png" /></a></b></span><br />
<span style="font-family: "verdana" , sans-serif;"><b><br /></b></span>
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">-----------------------------------------------------</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">Coool !! Kid, you have created this awesome confetti custom effect in salesforce lightning component.</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;"><b>WOHOOO !! YOU HAVE JUST COMPLETED CUSTOM CONFETTI IN SALESFORCE LIGHTNING COMPONENT</b></span><span style="font-family: "verdana" , sans-serif;"><b> EPISODE</b></span><br />
<span style="font-family: "verdana" , sans-serif;"><span style="font-family: "verdana" , sans-serif;"><span style="background-color: white; font-size: 15px;">If you like this</span><span style="background-color: white; color: #5e5e5e; font-size: 15px;"> </span><a href="https://www.salesforcekid.com/">salesforcekid</a><span style="background-color: white; color: #5e5e5e; font-size: 15px;"> </span><span style="background-color: white; font-size: 15px;">learning platform please let me know in the Comment section...Also, Share with your salesforce folks wish you all</span></span></span><br />
<span style="background-color: white; font-family: "verdana" , sans-serif; font-size: 15px;">Happy Learning ☁️⚡️ (Learn. Help. Share.) 😊</span><span style="font-family: "verdana" , sans-serif;"> </span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;"><a href="https://www.salesforcekid.com/2019/10/salesforce-lightning-component-to-display-images.html"><b><< PREVIOUS</b></a></span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgD_ttkVp1kugOfUV8cc8Zc4EIEdZikoW82JXC1QzT3g83gwQhN71mjSJSaZn4pG1tkYAWTnsbgoD3OADqNCpORBrRdAkyTrhblEXgvEMJS3_mMnpBxj1569SzyCPGVjq1cfazis0U4tAQ/s1600/blogBottom.jpg" imageanchor="1"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgD_ttkVp1kugOfUV8cc8Zc4EIEdZikoW82JXC1QzT3g83gwQhN71mjSJSaZn4pG1tkYAWTnsbgoD3OADqNCpORBrRdAkyTrhblEXgvEMJS3_mMnpBxj1569SzyCPGVjq1cfazis0U4tAQ/s1600/blogBottom.jpg" /></a></span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span></div>
<div>
</div>
</div>
</div>
AJINKYA DHAS http://www.blogger.com/profile/13223328981950114267noreply@blogger.com5