Congratulations!

[Valid RSS] This is a valid RSS feed.

Recommendations

This feed is valid, but interoperability with the widest range of feed readers could be improved by implementing the following recommendations.

Source: https://sfdcdevelopers.com/feed/

  1. <?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
  2. xmlns:content="http://purl.org/rss/1.0/modules/content/"
  3. xmlns:wfw="http://wellformedweb.org/CommentAPI/"
  4. xmlns:dc="http://purl.org/dc/elements/1.1/"
  5. xmlns:atom="http://www.w3.org/2005/Atom"
  6. xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
  7. xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
  8. xmlns:georss="http://www.georss.org/georss"
  9. xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
  10. >
  11.  
  12. <channel>
  13. <title>SFDC Developers</title>
  14. <atom:link href="https://sfdcdevelopers.com/feed/" rel="self" type="application/rss+xml" />
  15. <link>https://sfdcdevelopers.com</link>
  16. <description>Hub for Salesforce Developers</description>
  17. <lastBuildDate>Fri, 07 Apr 2023 08:05:01 +0000</lastBuildDate>
  18. <language>en-GB</language>
  19. <sy:updatePeriod>
  20. hourly </sy:updatePeriod>
  21. <sy:updateFrequency>
  22. 1 </sy:updateFrequency>
  23.  
  24. <image>
  25. <url>https://sfdcdevelopers.com/wp-content/uploads/2019/12/cropped-Square-32x32.png</url>
  26. <title>SFDC Developers</title>
  27. <link>https://sfdcdevelopers.com</link>
  28. <width>32</width>
  29. <height>32</height>
  30. </image>
  31. <site xmlns="com-wordpress:feed-additions:1">175568314</site> <item>
  32. <title>Ways to Automate Business with ChatGPT and Salesforce</title>
  33. <link>https://sfdcdevelopers.com/2023/04/07/ways-to-automate-business-with-chatgpt-and-salesforce/</link>
  34. <comments>https://sfdcdevelopers.com/2023/04/07/ways-to-automate-business-with-chatgpt-and-salesforce/#respond</comments>
  35. <dc:creator><![CDATA[Vinay Vernekar]]></dc:creator>
  36. <pubDate>Fri, 07 Apr 2023 05:57:04 +0000</pubDate>
  37. <category><![CDATA[Artificial Intelligence]]></category>
  38. <category><![CDATA[ChatGPT]]></category>
  39. <guid isPermaLink="false">https://sfdcdevelopers.com/?p=1319</guid>
  40.  
  41. <description><![CDATA[<p>As businesses strive to be more efficient and improve the customer experience, they are turning to artificial intelligence (AI) solutions like ChatGPT to automate and engage the customer. In this blog post, we&#8217;ll explore how ChatGPT can be used with Salesforce to streamline business processes and improve customer experience. What is ChatGPT? ChatGPT is a [&#8230;]</p>
  42. <p>The post <a rel="nofollow" href="https://sfdcdevelopers.com/2023/04/07/ways-to-automate-business-with-chatgpt-and-salesforce/" data-wpel-link="internal">Ways to Automate Business with ChatGPT and Salesforce</a> appeared first on <a rel="nofollow" href="https://sfdcdevelopers.com" data-wpel-link="internal">SFDC Developers</a>.</p>
  43. ]]></description>
  44. <content:encoded><![CDATA[
  45. <p>As businesses strive to be more efficient and improve the customer experience, they are turning to artificial intelligence (AI) solutions like ChatGPT to automate and engage the customer. In this blog post, we&#8217;ll explore how ChatGPT can be used with Salesforce to streamline business processes and improve customer experience.</p>
  46.  
  47.  
  48.  
  49. <h2 class="wp-block-heading">What is ChatGPT?</h2>
  50.  
  51.  
  52.  
  53. <p>ChatGPT is a language developed by OpenAI for understanding and generating human-like responses. It is powered by GPT-3 technology, which allows it to analyze and answer complex questions in discussion.<br>ChatGPT can be used for many purposes, including chatbots, customer support, and content creation.</p><div class='code-block code-block-1' style='margin: 8px auto; text-align: center; display: block; clear: both;'>
  54. <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  55. <!-- Horizontal -->
  56. <ins class="adsbygoogle"
  57.     style="display:block"
  58.     data-ad-client="ca-pub-2118680650429806"
  59.     data-ad-slot="7906570718"
  60.     data-ad-format="auto"
  61.     data-full-width-responsive="true"></ins>
  62. <script>
  63.     (adsbygoogle = window.adsbygoogle || []).push({});
  64. </script></div>
  65.  
  66.  
  67.  
  68.  
  69. <figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="1280" height="720" src="https://sfdcdevelopers.com/wp-content/uploads/2023/04/Blue-Modern-how-To-Start-Your-Business-Youtube-Thumbnail-1.png" alt="Ways to Automate Business with ChatGPT and Salesforce" class="wp-image-1321"/></figure>
  70.  
  71.  
  72.  
  73. <h2 class="wp-block-heading">How does ChatGPT work with Salesforce?</h2>
  74.  
  75.  
  76.  
  77. <p>Salesforce is a customer relationship management (CRM) platform that allows businesses to manage customer interactions and automate processes. Businesses can use AI capabilities to improve customer engagement and day-to-day operations by integrating ChatGPT with Salesforce.</p>
  78.  
  79.  
  80.  
  81. <p>Some examples of how ChatGPT can be used with Salesforce:</p>
  82.  
  83.  
  84.  
  85. <ul>
  86. <li style="font-size:16px"><strong>Customer Support Chatbots:</strong> By integrating ChatGPT with Salesforce&#8217;s Service Cloud, businesses can create chatbots that can understand and answer customer questions in chat.<br>Chatbots can help businesses improve response times and increase customer satisfaction by providing 24/7 support.</li>
  87.  
  88.  
  89.  
  90. <li style="font-size:16px"><strong>Lead Attribute:</strong> ChatGPT can be used to qualify a lead by asking a series of questions and determining the lead&#8217;s relevance. This is made possible by integrating ChatGPT with Salesforce&#8217;s Sales Cloud, which allows businesses to manage their sales channels and automate their necessary processes.</li>
  91.  
  92.  
  93.  
  94. <li style="font-size:16px"><strong>Content Creation:</strong> ChatGPT can be used to create content for marketing by analyzing customer data and creating personalized messages. This is made possible by integrating ChatGPT with Salesforce&#8217;s Marketing Cloud, which allows businesses to create marketing plans and automate the content creation process.</li>
  95.  
  96.  
  97.  
  98. <li style="font-size:16px"><strong>Schedule an Appointment:</strong> ChatGPT can be used to set up an appointment by checking customer preferences and availability. This has been made possible by integrating ChatGPT with the Salesforce Calendar, which allows businesses to manage their time and streamline their planning processes.</li>
  99. </ul>
  100.  
  101.  
  102.  
  103. <h2 class="wp-block-heading">Benefits of Using ChatGPT with Salesforce</h2>
  104.  
  105.  
  106.  
  107. <p style="font-size:16px">Integrating ChatGPT with Salesforce can provide businesses with many benefits, including:</p><div class='code-block code-block-3' style='margin: 8px auto; text-align: center; display: block; clear: both;'>
  108. <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  109. <!-- Horizontal -->
  110. <ins class="adsbygoogle"
  111.     style="display:block"
  112.     data-ad-client="ca-pub-2118680650429806"
  113.     data-ad-slot="7906570718"
  114.     data-ad-format="auto"
  115.     data-full-width-responsive="true"></ins>
  116. <script>
  117.     (adsbygoogle = window.adsbygoogle || []).push({});
  118. </script></div>
  119.  
  120.  
  121.  
  122.  
  123. <ul>
  124. <li style="font-size:16px"><strong>More Customer Connections:</strong> ChatGPT-powered chatbots can provide personalized, professional answers to customers&#8217; questions.</li>
  125.  
  126.  
  127.  
  128. <li style="font-size:16px"><strong>Increase Productivity:</strong> Using ChatGPT to automate routine tasks can help businesses reduce effort and increase productivity.</li>
  129.  
  130.  
  131.  
  132. <li style="font-size:16px"><strong>Effective Lead Management:</strong> Using ChatGPT to qualify leads can help businesses advance their sales pipeline and improve overall conversions.</li>
  133.  
  134.  
  135.  
  136. <li style="font-size:16px"><strong>Personal Development:</strong> Using ChatGPT to create personalized content and messaging can help businesses create more engaging and meaningful experiences for their customers.</li>
  137. </ul>
  138.  
  139.  
  140.  
  141. <h2 class="wp-block-heading">Conclusion</h2>
  142.  
  143.  
  144.  
  145. <p>All in all, integrating ChatGPT with Salesforce can provide businesses with powerful tools to complete tasks, improve customer experience and improve performance. By leveraging ChatGPT&#8217;s artificial intelligence capabilities, businesses can stay ahead of the competition and provide their customers with a personalized, efficient and satisfying experience.</p>
  146. <!-- AI CONTENT END 2 -->
  147. <p>The post <a rel="nofollow" href="https://sfdcdevelopers.com/2023/04/07/ways-to-automate-business-with-chatgpt-and-salesforce/" data-wpel-link="internal">Ways to Automate Business with ChatGPT and Salesforce</a> appeared first on <a rel="nofollow" href="https://sfdcdevelopers.com" data-wpel-link="internal">SFDC Developers</a>.</p>
  148. ]]></content:encoded>
  149. <wfw:commentRss>https://sfdcdevelopers.com/2023/04/07/ways-to-automate-business-with-chatgpt-and-salesforce/feed/</wfw:commentRss>
  150. <slash:comments>0</slash:comments>
  151. <post-id xmlns="com-wordpress:feed-additions:1">1319</post-id> </item>
  152. <item>
  153. <title>Efficient Ways to Call Apex Methods from LWC in Salesforce: Pros and Cons</title>
  154. <link>https://sfdcdevelopers.com/2023/04/03/efficient-ways-to-call-apex-methods-from-lwc-in-salesforce-pros-and-cons/</link>
  155. <comments>https://sfdcdevelopers.com/2023/04/03/efficient-ways-to-call-apex-methods-from-lwc-in-salesforce-pros-and-cons/#respond</comments>
  156. <dc:creator><![CDATA[Vinay Vernekar]]></dc:creator>
  157. <pubDate>Mon, 03 Apr 2023 17:20:25 +0000</pubDate>
  158. <category><![CDATA[Apex]]></category>
  159. <category><![CDATA[Web Component]]></category>
  160. <category><![CDATA[LWC]]></category>
  161. <guid isPermaLink="false">https://sfdcdevelopers.com/?p=1307</guid>
  162.  
  163. <description><![CDATA[<p>Salesforce provides developers with a number of different ways to call Apex methods from Lightning Web Components (LWC). In this blog post, we&#8217;ll explore these different methods and their advantages and disadvantages, along with Apex code examples to help illustrate the concepts. 1. Calling Apex Methods Using @wire Advantages: Disadvantages: The @wire decorator is a [&#8230;]</p>
  164. <p>The post <a rel="nofollow" href="https://sfdcdevelopers.com/2023/04/03/efficient-ways-to-call-apex-methods-from-lwc-in-salesforce-pros-and-cons/" data-wpel-link="internal">Efficient Ways to Call Apex Methods from LWC in Salesforce: Pros and Cons</a> appeared first on <a rel="nofollow" href="https://sfdcdevelopers.com" data-wpel-link="internal">SFDC Developers</a>.</p>
  165. ]]></description>
  166. <content:encoded><![CDATA[
  167. <p>Salesforce provides developers with a number of different ways to call Apex methods from Lightning Web Components (LWC). In this blog post, we&#8217;ll explore these different methods and their advantages and disadvantages, along with Apex code examples to help illustrate the concepts.</p>
  168.  
  169.  
  170.  
  171. <figure class="wp-block-image size-large"><img decoding="async" width="1024" height="576" src="https://sfdcdevelopers.com/wp-content/uploads/2023/04/Call-Apex-Methods-from-LWC-1024x576.png" alt="Efficient Ways to Call Apex Methods from LWC in Salesforce: Pros and Cons" class="wp-image-1308" srcset="https://sfdcdevelopers.com/wp-content/uploads/2023/04/Call-Apex-Methods-from-LWC-1024x576.png 1024w, https://sfdcdevelopers.com/wp-content/uploads/2023/04/Call-Apex-Methods-from-LWC-300x169.png 300w, https://sfdcdevelopers.com/wp-content/uploads/2023/04/Call-Apex-Methods-from-LWC-768x432.png 768w, https://sfdcdevelopers.com/wp-content/uploads/2023/04/Call-Apex-Methods-from-LWC-450x253.png 450w, https://sfdcdevelopers.com/wp-content/uploads/2023/04/Call-Apex-Methods-from-LWC-780x439.png 780w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>
  172.  
  173.  
  174.  
  175. <h2 class="wp-block-heading">1. Calling Apex Methods Using @wire</h2>
  176.  
  177.  
  178.  
  179. <p><strong>Advantages:</strong></p><div class='code-block code-block-1' style='margin: 8px auto; text-align: center; display: block; clear: both;'>
  180. <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  181. <!-- Horizontal -->
  182. <ins class="adsbygoogle"
  183.     style="display:block"
  184.     data-ad-client="ca-pub-2118680650429806"
  185.     data-ad-slot="7906570718"
  186.     data-ad-format="auto"
  187.     data-full-width-responsive="true"></ins>
  188. <script>
  189.     (adsbygoogle = window.adsbygoogle || []).push({});
  190. </script></div>
  191.  
  192.  
  193.  
  194.  
  195. <ul>
  196. <li>Automatic handling of data retrieval and data update in the component.</li>
  197.  
  198.  
  199.  
  200. <li>Code is concise and easy to understand.</li>
  201. </ul>
  202.  
  203.  
  204.  
  205. <p><strong>Disadvantages:</strong></p>
  206.  
  207.  
  208.  
  209. <ul>
  210. <li>Limited to only one Apex method call per wire decorator.</li>
  211.  
  212.  
  213.  
  214. <li>Cannot perform complex business logic in the component.</li>
  215. </ul>
  216.  
  217.  
  218.  
  219. <p>The @wire decorator is a powerful tool for fetching data from Apex methods. With @wire, the component is automatically updated whenever the underlying data source changes. Here&#8217;s an example of how to use @wire to call an Apex method:</p>
  220.  
  221.  
  222.  
  223. <pre class="wp-block-code"><code lang="javascript" class="language-javascript line-numbers">import { LightningElement, wire } from 'lwc';
  224. import getContacts from '@salesforce/apex/ContactController.getContacts';
  225.  
  226. export default class ContactList extends LightningElement {
  227.      @wire(getContacts) contacts;
  228. }</code></pre>
  229.  
  230.  
  231.  
  232. <h2 class="wp-block-heading">2. Calling Apex Methods Imperatively</h2>
  233.  
  234.  
  235.  
  236. <p><strong>Advantages:</strong></p><div class='code-block code-block-3' style='margin: 8px auto; text-align: center; display: block; clear: both;'>
  237. <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  238. <!-- Horizontal -->
  239. <ins class="adsbygoogle"
  240.     style="display:block"
  241.     data-ad-client="ca-pub-2118680650429806"
  242.     data-ad-slot="7906570718"
  243.     data-ad-format="auto"
  244.     data-full-width-responsive="true"></ins>
  245. <script>
  246.     (adsbygoogle = window.adsbygoogle || []).push({});
  247. </script></div>
  248.  
  249.  
  250.  
  251.  
  252. <ul>
  253. <li>Ability to call multiple Apex methods in a single component.</li>
  254.  
  255.  
  256.  
  257. <li>More control over the Apex method calls.</li>
  258. </ul>
  259.  
  260.  
  261.  
  262. <p><strong>Disadvantages:</strong></p>
  263.  
  264.  
  265.  
  266. <ul>
  267. <li>No automatic handling of data retrieval and data update in the component.</li>
  268.  
  269.  
  270.  
  271. <li>Code can become more verbose and difficult to understand.</li>
  272. </ul>
  273.  
  274.  
  275.  
  276. <p>Imperative Apex method calls provide more control over the flow of the code, allowing developers to perform complex business logic in the component. Here&#8217;s an example of how to use imperative Apex method calls:</p>
  277.  
  278.  
  279.  
  280. <pre class="wp-block-code"><code lang="javascript" class="language-javascript line-numbers">import { LightningElement } from 'lwc';
  281. import getContacts from '@salesforce/apex/ContactController.getContacts';
  282.  
  283. export default class ContactList extends LightningElement {
  284.  contacts;
  285.  
  286.  connectedCallback() {
  287.    getContacts()
  288.      .then(result =&gt; {
  289.        this.contacts = result;
  290.      })
  291.      .catch(error =&gt; {
  292.        console.error(error);
  293.      });
  294.  }
  295. }
  296. </code></pre>
  297.  
  298.  
  299.  
  300. <h2 class="wp-block-heading">3. Calling Apex Methods with Parameters</h2>
  301.  
  302.  
  303.  
  304. <p><strong>Advantages:</strong></p>
  305.  
  306.  
  307.  
  308. <ul>
  309. <li>Ability to pass parameters to the Apex method call.</li>
  310.  
  311.  
  312.  
  313. <li>More flexible code.</li>
  314. </ul>
  315.  
  316.  
  317.  
  318. <p><strong>Disadvantages:</strong></p>
  319.  
  320.  
  321.  
  322. <ul>
  323. <li>No major disadvantages.</li>
  324. </ul>
  325.  
  326.  
  327.  
  328. <p>Passing parameters to Apex method calls is a common requirement in many applications. Here&#8217;s an example of how to call an Apex method with parameters using both the @wire decorator and the imperative approach:</p>
  329.  
  330.  
  331.  
  332. <pre class="wp-block-code"><code lang="javascript" class="language-javascript">import { LightningElement, wire } from 'lwc';
  333. import getContactsByAccountId from '@salesforce/apex/ContactController.getContactsByAccountId';
  334. import { getRecord } from 'lightning/uiRecordApi';
  335. export default class ContactList extends LightningElement {
  336.  accountId;
  337.  contacts;
  338.  
  339.  @wire(getRecord, { recordId: '$accountId', fields: ['Account.Name'] })
  340.  account;
  341.  
  342.  handleAccountIdChange(event) {
  343.    this.accountId = event.target.value;
  344.  }
  345.  
  346.  @wire(getContactsByAccountId, { accountId: '$accountId' })
  347.  wiredContacts({ error, data }) {
  348.    if (data) {
  349.      this.contacts = data;
  350.    } else if (error) {
  351.      console.error(error);
  352.    }
  353.  }
  354.  
  355.  get hasResults() {
  356.    return this.contacts &amp;&amp; this.contacts.length &gt; 0;
  357.  }
  358. }
  359. </code></pre>
  360.  
  361.  
  362.  
  363. <h2 class="wp-block-heading">Conclusion</h2>
  364.  
  365.  
  366.  
  367. <p>Calling Apex methods from LWC in Salesforce is a common requirement for many Lightning applications. Depending on the specific use case, there are different methods to choose from, each with its own advantages and disadvantages.</p>
  368.  
  369.  
  370.  
  371. <p>The @wire decorator is the recommended approach for most situations, as it provides automatic handling of data retrieval and data update in the component. Imperative Apex method calls and Apex method calls with parameters offer more flexibility and control, but can be more verbose and difficult to understand.</p>
  372.  
  373.  
  374.  
  375. <p>By understanding the strengths and weaknesses of these different methods, developers can choose the best approach for their specific use case, leading to more efficient and effective code.</p>
  376. <!-- AI CONTENT END 4 -->
  377. <p>The post <a rel="nofollow" href="https://sfdcdevelopers.com/2023/04/03/efficient-ways-to-call-apex-methods-from-lwc-in-salesforce-pros-and-cons/" data-wpel-link="internal">Efficient Ways to Call Apex Methods from LWC in Salesforce: Pros and Cons</a> appeared first on <a rel="nofollow" href="https://sfdcdevelopers.com" data-wpel-link="internal">SFDC Developers</a>.</p>
  378. ]]></content:encoded>
  379. <wfw:commentRss>https://sfdcdevelopers.com/2023/04/03/efficient-ways-to-call-apex-methods-from-lwc-in-salesforce-pros-and-cons/feed/</wfw:commentRss>
  380. <slash:comments>0</slash:comments>
  381. <post-id xmlns="com-wordpress:feed-additions:1">1307</post-id> </item>
  382. <item>
  383. <title>How to Create Modal Popups in LWC Salesforce: A Step-by-Step Guide</title>
  384. <link>https://sfdcdevelopers.com/2023/04/03/how-to-create-modal-popups-in-lwc-salesforce-a-step-by-step-guide/</link>
  385. <comments>https://sfdcdevelopers.com/2023/04/03/how-to-create-modal-popups-in-lwc-salesforce-a-step-by-step-guide/#respond</comments>
  386. <dc:creator><![CDATA[Vinay Vernekar]]></dc:creator>
  387. <pubDate>Mon, 03 Apr 2023 15:43:46 +0000</pubDate>
  388. <category><![CDATA[Web Component]]></category>
  389. <category><![CDATA[LWC]]></category>
  390. <category><![CDATA[Modal Popup]]></category>
  391. <guid isPermaLink="false">https://sfdcdevelopers.com/?p=1302</guid>
  392.  
  393. <description><![CDATA[<p>Modal popups are a powerful tool in user interface design, providing a focused and controlled way to display information or collect user input. In Salesforce&#8217;s Lightning Web Components (LWC), you can easily create modal popups that integrate seamlessly with your application&#8217;s UI. In this blog post, we will provide a step-by-step guide on how to [&#8230;]</p>
  394. <p>The post <a rel="nofollow" href="https://sfdcdevelopers.com/2023/04/03/how-to-create-modal-popups-in-lwc-salesforce-a-step-by-step-guide/" data-wpel-link="internal">How to Create Modal Popups in LWC Salesforce: A Step-by-Step Guide</a> appeared first on <a rel="nofollow" href="https://sfdcdevelopers.com" data-wpel-link="internal">SFDC Developers</a>.</p>
  395. ]]></description>
  396. <content:encoded><![CDATA[
  397. <p>Modal popups are a powerful tool in user interface design, providing a focused and controlled way to display information or collect user input. In Salesforce&#8217;s Lightning Web Components (LWC), you can easily create modal popups that integrate seamlessly with your application&#8217;s UI. In this blog post, we will provide a step-by-step guide on how to create a modal popup in LWC Salesforce.</p>
  398.  
  399.  
  400.  
  401. <figure class="wp-block-image size-large"><img decoding="async" width="1024" height="576" src="https://sfdcdevelopers.com/wp-content/uploads/2023/04/Difference-between-@Track-@api-and-@wire-LWC-decorators-2-1024x576.png" alt="How to Create Modal Popups in LWC Salesforce: A Step-by-Step Guide" class="wp-image-1303" srcset="https://sfdcdevelopers.com/wp-content/uploads/2023/04/Difference-between-@Track-@api-and-@wire-LWC-decorators-2-1024x576.png 1024w, https://sfdcdevelopers.com/wp-content/uploads/2023/04/Difference-between-@Track-@api-and-@wire-LWC-decorators-2-300x169.png 300w, https://sfdcdevelopers.com/wp-content/uploads/2023/04/Difference-between-@Track-@api-and-@wire-LWC-decorators-2-768x432.png 768w, https://sfdcdevelopers.com/wp-content/uploads/2023/04/Difference-between-@Track-@api-and-@wire-LWC-decorators-2-450x253.png 450w, https://sfdcdevelopers.com/wp-content/uploads/2023/04/Difference-between-@Track-@api-and-@wire-LWC-decorators-2-780x439.png 780w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>
  402.  
  403.  
  404.  
  405. <h2 class="wp-block-heading">Step 1: Create a New LWC Component</h2>
  406.  
  407.  
  408.  
  409. <p>The first step is to create a new LWC component. This can be done by navigating to the LWC component&#8217;s folder in your Salesforce org and clicking the &#8220;New&#8221; button. Give your component a name and click &#8220;Submit&#8221;.</p><div class='code-block code-block-1' style='margin: 8px auto; text-align: center; display: block; clear: both;'>
  410. <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  411. <!-- Horizontal -->
  412. <ins class="adsbygoogle"
  413.     style="display:block"
  414.     data-ad-client="ca-pub-2118680650429806"
  415.     data-ad-slot="7906570718"
  416.     data-ad-format="auto"
  417.     data-full-width-responsive="true"></ins>
  418. <script>
  419.     (adsbygoogle = window.adsbygoogle || []).push({});
  420. </script></div>
  421.  
  422.  
  423.  
  424.  
  425. <h2 class="wp-block-heading">Step 2: Import the Required Modules</h2>
  426.  
  427.  
  428.  
  429. <p>In order to create a modal popup, you will need to import the required modules in your LWC component&#8217;s JavaScript file. The two modules required are <code>LightningElement</code> and <code>track</code>. Add the following lines of code to your JavaScript file to import the modules:</p>
  430.  
  431.  
  432.  
  433. <pre class="wp-block-code"><code lang="javascript" class="language-javascript">import { LightningElement, track } from 'lwc';</code></pre>
  434.  
  435.  
  436.  
  437. <h2 class="wp-block-heading">Step 3: Define the Modal Content</h2>
  438.  
  439.  
  440.  
  441. <p>The next step is to define the content that will be displayed in the modal popup. This can be done by creating an HTML template within your LWC component&#8217;s file. Here is an example of what the HTML code might look like:</p>
  442.  
  443.  
  444.  
  445. <pre class="wp-block-code"><code lang="markup" class="language-markup">&lt;template&gt;
  446.  &lt;template if:true={isModalOpen}&gt;
  447.    &lt;section role="dialog" tabindex="-1" aria-labelledby="modal-heading-01" aria-modal="true" aria-describedby="modal-content-id-1" class="slds-modal slds-fade-in-open"&gt;
  448.      &lt;div class="slds-modal__container"&gt;
  449.        &lt;header class="slds-modal__header"&gt;
  450.          &lt;h2 id="modal-heading-01" class="slds-text-heading_medium slds-hyphenate"&gt;Modal Header&lt;/h2&gt;
  451.        &lt;/header&gt;
  452.        &lt;div class="slds-modal__content slds-p-around_medium" id="modal-content-id-1"&gt;
  453.          Modal Content
  454.        &lt;/div&gt;
  455.        &lt;footer class="slds-modal__footer"&gt;
  456.          &lt;lightning-button label="Cancel" onclick={closeModal}&gt;&lt;/lightning-button&gt;
  457.          &lt;lightning-button label="Save" variant="brand" onclick={saveModal}&gt;&lt;/lightning-button&gt;
  458.        &lt;/footer&gt;
  459.      &lt;/div&gt;
  460.    &lt;/section&gt;
  461.    &lt;div class="slds-backdrop slds-backdrop_open"&gt;&lt;/div&gt;
  462.  &lt;/template&gt;
  463. &lt;/template&gt;
  464. </code></pre>
  465.  
  466.  
  467.  
  468. <h2 class="wp-block-heading">Step 4: Define the Event Handlers</h2>
  469.  
  470.  
  471.  
  472. <p>In order to show and hide the modal popup, you will need to define event handlers. These event handlers will be triggered by user actions, such as clicking a button. Here is an example of what the JavaScript code might look like to define the event handlers:</p><div class='code-block code-block-3' style='margin: 8px auto; text-align: center; display: block; clear: both;'>
  473. <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  474. <!-- Horizontal -->
  475. <ins class="adsbygoogle"
  476.     style="display:block"
  477.     data-ad-client="ca-pub-2118680650429806"
  478.     data-ad-slot="7906570718"
  479.     data-ad-format="auto"
  480.     data-full-width-responsive="true"></ins>
  481. <script>
  482.     (adsbygoogle = window.adsbygoogle || []).push({});
  483. </script></div>
  484.  
  485.  
  486.  
  487.  
  488. <pre class="wp-block-code"><code lang="javascript" class="language-javascript">export default class MyComponent extends LightningElement {
  489.  @track isModalOpen = false;
  490.  
  491.  showModal() {
  492.    this.isModalOpen = true;
  493.  }
  494.  
  495.  hideModal() {
  496.    this.isModalOpen = false;
  497.  }
  498. }</code></pre>
  499.  
  500.  
  501.  
  502. <p>The <code>@track</code> decorator is used to ensure that the <code>isModalOpen</code> property is tracked and updated in the UI when its value changes. The <code>showModal()</code> and <code>hideModal()</code> methods are called to show and hide the modal popup, respectively.</p>
  503.  
  504.  
  505.  
  506. <h2 class="wp-block-heading">Step 5: Trigger the Modal Popup</h2>
  507.  
  508.  
  509.  
  510. <p>The final step is to trigger the modal popup by adding a button or other UI element that will call the event handlers defined in Step 4. Here is an example of what the HTML code might look like:</p>
  511.  
  512.  
  513.  
  514. <pre class="wp-block-code"><code lang="markup" class="language-markup">&lt;template&gt;
  515.  &lt;lightning-button label="Open Modal" onclick={openModal}&gt;&lt;/lightning-button&gt;
  516.  &lt;template if:true={isModalOpen}&gt;
  517.    &lt;section role="dialog" tabindex="-1" aria-labelledby="modal-heading-01" aria-modal="true" aria-describedby="modal-content-id-1" class="slds-modal slds-fade-in-open"&gt;
  518.      &lt;div class="slds-modal__container"&gt;
  519.        &lt;header class="slds-modal__header"&gt;
  520.          &lt;h2 id="modal-heading-01" class="slds-text-heading_medium slds-hyphenate"&gt;Modal Header&lt;/h2&gt;
  521.        &lt;/header&gt;
  522.        &lt;div class="slds-modal__content slds-p-around_medium" id="modal-content-id-1"&gt;
  523.          Modal Content
  524.        &lt;/div&gt;
  525.        &lt;footer class="slds-modal__footer"&gt;
  526.          &lt;lightning-button label="Cancel" onclick={closeModal}&gt;&lt;/lightning-button&gt;
  527.          &lt;lightning-button label="Save" variant="brand" onclick={saveModal}&gt;&lt;/lightning-button&gt;
  528.        &lt;/footer&gt;
  529.      &lt;/div&gt;
  530.    &lt;/section&gt;
  531.    &lt;div class="slds-backdrop slds-backdrop_open"&gt;&lt;/div&gt;
  532.  &lt;/template&gt;
  533. &lt;/template&gt;</code></pre>
  534.  
  535.  
  536.  
  537. <p>In this example, a button is added to the component that triggers the <code>showModal()</code> event handler when clicked. The modal popup is displayed when the <code>isModalOpen</code> property is set to true, and the <code>hideModal()</code> event handler is triggered when the &#8220;Close&#8221; button in the modal popup is clicked.</p>
  538.  
  539.  
  540.  
  541. <h2 class="wp-block-heading">Conclusion</h2>
  542.  
  543.  
  544.  
  545. <p>Modal popups are an important tool in user interface design, and can greatly enhance the user experience of your Salesforce application. In this blog post, we provided a step-by-step guide on how to create a modal popup in LWC Salesforce. By following these steps, you can easily integrate modal popups into your application&#8217;s UI and improve its functionality.</p>
  546. <!-- AI CONTENT END 6 -->
  547. <p>The post <a rel="nofollow" href="https://sfdcdevelopers.com/2023/04/03/how-to-create-modal-popups-in-lwc-salesforce-a-step-by-step-guide/" data-wpel-link="internal">How to Create Modal Popups in LWC Salesforce: A Step-by-Step Guide</a> appeared first on <a rel="nofollow" href="https://sfdcdevelopers.com" data-wpel-link="internal">SFDC Developers</a>.</p>
  548. ]]></content:encoded>
  549. <wfw:commentRss>https://sfdcdevelopers.com/2023/04/03/how-to-create-modal-popups-in-lwc-salesforce-a-step-by-step-guide/feed/</wfw:commentRss>
  550. <slash:comments>0</slash:comments>
  551. <post-id xmlns="com-wordpress:feed-additions:1">1302</post-id> </item>
  552. <item>
  553. <title>Difference between @Track, @api and @wire LWC decorators</title>
  554. <link>https://sfdcdevelopers.com/2023/04/03/difference-between-track-api-and-wire-lwc-decorators/</link>
  555. <comments>https://sfdcdevelopers.com/2023/04/03/difference-between-track-api-and-wire-lwc-decorators/#respond</comments>
  556. <dc:creator><![CDATA[Vinay Vernekar]]></dc:creator>
  557. <pubDate>Mon, 03 Apr 2023 15:20:43 +0000</pubDate>
  558. <category><![CDATA[Web Component]]></category>
  559. <category><![CDATA[LWC]]></category>
  560. <category><![CDATA[Salesforce Lightning]]></category>
  561. <guid isPermaLink="false">https://sfdcdevelopers.com/?p=1294</guid>
  562.  
  563. <description><![CDATA[<p>Learn the differences between track, wire, and api decorators in Salesforce LWC, and how to choose the right decorator for your use case.</p>
  564. <p>The post <a rel="nofollow" href="https://sfdcdevelopers.com/2023/04/03/difference-between-track-api-and-wire-lwc-decorators/" data-wpel-link="internal">Difference between @Track, @api and @wire LWC decorators</a> appeared first on <a rel="nofollow" href="https://sfdcdevelopers.com" data-wpel-link="internal">SFDC Developers</a>.</p>
  565. ]]></description>
  566. <content:encoded><![CDATA[
  567. <p>Salesforce&#8217;s Lightning Web Components (LWC) is a popular framework for developing web applications on the Salesforce platform. LWC offers several decorators, including <code>track</code>, <code>wire</code>, and <code>api</code>, that developers use to extend the functionality of their components. In this post, we&#8217;ll dive into the differences between these three decorators.</p>
  568.  
  569.  
  570.  
  571. <figure class="wp-block-image size-large is-style-default"><img loading="lazy" decoding="async" width="1024" height="576" src="https://sfdcdevelopers.com/wp-content/uploads/2023/04/Difference-between-@Track-@api-and-@wire-LWC-decorators-1024x576.png" alt="Difference between @Track, @api and @wire LWC decorators" class="wp-image-1299" srcset="https://sfdcdevelopers.com/wp-content/uploads/2023/04/Difference-between-@Track-@api-and-@wire-LWC-decorators-1024x576.png 1024w, https://sfdcdevelopers.com/wp-content/uploads/2023/04/Difference-between-@Track-@api-and-@wire-LWC-decorators-300x169.png 300w, https://sfdcdevelopers.com/wp-content/uploads/2023/04/Difference-between-@Track-@api-and-@wire-LWC-decorators-768x432.png 768w, https://sfdcdevelopers.com/wp-content/uploads/2023/04/Difference-between-@Track-@api-and-@wire-LWC-decorators-450x253.png 450w, https://sfdcdevelopers.com/wp-content/uploads/2023/04/Difference-between-@Track-@api-and-@wire-LWC-decorators-780x439.png 780w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>
  572.  
  573.  
  574.  
  575. <h2 class="wp-block-heading">Track Decorator</h2>
  576.  
  577.  
  578.  
  579. <p>The <code>track</code> decorator is used to track changes to a property&#8217;s value within a component. Whenever the value of a tracked property changes, the component rerenders, reflecting the updated value.</p><div class='code-block code-block-1' style='margin: 8px auto; text-align: center; display: block; clear: both;'>
  580. <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  581. <!-- Horizontal -->
  582. <ins class="adsbygoogle"
  583.     style="display:block"
  584.     data-ad-client="ca-pub-2118680650429806"
  585.     data-ad-slot="7906570718"
  586.     data-ad-format="auto"
  587.     data-full-width-responsive="true"></ins>
  588. <script>
  589.     (adsbygoogle = window.adsbygoogle || []).push({});
  590. </script></div>
  591.  
  592.  
  593.  
  594.  
  595. <pre class="wp-block-code"><code class="">
  596. import { LightningElement, track } from 'lwc';
  597.  
  598. export default class ExampleComponent extends LightningElement {
  599.  @track greeting = 'Hello';
  600.  
  601.  handleChange(event) {
  602.    this.greeting = event.target.value;
  603.  }
  604. }
  605.    </code></pre>
  606.  
  607.  
  608.  
  609. <h2 class="wp-block-heading">Wire Decorator</h2>
  610.  
  611.  
  612.  
  613. <p>The <code>wire</code> decorator is used to retrieve data from server-side controllers or Apex methods. The data returned by the method is stored in the component&#8217;s property, and the component rerenders with the new data.</p>
  614.  
  615.  
  616.  
  617. <pre class="wp-block-code"><code class="">
  618. import { LightningElement, wire } from 'lwc';
  619. import getContacts from '@salesforce/apex/ContactController.getContacts';
  620.  
  621. export default class ContactList extends LightningElement {
  622.  @wire(getContacts) contacts;
  623. }
  624.    </code></pre>
  625.  
  626.  
  627.  
  628. <h2 class="wp-block-heading">API Decorator</h2>
  629.  
  630.  
  631.  
  632. <p>The <code>api</code> decorator is used to expose a component&#8217;s property or method to the parent component. This allows the parent component to access the property or method.</p>
  633.  
  634.  
  635.  
  636. <pre class="wp-block-code"><code class="">
  637. import { LightningElement, api } from 'lwc';
  638.  
  639. export default class ExampleComponent extends LightningElement {
  640.  @api message = 'Hello World';
  641. }
  642.    </code></pre>
  643.  
  644.  
  645.  
  646. <h2 class="wp-block-heading">Summary</h2>
  647.  
  648.  
  649.  
  650. <p>In summary, the <code>track</code> decorator is used to track changes to a property&#8217;s value within a component, the <code>wire</code> decorator is used to retrieve data from server-side controllers or Apex methods, and the <code>api</code> decorator is used to expose a component&#8217;s property or method to the parent component. These decorators are powerful tools for building robust and scalable web applications on the Salesforce platform.</p><div class='code-block code-block-3' style='margin: 8px auto; text-align: center; display: block; clear: both;'>
  651. <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  652. <!-- Horizontal -->
  653. <ins class="adsbygoogle"
  654.     style="display:block"
  655.     data-ad-client="ca-pub-2118680650429806"
  656.     data-ad-slot="7906570718"
  657.     data-ad-format="auto"
  658.     data-full-width-responsive="true"></ins>
  659. <script>
  660.     (adsbygoogle = window.adsbygoogle || []).push({});
  661. </script></div>
  662.  
  663. <!-- AI CONTENT END 7 -->
  664. <p>The post <a rel="nofollow" href="https://sfdcdevelopers.com/2023/04/03/difference-between-track-api-and-wire-lwc-decorators/" data-wpel-link="internal">Difference between @Track, @api and @wire LWC decorators</a> appeared first on <a rel="nofollow" href="https://sfdcdevelopers.com" data-wpel-link="internal">SFDC Developers</a>.</p>
  665. ]]></content:encoded>
  666. <wfw:commentRss>https://sfdcdevelopers.com/2023/04/03/difference-between-track-api-and-wire-lwc-decorators/feed/</wfw:commentRss>
  667. <slash:comments>0</slash:comments>
  668. <post-id xmlns="com-wordpress:feed-additions:1">1294</post-id> </item>
  669. <item>
  670. <title>Recalculate Formula Fields without DML Statement</title>
  671. <link>https://sfdcdevelopers.com/2020/12/08/recalculate-formula-fields-without-dml-statement/</link>
  672. <comments>https://sfdcdevelopers.com/2020/12/08/recalculate-formula-fields-without-dml-statement/#respond</comments>
  673. <dc:creator><![CDATA[Vinay Vernekar]]></dc:creator>
  674. <pubDate>Tue, 08 Dec 2020 06:17:59 +0000</pubDate>
  675. <category><![CDATA[Apex]]></category>
  676. <guid isPermaLink="false">https://sfdcdevelopers.com/?p=1166</guid>
  677.  
  678. <description><![CDATA[<p>Sometimes we need to show output of formula in UI. when I say UI, it can be either via Visualforce Pages, Lightning Components or Lightning Web Components. Traditionally to get the formulas calculated, DML needs to be performed for the objects. Since winter 20 release, Salesforce has provided callability to auto calculate formulas without performing [&#8230;]</p>
  679. <p>The post <a rel="nofollow" href="https://sfdcdevelopers.com/2020/12/08/recalculate-formula-fields-without-dml-statement/" data-wpel-link="internal">Recalculate Formula Fields without DML Statement</a> appeared first on <a rel="nofollow" href="https://sfdcdevelopers.com" data-wpel-link="internal">SFDC Developers</a>.</p>
  680. ]]></description>
  681. <content:encoded><![CDATA[
  682. <p>Sometimes we need to show output of formula in UI. when I say UI, it can be either via Visualforce Pages, Lightning Components or Lightning Web Components. Traditionally to get the formulas calculated, DML needs to be performed for the objects. Since winter 20 release, Salesforce has provided callability to auto calculate formulas without performing DML operation.</p>
  683.  
  684.  
  685.  
  686. <h2 class="wp-block-heading">Scenario</h2>
  687.  
  688.  
  689.  
  690. <p>We have a custom formula field &#8220;Opportunity_Serial_Number__c&#8221; on opportunity line item to show opportunity Serial Number, We have following apex code:</p><div class='code-block code-block-1' style='margin: 8px auto; text-align: center; display: block; clear: both;'>
  691. <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  692. <!-- Horizontal -->
  693. <ins class="adsbygoogle"
  694.     style="display:block"
  695.     data-ad-client="ca-pub-2118680650429806"
  696.     data-ad-slot="7906570718"
  697.     data-ad-format="auto"
  698.     data-full-width-responsive="true"></ins>
  699. <script>
  700.     (adsbygoogle = window.adsbygoogle || []).push({});
  701. </script></div>
  702.  
  703.  
  704.  
  705.  
  706. <pre class="wp-block-code"><code lang="java" class="language-java">private void showTotalAmountOnOLI(id OppId, id PBEId) {
  707. List&lt;OpportunityLineItem> OLIs = new List&lt;OpportunityLineItem>();
  708.        OLIs.add(new OpportunityLineItem(OpportunityId = OppId, PricebookEntryId = PBEId, UnitPrice = 100, Quantity = 10));
  709.        Formula.recalculateFormulas(OLIs);
  710.        system.debug(OLIs[0].Opportunity_Serial_Number__c);
  711. }</code></pre>
  712.  
  713.  
  714.  
  715. <h2 class="wp-block-heading">Explanation</h2>
  716.  
  717.  
  718.  
  719. <ul><li>We have <strong>showTotalAmountOnOLI </strong>method accepting <strong>OppId </strong>(Opportunity Id) and <strong>PBEId</strong> (Pricebook Entry Id).</li><li>Initialized list of opportunity with one line item providing opportunity id and pricebook entry id.</li><li>Without writing an <strong>insert DML statement</strong>, we forced recalculation of all formula fields for the records passed in function <strong>recalculateFormulas</strong>();</li><li>Syntax of function is Formula.recalculateFormulas(list&lt;sObject>). More information can be found <a rel="noreferrer noopener nofollow external" href="https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_class_System_Formula.htm" target="_blank" data-wpel-link="external">here</a>.</li><li>After recalculating the formulas, Opportunity Serial Number printed with debug statement.</li></ul>
  720.  
  721.  
  722.  
  723. <p>This is just an explaination how recalculating works, however this is very much needed when showing output of formula field on visualforce page without saving a record.</p>
  724. <!-- AI CONTENT END 9 -->
  725. <p>The post <a rel="nofollow" href="https://sfdcdevelopers.com/2020/12/08/recalculate-formula-fields-without-dml-statement/" data-wpel-link="internal">Recalculate Formula Fields without DML Statement</a> appeared first on <a rel="nofollow" href="https://sfdcdevelopers.com" data-wpel-link="internal">SFDC Developers</a>.</p>
  726. ]]></content:encoded>
  727. <wfw:commentRss>https://sfdcdevelopers.com/2020/12/08/recalculate-formula-fields-without-dml-statement/feed/</wfw:commentRss>
  728. <slash:comments>0</slash:comments>
  729. <post-id xmlns="com-wordpress:feed-additions:1">1166</post-id> </item>
  730. <item>
  731. <title>Slack &#8211; The Salesforce Acquisition</title>
  732. <link>https://sfdcdevelopers.com/2020/12/02/slack-the-salesforce-acquisition/</link>
  733. <comments>https://sfdcdevelopers.com/2020/12/02/slack-the-salesforce-acquisition/#respond</comments>
  734. <dc:creator><![CDATA[Vinay Vernekar]]></dc:creator>
  735. <pubDate>Wed, 02 Dec 2020 04:12:20 +0000</pubDate>
  736. <category><![CDATA[News]]></category>
  737. <guid isPermaLink="false">https://sfdcdevelopers.com/?p=1153</guid>
  738.  
  739. <description><![CDATA[<p>Salesforce, the CRM stalwart that as of late outperformed $20 billion in yearly income, reported today it is swimming further into big business social by securing Slack in a $27.7 billion megadeal. Bits of gossip about a forthcoming arrangement surfaced a week ago, causing Slack&#8217;s stock cost to spike. Salesforce prime supporter and CEO Marc [&#8230;]</p>
  740. <p>The post <a rel="nofollow" href="https://sfdcdevelopers.com/2020/12/02/slack-the-salesforce-acquisition/" data-wpel-link="internal">Slack &#8211; The Salesforce Acquisition</a> appeared first on <a rel="nofollow" href="https://sfdcdevelopers.com" data-wpel-link="internal">SFDC Developers</a>.</p>
  741. ]]></description>
  742. <content:encoded><![CDATA[
  743. <p>Salesforce, the CRM stalwart that as of late outperformed $20 billion in yearly income, reported today it is swimming further into big business social by securing Slack in a $27.7 billion megadeal. Bits of gossip about a forthcoming arrangement surfaced a week ago, causing Slack&#8217;s stock cost to spike.</p>
  744.  
  745.  
  746.  
  747. <p>Salesforce prime supporter and CEO Marc Benioff didn&#8217;t dance around the issues on his most recent buy. &#8220;This is a match made in paradise. Together, Salesforce and Slack will shape the fate of big business programming and change the manner in which everybody works in the all-advanced, work-from-anyplace world,&#8221; Benioff said in an explanation.</p><div class='code-block code-block-1' style='margin: 8px auto; text-align: center; display: block; clear: both;'>
  748. <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  749. <!-- Horizontal -->
  750. <ins class="adsbygoogle"
  751.     style="display:block"
  752.     data-ad-client="ca-pub-2118680650429806"
  753.     data-ad-slot="7906570718"
  754.     data-ad-format="auto"
  755.     data-full-width-responsive="true"></ins>
  756. <script>
  757.     (adsbygoogle = window.adsbygoogle || []).push({});
  758. </script></div>
  759.  
  760.  
  761.  
  762.  
  763. <p>Slack CEO Stewart Butterfield was no less profuse than his future chief. &#8220;As programming plays an increasingly more basic part in the presentation of each association, we share a dream of diminished unpredictability, expanded force and adaptability, and eventually a more noteworthy level of arrangement and hierarchical nimbleness. By and by, I accept this is the most vital mix throughout the entire existence of programming, and I can hardly wait to get moving,&#8221; Butterfield said in a proclamation.</p>
  764.  
  765.  
  766.  
  767. <figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="489" src="https://sfdcdevelopers.com/wp-content/uploads/2020/12/featured-image-slack-salesforce-1024x489.png" alt="" class="wp-image-1154" srcset="https://sfdcdevelopers.com/wp-content/uploads/2020/12/featured-image-slack-salesforce-1024x489.png 1024w, https://sfdcdevelopers.com/wp-content/uploads/2020/12/featured-image-slack-salesforce-300x143.png 300w, https://sfdcdevelopers.com/wp-content/uploads/2020/12/featured-image-slack-salesforce-768x366.png 768w, https://sfdcdevelopers.com/wp-content/uploads/2020/12/featured-image-slack-salesforce-450x215.png 450w, https://sfdcdevelopers.com/wp-content/uploads/2020/12/featured-image-slack-salesforce-780x372.png 780w, https://sfdcdevelopers.com/wp-content/uploads/2020/12/featured-image-slack-salesforce.png 1090w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Salesforce buys Slack in a $27.7B</figcaption></figure>
  768.  
  769.  
  770.  
  771. <p>Each laborer at each organization needs to impart, something that Slack can capably enable. In addition, it additionally encourages outer correspondence with clients and accomplices, something that should be very helpful for an organization like Salesforce and its group of contributions.</p>
  772.  
  773.  
  774.  
  775. <p>The present arrangement comes after Salesforce&#8217;s acquisition of Quip in 2016 for $750 million. Jest brought to the SaaS monster a method of socially sharing archives, and when combined with the Slack procurement gives Salesforce a significantly more vigorous social story to tell than its inside choice Chatter, an early endeavor at big business social that never truly got on.</p><div class='code-block code-block-3' style='margin: 8px auto; text-align: center; display: block; clear: both;'>
  776. <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  777. <!-- Horizontal -->
  778. <ins class="adsbygoogle"
  779.     style="display:block"
  780.     data-ad-client="ca-pub-2118680650429806"
  781.     data-ad-slot="7906570718"
  782.     data-ad-format="auto"
  783.     data-full-width-responsive="true"></ins>
  784. <script>
  785.     (adsbygoogle = window.adsbygoogle || []).push({});
  786. </script></div>
  787.  
  788.  
  789.  
  790.  
  791. <p>It&#8217;s important that Salesforce was keen on Twitter in 2016, the exact year that Microsoft was supposedly inspired by Slack, however at last left that bargain when investors protested, not having any desire to manage the dubious side of the social stage.</p>
  792.  
  793.  
  794.  
  795. <p>Slack was established in 2013, yet its sources return to an online multiplayer game organization considered Glitch that was established in 2009. While the game was at last a disappointment, the startup built up an interior informing framework during the time spent structure that organization that later developed into Slack.</p>
  796.  
  797.  
  798.  
  799. <p>The organization&#8217;s memorable development helped Slack raise more than $1 billion while private, procuring a noteworthy $7 billion valuation prior to opening up to the world a year ago. Be that as it may, while the Glitch-to-unicorn story seems basic, Slack has consistently confronted settled in rivalry from any semblance of Microsoft, yet in addition Cisco, Facebook, Google and even Asana and Monday.com.</p>
  800.  
  801.  
  802.  
  803. <p>For Slack, the way to the public business sectors was laden with publicity and outsized desire. The organization was popular, or as celebrated as a venture programming organization can be. At the time it seemed like its presentation was the beginning of a long residency as a non mainstream organization. All things considered, that public life has been written short by an enormous check. Such is the ruthless universe of tech.</p>
  804. <!-- AI CONTENT END 11 -->
  805. <p>The post <a rel="nofollow" href="https://sfdcdevelopers.com/2020/12/02/slack-the-salesforce-acquisition/" data-wpel-link="internal">Slack &#8211; The Salesforce Acquisition</a> appeared first on <a rel="nofollow" href="https://sfdcdevelopers.com" data-wpel-link="internal">SFDC Developers</a>.</p>
  806. ]]></content:encoded>
  807. <wfw:commentRss>https://sfdcdevelopers.com/2020/12/02/slack-the-salesforce-acquisition/feed/</wfw:commentRss>
  808. <slash:comments>0</slash:comments>
  809. <post-id xmlns="com-wordpress:feed-additions:1">1153</post-id> </item>
  810. <item>
  811. <title>Salesforce &#038; Microsoft Partnership for Teams Integration</title>
  812. <link>https://sfdcdevelopers.com/2020/11/23/salesforce-microsoft-partnership-for-teams-integration/</link>
  813. <comments>https://sfdcdevelopers.com/2020/11/23/salesforce-microsoft-partnership-for-teams-integration/#respond</comments>
  814. <dc:creator><![CDATA[Vinay Vernekar]]></dc:creator>
  815. <pubDate>Mon, 23 Nov 2020 05:00:17 +0000</pubDate>
  816. <category><![CDATA[News]]></category>
  817. <guid isPermaLink="false">https://sfdcdevelopers.com/?p=1141</guid>
  818.  
  819. <description><![CDATA[<p>Considering customer needs, Microsoft partners with Salesforce to achieve goal of making collaboration and meetings between teams easier. For sales teams, the integration will help bring sales teams together more easily and help make up for some of the hallway discussions that are now missing from many salespeople’s daily routine in light of the current [&#8230;]</p>
  820. <p>The post <a rel="nofollow" href="https://sfdcdevelopers.com/2020/11/23/salesforce-microsoft-partnership-for-teams-integration/" data-wpel-link="internal">Salesforce &#038; Microsoft Partnership for Teams Integration</a> appeared first on <a rel="nofollow" href="https://sfdcdevelopers.com" data-wpel-link="internal">SFDC Developers</a>.</p>
  821. ]]></description>
  822. <content:encoded><![CDATA[
  823. <p>Considering customer needs, Microsoft partners with Salesforce to achieve goal of making collaboration and meetings between teams easier.</p>
  824.  
  825.  
  826.  
  827. <p>For sales teams, the integration will help bring sales teams together more easily and help make up for some of the hallway discussions that are now missing from many salespeople’s daily routine in light of the current work-from-home environment. For service teams, the integration will enable better coordination and faster response times to open cases, allowing for more team collaboration both within the service department and outside.</p><div class='code-block code-block-1' style='margin: 8px auto; text-align: center; display: block; clear: both;'>
  828. <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  829. <!-- Horizontal -->
  830. <ins class="adsbygoogle"
  831.     style="display:block"
  832.     data-ad-client="ca-pub-2118680650429806"
  833.     data-ad-slot="7906570718"
  834.     data-ad-format="auto"
  835.     data-full-width-responsive="true"></ins>
  836. <script>
  837.     (adsbygoogle = window.adsbygoogle || []).push({});
  838. </script></div>
  839.  
  840.  
  841.  
  842.  
  843. <p>With a Salesforce message extension integration,</p>
  844.  
  845.  
  846.  
  847. <ul><li>Integrate key customer details right inline within a conversation</li><li>Keeping details right in context and alongside conversations</li><li>Relevant details around customer contact information are displayed within the broader chat stream.</li><li>Administrators can also choose and determine the level of visibility for this information – whether details can be shared within a secured team, or whether they require a Salesforce log-in to display.</li><li>Pin customer information as a Tab in a channel. Within this Tab, Sales Rep can see and update key vendor information, related contacts, and view updates and activities all in one place. This facilitates a workflow where you use a team or channel per customer to holistically manage all aspects of that relationship.</li></ul>
  848.  
  849.  
  850.  
  851. <p>This feature is still in pilot mode, Salesforce customer need to follow <a href="https://help.salesforce.com/articleView?id=teams_int_setup_configure_in_salesforce.htm&amp;type=5" target="_blank" rel="noreferrer noopener nofollow external" data-wpel-link="external">this article</a> in order to setup the connection between Salesforce and Microsoft teams.</p>
  852. <!-- AI CONTENT END 13 -->
  853. <p>The post <a rel="nofollow" href="https://sfdcdevelopers.com/2020/11/23/salesforce-microsoft-partnership-for-teams-integration/" data-wpel-link="internal">Salesforce &#038; Microsoft Partnership for Teams Integration</a> appeared first on <a rel="nofollow" href="https://sfdcdevelopers.com" data-wpel-link="internal">SFDC Developers</a>.</p>
  854. ]]></content:encoded>
  855. <wfw:commentRss>https://sfdcdevelopers.com/2020/11/23/salesforce-microsoft-partnership-for-teams-integration/feed/</wfw:commentRss>
  856. <slash:comments>0</slash:comments>
  857. <post-id xmlns="com-wordpress:feed-additions:1">1141</post-id> </item>
  858. <item>
  859. <title>Retain zeros of decimal places in email templates</title>
  860. <link>https://sfdcdevelopers.com/2020/07/11/retain-zeros-of-decimal-places-in-email-templates/</link>
  861. <comments>https://sfdcdevelopers.com/2020/07/11/retain-zeros-of-decimal-places-in-email-templates/#comments</comments>
  862. <dc:creator><![CDATA[Vinay Vernekar]]></dc:creator>
  863. <pubDate>Sat, 11 Jul 2020 04:41:55 +0000</pubDate>
  864. <category><![CDATA[Configs]]></category>
  865. <guid isPermaLink="false">https://sfdcdevelopers.com/?p=1119</guid>
  866.  
  867. <description><![CDATA[<p>Recently while working with email template, I struggled lot to show just a number field having 6 decimal places on email template. The requirement was to show 6 decimal places leading zeros. For example, if the decimal field value is 45.7891 then it should show 45.789100. The number field was set to 6 decimal places, [&#8230;]</p>
  868. <p>The post <a rel="nofollow" href="https://sfdcdevelopers.com/2020/07/11/retain-zeros-of-decimal-places-in-email-templates/" data-wpel-link="internal">Retain zeros of decimal places in email templates</a> appeared first on <a rel="nofollow" href="https://sfdcdevelopers.com" data-wpel-link="internal">SFDC Developers</a>.</p>
  869. ]]></description>
  870. <content:encoded><![CDATA[
  871. <p>Recently while working with email template, I struggled lot to show just a number field having 6 decimal places on email template. The requirement was to show 6 decimal places leading zeros. </p>
  872.  
  873.  
  874.  
  875. <p>For example, if the decimal field value is 45.7891 then it should show 45.789100. The number field was set to 6 decimal places, however it was showing 45.789 on email template.</p><div class='code-block code-block-1' style='margin: 8px auto; text-align: center; display: block; clear: both;'>
  876. <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  877. <!-- Horizontal -->
  878. <ins class="adsbygoogle"
  879.     style="display:block"
  880.     data-ad-client="ca-pub-2118680650429806"
  881.     data-ad-slot="7906570718"
  882.     data-ad-format="auto"
  883.     data-full-width-responsive="true"></ins>
  884. <script>
  885.     (adsbygoogle = window.adsbygoogle || []).push({});
  886. </script></div>
  887.  
  888.  
  889.  
  890.  
  891. <p>Two things I noticed, those are:</p>
  892.  
  893.  
  894.  
  895. <ul><li>More than 3 decimal digits are automatically rounded to 3 decimal digits.</li><li>If there are leading zeros, they simply gets ignored, like if the number is, 4.100, it will show as 4.1 on mail template.</li></ul>
  896.  
  897.  
  898.  
  899. <p>To tackle this, I had to built formula field with following formula which outputs the number value in text format and then placed the field in email template.</p>
  900.  
  901.  
  902.  
  903. <h2 class="wp-block-heading">Formula</h2>
  904.  
  905.  
  906.  
  907. <pre class="wp-block-code"><code lang="java" class="language-java">LEFT(TEXT(ROUND(decimal_value__c, 6)), FIND('.', TEXT(ROUND(decimal_value__c, 6))))+RPAD(RIGHT(TEXT(ROUND(decimal_value__c, 6)),  LEN(TEXT(ROUND(decimal_value__c, 6))) - FIND('.', TEXT(ROUND(decimal_value__c, 6)))), 6, '0')</code></pre>
  908.  
  909.  
  910.  
  911. <h2 class="wp-block-heading">Considerations</h2>
  912.  
  913.  
  914.  
  915. <ul><li><strong>decimal_value__c</strong> is a number field with 6 decimal places.</li></ul>
  916.  
  917.  
  918.  
  919. <h2 class="wp-block-heading">Explaination</h2>
  920.  
  921.  
  922.  
  923. <ul><li><strong>ROUND(decimal_value__c, 6)</strong> : Rounds the number with specified decimal places, here its 6.</li><li><strong>TEXT(ROUND(decimal_value__c, 6))</strong> : Converted whole number in text format</li><li><strong>FIND(&#8216;.&#8217;, TEXT(ROUND(decimal_value__c, 6)))</strong> : To find the position of decimal point in text format of digit.</li><li><strong>LEFT(TEXT(ROUND(decimal_value__c, 6)), FIND(&#8216;.&#8217;, TEXT(ROUND(decimal_value__c, 6))))</strong> : Gives left side of number. If the number is 458.669, this formula outputs as 458</li><li><strong>LEN(TEXT(ROUND(decimal_value__c, 6))) &#8211; FIND(&#8216;.&#8217;, TEXT(ROUND(decimal_value__c, 6)))</strong> : Finds number of digits after decimal place. for 458.669, it outputs as 3.</li><li><strong>RPAD(RIGHT(TEXT(ROUND(decimal_value__c, 6)), LEN(TEXT(ROUND(decimal_value__c, 6))) &#8211; FIND(&#8216;.&#8217;, TEXT(ROUND(decimal_value__c, 6)))), 6, &#8216;0&#8217;)</strong> : It will always make sure to have numberof digits as 6, so if value is 669, will output as 669000</li><li><strong>Final Formula </strong>: Concatenate both values, final value will be <strong>458.669000</strong> </li></ul>
  924.  
  925.  
  926.  
  927. <p>Replace 6 with the number of digits you want to show on email template.</p><div class='code-block code-block-3' style='margin: 8px auto; text-align: center; display: block; clear: both;'>
  928. <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  929. <!-- Horizontal -->
  930. <ins class="adsbygoogle"
  931.     style="display:block"
  932.     data-ad-client="ca-pub-2118680650429806"
  933.     data-ad-slot="7906570718"
  934.     data-ad-format="auto"
  935.     data-full-width-responsive="true"></ins>
  936. <script>
  937.     (adsbygoogle = window.adsbygoogle || []).push({});
  938. </script></div>
  939.  
  940. <!-- AI CONTENT END 15 -->
  941. <p>The post <a rel="nofollow" href="https://sfdcdevelopers.com/2020/07/11/retain-zeros-of-decimal-places-in-email-templates/" data-wpel-link="internal">Retain zeros of decimal places in email templates</a> appeared first on <a rel="nofollow" href="https://sfdcdevelopers.com" data-wpel-link="internal">SFDC Developers</a>.</p>
  942. ]]></content:encoded>
  943. <wfw:commentRss>https://sfdcdevelopers.com/2020/07/11/retain-zeros-of-decimal-places-in-email-templates/feed/</wfw:commentRss>
  944. <slash:comments>4</slash:comments>
  945. <post-id xmlns="com-wordpress:feed-additions:1">1119</post-id> </item>
  946. <item>
  947. <title>Salesforce Code Builder &#8211; Online IDE</title>
  948. <link>https://sfdcdevelopers.com/2020/06/24/salesforce-code-builder-online-ide/</link>
  949. <comments>https://sfdcdevelopers.com/2020/06/24/salesforce-code-builder-online-ide/#respond</comments>
  950. <dc:creator><![CDATA[Vinay Vernekar]]></dc:creator>
  951. <pubDate>Wed, 24 Jun 2020 08:07:48 +0000</pubDate>
  952. <category><![CDATA[News]]></category>
  953. <category><![CDATA[Code Builder]]></category>
  954. <guid isPermaLink="false">https://sfdcdevelopers.com/?p=1097</guid>
  955.  
  956. <description><![CDATA[<p> Salesforce announced Code Builder, a web-based development environment powered by Microsoft’s Visual Studio Codespaces and fully optimized for Salesforce development.</p>
  957. <p>The post <a rel="nofollow" href="https://sfdcdevelopers.com/2020/06/24/salesforce-code-builder-online-ide/" data-wpel-link="internal">Salesforce Code Builder &#8211; Online IDE</a> appeared first on <a rel="nofollow" href="https://sfdcdevelopers.com" data-wpel-link="internal">SFDC Developers</a>.</p>
  958. ]]></description>
  959. <content:encoded><![CDATA[
  960. <p>One of my favorite IDE is Visual Studio Code, its simply awesome. Hopefully its favorite of yours too. What if someone told you the Visual Studio Code is now available online and that too for Salesforce, it will be like butter on bread right! That&#8217;s correct, Salesforce announced Code Builder, a web-based development environment fully optimized for Salesforce development and powered by Microsoft’s Visual Studio Code spaces.</p>
  961.  
  962.  
  963.  
  964. <figure class="wp-block-gallery columns-3 is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex"><ul class="blocks-gallery-grid"><li class="blocks-gallery-item"><figure><img loading="lazy" decoding="async" width="800" height="450" src="https://sfdcdevelopers.com/wp-content/uploads/2020/06/SOQL-e1592870543513.png" alt="" data-id="1100" data-full-url="https://sfdcdevelopers.com/wp-content/uploads/2020/06/SOQL-e1592870543513.png" data-link="https://sfdcdevelopers.com/?attachment_id=1100" class="wp-image-1100" srcset="https://sfdcdevelopers.com/wp-content/uploads/2020/06/SOQL-e1592870543513.png 800w, https://sfdcdevelopers.com/wp-content/uploads/2020/06/SOQL-e1592870543513-300x169.png 300w, https://sfdcdevelopers.com/wp-content/uploads/2020/06/SOQL-e1592870543513-768x432.png 768w, https://sfdcdevelopers.com/wp-content/uploads/2020/06/SOQL-e1592870543513-450x253.png 450w, https://sfdcdevelopers.com/wp-content/uploads/2020/06/SOQL-e1592870543513-30x17.png 30w, https://sfdcdevelopers.com/wp-content/uploads/2020/06/SOQL-e1592870543513-780x439.png 780w" sizes="(max-width: 800px) 100vw, 800px" /></figure></li><li class="blocks-gallery-item"><figure><img loading="lazy" decoding="async" width="800" height="510" src="https://sfdcdevelopers.com/wp-content/uploads/2020/06/ALM-e1592870517651.png" alt="" data-id="1102" data-full-url="https://sfdcdevelopers.com/wp-content/uploads/2020/06/ALM-e1592870517651.png" data-link="https://sfdcdevelopers.com/?attachment_id=1102" class="wp-image-1102" srcset="https://sfdcdevelopers.com/wp-content/uploads/2020/06/ALM-e1592870517651.png 800w, https://sfdcdevelopers.com/wp-content/uploads/2020/06/ALM-e1592870517651-300x191.png 300w, https://sfdcdevelopers.com/wp-content/uploads/2020/06/ALM-e1592870517651-768x490.png 768w, https://sfdcdevelopers.com/wp-content/uploads/2020/06/ALM-e1592870517651-37x25.png 37w, https://sfdcdevelopers.com/wp-content/uploads/2020/06/ALM-e1592870517651-450x287.png 450w, https://sfdcdevelopers.com/wp-content/uploads/2020/06/ALM-e1592870517651-30x19.png 30w, https://sfdcdevelopers.com/wp-content/uploads/2020/06/ALM-e1592870517651-780x497.png 780w" sizes="(max-width: 800px) 100vw, 800px" /></figure></li><li class="blocks-gallery-item"><figure><img loading="lazy" decoding="async" width="800" height="450" src="https://sfdcdevelopers.com/wp-content/uploads/2020/06/3-e1592870303844.png" alt="" data-id="1103" data-full-url="https://sfdcdevelopers.com/wp-content/uploads/2020/06/3-e1592870303844.png" data-link="https://sfdcdevelopers.com/?attachment_id=1103" class="wp-image-1103" srcset="https://sfdcdevelopers.com/wp-content/uploads/2020/06/3-e1592870303844.png 800w, https://sfdcdevelopers.com/wp-content/uploads/2020/06/3-e1592870303844-300x169.png 300w, https://sfdcdevelopers.com/wp-content/uploads/2020/06/3-e1592870303844-768x432.png 768w, https://sfdcdevelopers.com/wp-content/uploads/2020/06/3-e1592870303844-450x253.png 450w, https://sfdcdevelopers.com/wp-content/uploads/2020/06/3-e1592870303844-30x17.png 30w, https://sfdcdevelopers.com/wp-content/uploads/2020/06/3-e1592870303844-780x439.png 780w" sizes="(max-width: 800px) 100vw, 800px" /></figure></li><li class="blocks-gallery-item"><figure><img loading="lazy" decoding="async" width="800" height="513" src="https://sfdcdevelopers.com/wp-content/uploads/2020/06/2-e1592870222359.png" alt="" data-id="1104" data-full-url="https://sfdcdevelopers.com/wp-content/uploads/2020/06/2-e1592870222359.png" data-link="https://sfdcdevelopers.com/?attachment_id=1104" class="wp-image-1104" srcset="https://sfdcdevelopers.com/wp-content/uploads/2020/06/2-e1592870222359.png 800w, https://sfdcdevelopers.com/wp-content/uploads/2020/06/2-e1592870222359-300x192.png 300w, https://sfdcdevelopers.com/wp-content/uploads/2020/06/2-e1592870222359-768x492.png 768w, https://sfdcdevelopers.com/wp-content/uploads/2020/06/2-e1592870222359-37x25.png 37w, https://sfdcdevelopers.com/wp-content/uploads/2020/06/2-e1592870222359-450x289.png 450w, https://sfdcdevelopers.com/wp-content/uploads/2020/06/2-e1592870222359-30x19.png 30w, https://sfdcdevelopers.com/wp-content/uploads/2020/06/2-e1592870222359-780x500.png 780w" sizes="(max-width: 800px) 100vw, 800px" /></figure></li><li class="blocks-gallery-item"><figure><img loading="lazy" decoding="async" width="800" height="510" src="https://sfdcdevelopers.com/wp-content/uploads/2020/06/1-e1592869021568.png" alt="" data-id="1105" data-full-url="https://sfdcdevelopers.com/wp-content/uploads/2020/06/1-e1592869021568.png" data-link="https://sfdcdevelopers.com/?attachment_id=1105" class="wp-image-1105" srcset="https://sfdcdevelopers.com/wp-content/uploads/2020/06/1-e1592869021568.png 800w, https://sfdcdevelopers.com/wp-content/uploads/2020/06/1-e1592869021568-300x191.png 300w, https://sfdcdevelopers.com/wp-content/uploads/2020/06/1-e1592869021568-768x490.png 768w, https://sfdcdevelopers.com/wp-content/uploads/2020/06/1-e1592869021568-37x25.png 37w, https://sfdcdevelopers.com/wp-content/uploads/2020/06/1-e1592869021568-450x287.png 450w, https://sfdcdevelopers.com/wp-content/uploads/2020/06/1-e1592869021568-30x19.png 30w, https://sfdcdevelopers.com/wp-content/uploads/2020/06/1-e1592869021568-780x497.png 780w" sizes="(max-width: 800px) 100vw, 800px" /></figure></li></ul></figure>
  965.  
  966.  
  967.  
  968. <p>According to recent announcement by Salesforce,</p><div class='code-block code-block-1' style='margin: 8px auto; text-align: center; display: block; clear: both;'>
  969. <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  970. <!-- Horizontal -->
  971. <ins class="adsbygoogle"
  972.     style="display:block"
  973.     data-ad-client="ca-pub-2118680650429806"
  974.     data-ad-slot="7906570718"
  975.     data-ad-format="auto"
  976.     data-full-width-responsive="true"></ins>
  977. <script>
  978.     (adsbygoogle = window.adsbygoogle || []).push({});
  979. </script></div>
  980.  
  981.  
  982.  
  983.  
  984. <blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>Code Builder is a full-featured version of Visual Studio Code running completely in the browser and backed by a powerful cloud-hosted developer environment. In just one click, you have a full environment without any setup or configuration. Code Builder comes with everything you need to build applications on the Salesforce Platform, including Salesforce Extensions, the Salesforce CLI, Git integration, and it’s authenticated to your current Salesforce org. What’s really amazing about Code Builder is that it isn’t just a lightweight editor that runs in the browser – every instance of Code Builder is backed by its own powerful Virtual Machine. This means Code Builder will allow you to do everything from simple code edits, to Lightning Web Component development and advanced Apex debugging. It also includes support for Node.js and Java, all without leaving the browser.</p></blockquote>
  985.  
  986.  
  987.  
  988. <h2 class="wp-block-heading">What all stuff you can do with Code Builder?</h2>
  989.  
  990.  
  991.  
  992. <ul><li>Build Lightning Web Components</li><li>Runtime result with SOQL Queries</li><li>Execute code anonymously</li><li>Code Apex, VF Pages, Lightning Components</li><li>Fetch and do changes in all types of metadata</li><li>Application Lifecycle Management</li></ul>
  993.  
  994.  
  995.  
  996. <p>Code Builder and Salesforce Functions are both available in pilot, and DevOps Center will be available in development preview later this year. Additional details can be found on the Salesforce Developer Blog here.</p>
  997.  
  998.  
  999.  
  1000. <p>Get detailed information here: <a href="https://developer.salesforce.com/blogs/2020/06/introducing-code-builder.html" target="_blank" rel="noreferrer noopener nofollow external" data-wpel-link="external">https://developer.salesforce.com/blogs/2020/06/introducing-code-builder.html</a></p>
  1001. <!-- AI CONTENT END 16 -->
  1002. <p>The post <a rel="nofollow" href="https://sfdcdevelopers.com/2020/06/24/salesforce-code-builder-online-ide/" data-wpel-link="internal">Salesforce Code Builder &#8211; Online IDE</a> appeared first on <a rel="nofollow" href="https://sfdcdevelopers.com" data-wpel-link="internal">SFDC Developers</a>.</p>
  1003. ]]></content:encoded>
  1004. <wfw:commentRss>https://sfdcdevelopers.com/2020/06/24/salesforce-code-builder-online-ide/feed/</wfw:commentRss>
  1005. <slash:comments>0</slash:comments>
  1006. <post-id xmlns="com-wordpress:feed-additions:1">1097</post-id> </item>
  1007. <item>
  1008. <title>Dynamically load record using force:recordData</title>
  1009. <link>https://sfdcdevelopers.com/2020/06/20/dynamically-load-record-using-forcerecorddata/</link>
  1010. <comments>https://sfdcdevelopers.com/2020/06/20/dynamically-load-record-using-forcerecorddata/#respond</comments>
  1011. <dc:creator><![CDATA[Vinay Vernekar]]></dc:creator>
  1012. <pubDate>Sat, 20 Jun 2020 07:53:14 +0000</pubDate>
  1013. <category><![CDATA[Aura Component]]></category>
  1014. <category><![CDATA[Lightning]]></category>
  1015. <category><![CDATA[lightning data service]]></category>
  1016. <guid isPermaLink="false">https://sfdcdevelopers.com/?p=1086</guid>
  1017.  
  1018. <description><![CDATA[<p>Load record data dynamically using force:recordData (lightning data service) and without using any apex controller to perform DML operations.</p>
  1019. <p>The post <a rel="nofollow" href="https://sfdcdevelopers.com/2020/06/20/dynamically-load-record-using-forcerecorddata/" data-wpel-link="internal">Dynamically load record using force:recordData</a> appeared first on <a rel="nofollow" href="https://sfdcdevelopers.com" data-wpel-link="internal">SFDC Developers</a>.</p>
  1020. ]]></description>
  1021. <content:encoded><![CDATA[
  1022. <p>You must be aware about standard controller for visualforce pages, it allows you to access record field values, create or update the record without using apex controller. Similar capability is being provided in custom lightning components using force:recordData which is called lightning data service. You need to pass record id which can be captured by implementing component using <strong><a rel="noreferrer noopener nofollow external" href="https://developer.salesforce.com/docs/component-library/bundle/force:hasRecordId/documentation" target="_blank" data-wpel-link="external">force:hasRecordId</a></strong> interface.</p>
  1023.  
  1024.  
  1025.  
  1026. <p>This is straight forward, if the component is placed on record page, record id will be available in <strong>recordId</strong> attribute. Using lightning data service, the field information will be available to use in component. But what if there are list of records and based upon the link click you want to fetch that record information <strong>without using APEX controller</strong>.</p><div class='code-block code-block-1' style='margin: 8px auto; text-align: center; display: block; clear: both;'>
  1027. <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  1028. <!-- Horizontal -->
  1029. <ins class="adsbygoogle"
  1030.     style="display:block"
  1031.     data-ad-client="ca-pub-2118680650429806"
  1032.     data-ad-slot="7906570718"
  1033.     data-ad-format="auto"
  1034.     data-full-width-responsive="true"></ins>
  1035. <script>
  1036.     (adsbygoogle = window.adsbygoogle || []).push({});
  1037. </script></div>
  1038.  
  1039.  
  1040.  
  1041.  
  1042. <p>Here I have build a demo lightning component, having a text field to input id of contact record. Once hit on &#8220;<strong>Fetch Data</strong>&#8221; button, it will fetch <strong>FirstName</strong>, <strong>LastName</strong>, <strong>Email </strong>fields of that contact. This is all done with the help of lightning data service. No apex controller is involved.</p>
  1043.  
  1044.  
  1045.  
  1046. <div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" decoding="async" width="681" height="186" src="https://sfdcdevelopers.com/wp-content/uploads/2020/06/Dynamic_Data_Service.gif" alt="" class="wp-image-1088"/><figcaption>Dynamically fetch contact information</figcaption></figure></div>
  1047.  
  1048.  
  1049.  
  1050. <h4 class="wp-block-heading">Lets jump into the code stating with lightning component.</h4>
  1051.  
  1052.  
  1053.  
  1054. <h2 class="wp-block-heading">Lightning Component: </h2>
  1055.  
  1056.  
  1057.  
  1058. <pre class="wp-block-code"><code lang="jsx" class="language-jsx line-numbers">&lt;aura:component >
  1059.    &lt;aura:attribute name="recordId" type="Id"/>
  1060.    &lt;aura:attribute name="contactRecord" type="Object"/>
  1061.    &lt;aura:attribute name="recordLoadError" type="String"/>
  1062.    
  1063.    &lt;force:recordData aura:id="recordLoader"
  1064.                      recordId="{!v.recordId}"
  1065.                      fields="FirstName,LastName,Email"
  1066.                      targetFields="{!v.contactRecord}"
  1067.                      targetError="{!v.recordLoadError}"
  1068.                      />
  1069.    &lt;lightning:layout multipleRows="true">
  1070.        &lt;lightning:layoutItem size="4" padding="around-small">
  1071.            &lt;lightning:card class="section">
  1072.                &lt;lightning:input label="Enter Contact Id" value="{!v.recordId}"/>
  1073.                &lt;div class="slds-text-align_center slds-p-vertical_x-small">
  1074.                    &lt;lightning:button label="Fetch Data" title="Fetch Data" onclick="{! c.fetchData }"/>
  1075.                &lt;/div>
  1076.            &lt;/lightning:card>
  1077.        &lt;/lightning:layoutItem>
  1078.        &lt;lightning:layoutItem size="8" padding="around-small">
  1079.            &lt;lightning:card class="section">
  1080.                First Name: &lt;lightning:formattedText value="{!v.contactRecord.FirstName}" />&lt;br/>
  1081.                Last Name: &lt;lightning:formattedText value="{!v.contactRecord.LastName}" />&lt;br/>
  1082.                Email: &lt;lightning:formattedText value="{!v.contactRecord.Email}" />
  1083.            &lt;/lightning:card>
  1084.        &lt;/lightning:layoutItem>
  1085.    &lt;/lightning:layout>
  1086. &lt;/aura:component></code></pre>
  1087.  
  1088.  
  1089.  
  1090. <ul><li><strong>force:recordData</strong> is used to fetch the field values based upon the id passed by <strong>recordId </strong>attribute.</li><li>Input contact record id with the help of <strong>lightning:input</strong> and store in <strong>recordId</strong> attribute.</li><li>Button <strong>Fetch Data</strong> is calling <strong>fetchData</strong> method from lightning controller.</li><li>Another lightning section is used to output the contact information fetched by <strong>force:recordData</strong>.</li></ul>
  1091.  
  1092.  
  1093.  
  1094. <h2 class="wp-block-heading">Lightning Controller:</h2>
  1095.  
  1096.  
  1097.  
  1098. <pre class="wp-block-code"><code lang="javascript" class="language-javascript line-numbers">({
  1099. fetchData : function(component, event, helper) {
  1100.        var RecordId = component.get("v.recordId");
  1101. component.find("recordLoader").set("v.recordId", RecordId);
  1102.        component.find("recordLoader").reloadRecord();
  1103. }
  1104. })</code></pre>
  1105.  
  1106.  
  1107.  
  1108. <ul><li>Get the record id inputted by user</li><li>Set the <strong>recordId</strong> attribute of <strong>force:recordData</strong> with newly inputted record id.</li><li>Refresh the record information as per the new id provided. <strong>This is important.</strong></li></ul>
  1109.  
  1110.  
  1111.  
  1112. <h2 class="wp-block-heading">Lightning Style:</h2>
  1113.  
  1114.  
  1115.  
  1116. <pre class="wp-block-code"><code lang="css" class="language-css line-numbers">.THIS .section{
  1117.    padding: 10px;
  1118. }</code></pre>
  1119.  
  1120.  
  1121.  
  1122. <p>This is not mandatory, just a styling to put padding inside lightning:cards.</p>
  1123.  
  1124.  
  1125.  
  1126. <h2 class="wp-block-heading">Lightning Application:</h2>
  1127.  
  1128.  
  1129.  
  1130. <pre class="wp-block-code"><code lang="jsx" class="language-jsx line-numbers">&lt;aura:application extends="force:slds">
  1131.      &lt;c:Dynamic_Data_Service>&lt;/c:Dynamic_Data_Service>
  1132. &lt;/aura:application></code></pre>
  1133.  
  1134.  
  1135.  
  1136. <p>This is not mandatory,  call the component with the name you have given.</p><div class='code-block code-block-3' style='margin: 8px auto; text-align: center; display: block; clear: both;'>
  1137. <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  1138. <!-- Horizontal -->
  1139. <ins class="adsbygoogle"
  1140.     style="display:block"
  1141.     data-ad-client="ca-pub-2118680650429806"
  1142.     data-ad-slot="7906570718"
  1143.     data-ad-format="auto"
  1144.     data-full-width-responsive="true"></ins>
  1145. <script>
  1146.     (adsbygoogle = window.adsbygoogle || []).push({});
  1147. </script></div>
  1148.  
  1149.  
  1150.  
  1151.  
  1152. <p>Above logic you can utilize to provide delete functionality in <strong>lightning:datatable</strong>. I will be having new post on this topic soon.</p>
  1153. <!-- AI CONTENT END 17 -->
  1154. <p>The post <a rel="nofollow" href="https://sfdcdevelopers.com/2020/06/20/dynamically-load-record-using-forcerecorddata/" data-wpel-link="internal">Dynamically load record using force:recordData</a> appeared first on <a rel="nofollow" href="https://sfdcdevelopers.com" data-wpel-link="internal">SFDC Developers</a>.</p>
  1155. ]]></content:encoded>
  1156. <wfw:commentRss>https://sfdcdevelopers.com/2020/06/20/dynamically-load-record-using-forcerecorddata/feed/</wfw:commentRss>
  1157. <slash:comments>0</slash:comments>
  1158. <post-id xmlns="com-wordpress:feed-additions:1">1086</post-id> </item>
  1159. </channel>
  1160. </rss>
  1161.  

If you would like to create a banner that links to this page (i.e. this validation result), do the following:

  1. Download the "valid RSS" banner.

  2. Upload the image to your own server. (This step is important. Please do not link directly to the image on this server.)

  3. Add this HTML to your page (change the image src attribute if necessary):

If you would like to create a text link instead, here is the URL you can use:

http://www.feedvalidator.org/check.cgi?url=https%3A//sfdcdevelopers.com/feed/

Copyright © 2002-9 Sam Ruby, Mark Pilgrim, Joseph Walton, and Phil Ringnalda