<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by My Dao on Medium]]></title>
        <description><![CDATA[Stories by My Dao on Medium]]></description>
        <link>https://medium.com/@my.ng.dao?source=rss-b34871b8fe08------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*HBHkYmZA2N9cPWKDwPHBUQ.png</url>
            <title>Stories by My Dao on Medium</title>
            <link>https://medium.com/@my.ng.dao?source=rss-b34871b8fe08------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 22:48:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@my.ng.dao/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Salesforce-Stripe Integration for an e-commerce process using LWC]]></title>
            <link>https://medium.com/@my.ng.dao/salesforce-stripe-integration-for-an-e-commerce-process-using-lwc-758a37d8b383?source=rss-b34871b8fe08------2</link>
            <guid isPermaLink="false">https://medium.com/p/758a37d8b383</guid>
            <category><![CDATA[lwc-development]]></category>
            <category><![CDATA[salesfroce]]></category>
            <category><![CDATA[stripe-payment]]></category>
            <category><![CDATA[stripe-integration]]></category>
            <dc:creator><![CDATA[My Dao]]></dc:creator>
            <pubDate>Mon, 15 Jul 2024 01:36:38 GMT</pubDate>
            <atom:updated>2024-07-15T01:36:38.572Z</atom:updated>
            <content:encoded><![CDATA[<p>This Salesforce-Stripe Integration Demo App is a simple demonstration of how Salesforce’s Lightning Web Component (LWC) framework can be leveraged to create a user-friendly, efficient, and modular application that supports e-commerce processes by integrating with Stripe for payment.</p><p>The App focuses on the user interface and front-end logic, allowing users to select products, view their cart, and proceed to checkout using Stripe without storing any submitted data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZWXp56CyfEilppGKsFq_pQ.gif" /></figure><p>For Live Demo, please visit <a href="https://gmailcomdev-22f-dev-ed.my.site.com/paycalculator/">my demo site</a>.</p><h3>App Overview</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sQljPcmiA9NdPf70.png" /></figure><p>Check out my GitHub profile <a href="https://github.com/my-dao/Salesforce-LWC-Stripe-Integration">here</a> for the source code of this project and refer to the README for an explanation of its structure and design.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=758a37d8b383" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Salesforce Certified JavaScript Developer I certification Notes — Part 2]]></title>
            <link>https://medium.com/@my.ng.dao/salesforce-certified-javascript-developer-i-certification-notes-part-2-ebc4214a2546?source=rss-b34871b8fe08------2</link>
            <guid isPermaLink="false">https://medium.com/p/ebc4214a2546</guid>
            <category><![CDATA[salesforce-javascript]]></category>
            <dc:creator><![CDATA[My Dao]]></dc:creator>
            <pubDate>Mon, 03 Jun 2024 13:07:07 GMT</pubDate>
            <atom:updated>2024-06-03T13:30:14.203Z</atom:updated>
            <content:encoded><![CDATA[<h3>Salesforce Certified JavaScript Developer I certification Notes — Part 2</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kAomb73TPiqpjfpKD7Vh7A.png" /><figcaption>Source: <a href="https://trailhead.salesforce.com/help?article=Salesforce-Certified-JavaScript-Developer-I-Exam-Guide">https://trailhead.salesforce.com/help?article=Salesforce-Certified-JavaScript-Developer-I-Exam-Guide</a></figcaption></figure><p><strong>Key topic — Objects, Functions, and Classes ( 25% of the exam)</strong></p><p><strong>Subtopic 1: Accessing properties and methods of an object.</strong></p><p>We examine the Student class and its instance named student1. We need to access four properties: name, age, getInfo, and info of student1. The following code snippet illustrates how to access these properties:</p><pre>class Student{<br>    constructor(name, age) {<br>        this.name = name;<br>        this.age = age;<br>    }<br><br>    // Method to get name and age<br>    getInfo() {<br>        return `${this.name} is ${this.age} years old`;<br>    }<br><br>    // Getter to get name and age<br>    get info() {<br>        return `${this.name} is ${this.age} years old`;<br>    }<br>}<br><br>const student1 = new Student(&#39;John&#39;, 20);<br><br>console.log(student1.name); // Access property &#39;name&#39; using dot notation<br>console.log(student1[&#39;name&#39;]); // Access property &#39;name&#39; using bracket notation<br>console.log(student1.age); //  Access property &#39;age&#39; using dot notation<br>console.log(student1[&#39;age&#39;]); // Access property &#39;age&#39; using bracket notation<br>console.log(student1.getInfo()); // Invoke a normal method with parentheses<br>console.log(student1.info); // Access a getter as a property</pre><p>It is straight forward to access <strong><em>name</em></strong> and <strong><em>age</em> </strong>by using dot notation or bracket notation. However, for <strong>getInfo </strong>and <strong>info </strong>which<strong><em> </em></strong>both look the same with parentheses, but they are invoked differently.</p><p><strong>getInfo </strong>is a regular method, it is definitely invoked with parentheses.</p><pre>// Invoke a normal method with parentheses<br>student1.getInfo();</pre><p><strong>info </strong>is a getter, which allows the method to be accessed like a property. Unlike regular methods that need to be invoked with parentheses, getters are accessed as if they were properties.</p><pre>// Access a getter as a property<br>student1.info;</pre><p><strong>Subtopic 2: Common Object methods</strong></p><ol><li><strong>Object.assign()</strong></li></ol><p><em>(This method is simple but you may see it a couple of times in your exam)</em></p><p>The Object.assign() static method copies all enumerable own properties from one or more source objects to a designated target object, and it <strong>returns the updated target object</strong>.</p><p>Properties in the target object are overwritten by properties in the sources if they have the same <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys">key</a>.</p><p><em>Syntax (source: </em><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign"><em>MDN Web Docs</em></a><em>)</em></p><pre>Object.assign(target)<br>Object.assign(target, source1)<br>Object.assign(target, source1, source2)<br>Object.assign(target, source1, source2, /* …, */ sourceN)</pre><p><em>Examples</em></p><pre><br>// Create object using Constructor Function <br>function Student () {<br>        this.name = &#39;Alice&#39;;<br>        this.age = 20;<br>}<br><br>const student1 = new Student();<br><br>// Example 1: Clone student1 using target as an empty array<br><br>const student2 = Object.assign({}, student1);<br>console.log(student1);  // Outputs: Student { name: &#39;Alice&#39;, age: 20 }<br>console.log(student2);   // Outputs: { name: &#39;Alice&#39;, age: 20}<br>console.log(student1 === student2);  // Outputs: false because student1 &amp; 2 are separate objects in memory.<br><br>// Example 2: This approach will return the same object<br>const student3 = Object.assign(student1);<br>console.log(student1);  // Outputs: Student { name: &#39;Alice&#39;, age: 20 }<br>console.log(student3);   // Outputs: Student { name: &#39;Alice&#39;, age: 20 }<br>console.log(student1 === student3);  // Outputs: true because student1 &amp; 3 point to the same memory location.<br><br>// Example 3: use Object.assign() between 2 objects. <br>// Target object has new properties from source object<br>// and its method is overwritten.<br><br>// Add method &#39;greeting&#39; for student1 object<br>student1.greeting = () =&gt; { console.log(&#39;I am Student 1!&#39;); };<br><br>class Athlete {<br>    constructor() {<br>        this.location = &#39;Sydney&#39;;<br>    }<br>}<br><br>// Create an instance of Athlete<br>const athlete1 = new Athlete();<br><br>// Add method with the same name with &#39;greeting&#39; method of student1<br>athlete1.greeting = () =&gt; { console.log(&#39;I am Athlete 1!&#39;); };<br>// Copy properties and methods of athlete1 to student1<br>Object.assign(student1, athlete1);//student1 is target, athlete1 is source<br>console.log(student1);// Outputs: Student {name: &#39;Alice&#39;,age: 20, getName: [Function (anonymous)], location: &#39;Sydney&#39;}<br>// student1&#39;s greeting() has been overwritten by athlete1&#39;s greeting() <br>student1.greeting(); // Outputs: I am Athlete 1!</pre><p><strong>2. Object.seal()</strong></p><p>This method seals an object. When an object is sealed, we <strong>cannot add </strong>new properties or <strong>remove</strong> existing ones, and cannot reconfigure or reassign its prototype. However, we <strong>can still modify the values of existing properties</strong> if they are writable.</p><pre>function Student () {<br>        this.name = &#39;Alice&#39;;<br>        this.age = 20;<br>}<br><br>const student1 = new Student();<br><br>Object.seal(student1);<br><br>student1.name = &#39;Bob&#39;;  // can modify existing properties<br>student1.major = &#39;Biology&#39;; // cannot add new properties<br>delete student1.name; // cannot delete existing properties<br><br>console.log(student1); <br>// Outputs: Student { name: &#39;Bob&#39;, age: 20 } </pre><p><strong>3. Object.freeze()</strong></p><p>Same as Object.seal() but stricter when we cannot even modify existing properties. We cannot add new, delete existing properties and modify existing ones.</p><pre>function Student () {<br>        this.name = &#39;Alice&#39;;<br>        this.age = 20;<br>}<br><br>const student1 = new Student();<br><br>Object.freeze(student1);<br><br>student1.name = &#39;Bob&#39;;  // cannot modify existing properties<br>student1.major = &#39;Biology&#39;; // cannot add new properties<br>delete student1.name; // cannot delete existing properties<br><br>// student1 remains unchanged because it is frozen<br>console.log(student1); <br>// Outputs: Student { name: &#39;Alice&#39;, age: 20 }</pre><p>Although the exam covers a wide range of more complex topics, the above examples illustrate some such fundamental but essential concepts related to <strong>Objects, Functions, and Classes </strong>key topic which I think related to the exam requirements. More related scenarios will be provided in the subsequent sections.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ebc4214a2546" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Salesforce Certified JavaScript Developer I certification Notes — Part 1]]></title>
            <link>https://medium.com/@my.ng.dao/salesforce-certified-javascript-developer-i-certification-notes-part-1-d1d350c661d9?source=rss-b34871b8fe08------2</link>
            <guid isPermaLink="false">https://medium.com/p/d1d350c661d9</guid>
            <category><![CDATA[salesforce-javascript]]></category>
            <dc:creator><![CDATA[My Dao]]></dc:creator>
            <pubDate>Wed, 29 May 2024 04:53:01 GMT</pubDate>
            <atom:updated>2024-06-07T04:29:31.144Z</atom:updated>
            <content:encoded><![CDATA[<h3>Salesforce Certified JavaScript Developer I certification Notes — Part 1</h3><p>As I have recently passed the Salesforce Certified JavaScript Developer I certification, I think it is crucial to jot down notes for my future reference and to assist anyone who may be interested in this exam.</p><p>This article will address the following points:</p><ul><li>Exam guide</li><li>Learning resources</li><li>General notes</li><li>Related scenarios</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lrt14sG62iR0oHe5JJ-Q6g.png" /><figcaption>Source: <a href="https://trailhead.salesforce.com/help?article=Salesforce-Certified-JavaScript-Developer-I-Exam-Guide">https://trailhead.salesforce.com/help?article=Salesforce-Certified-JavaScript-Developer-I-Exam-Guide</a></figcaption></figure><h3><strong>Exam guide</strong></h3><p>The exam guide and study links in Trailhead are included in this <a href="https://trailhead.salesforce.com/help?article=Salesforce-Certified-JavaScript-Developer-I-Exam-Guide">Salesforce Certified JavaScript Developer I Exam Guide</a>.</p><h3><strong>Learning resources</strong></h3><p>Below are the resources I used for studying:</p><p><a href="https://trailhead.salesforce.com/content/learn/trails/study-for-the-salesforce-javascript-developer-i-exam"><em>Salesforce Trailhead</em></a></p><p>Salesforce Trailhead provides a tailored trailmix specifically designed to prepare for this certification, which includes a series of modules and resources.</p><p><a href="https://www.salesforcetroop.com/jsvideo/"><em>Salesforce Troop</em></a></p><p>Salesforce Troop YouTube video gives us detailed training on JavaScript. The 6-part-set of JavaScript MCQ Practice questions also helps us explore JavaScript fundamentals.</p><p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript"><em>MDN Web Docs</em></a></p><p>This resource provides a foundational understanding of JavaScript, detailing its syntax, control structures, and core concepts like objects, functions, and events, which are crucial for both client-side and server-side development.</p><h3><strong>General notes</strong></h3><ul><li>The exam scope is wide: it requires thorough practice and research on JavaScript.</li><li>Nothing related to Salesforce: this is entirely JavaScript fundamentals.</li></ul><h3><strong>Related scenarios</strong></h3><p>Below are some examples of scenarios which may be related to exam topics:</p><ul><li><strong>Object:</strong></li></ul><ol><li>When we are given an object, how to access its properties, especially when the property is a <em>function</em> or a <em>getter</em>?</li><li>What happen if we use <em>Object.assign(), Object.seal(), Object.freeze(), JSON.parse(), and JSON.stringify()</em>? especially when using <em>JSON.parse(JSON.stringify(objectName) </em>and vice versa? What is the result if we access properties after that?</li></ol><ul><li><strong>Array:</strong></li></ul><ol><li>Which method to modify, add, remove elements of an array?</li><li>Which method to prevent from modifying, adding, and removing elements of an array?</li><li>Among 4 methods, which method does not modify the original array?</li><li>Among 4 methods, which method modifies the original array?</li><li>Which method to create a new array which is not a reference to the original array?</li><li>Which method to sort an array? ascending and descending.</li><li>How to know if an array contains a specified value?</li><li>Reduce() method: may occur several times in the test.</li><li>Filter() method: an important method which may be also tested.</li></ol><ul><li><strong>String</strong></li></ul><p>1. How to concatenate strings?</p><p>2. How to return the part of a string?</p><p>3. How to find the index of a substring?</p><p>4. How to change a number to String? and vice versa</p><ul><li><strong>Asynchronous Programming</strong></li></ul><p>There may be questions asking about the result when a block of codes execute regarding:</p><ol><li>Promise()</li><li>async function</li><li>setTimeout()</li><li>setInterval()</li></ol><p>Understanding <strong>await</strong> keyword meaning and location in async function may also contribute to our success in this exam.</p><ul><li><strong>JavaScript Frontend and Backend framework:</strong></li></ul><p>Knowing names of JavaScript Frontend or Backend frameworks may help us pass one challenge.</p><ul><li><strong>Debug</strong></li></ul><p>There may be some questions regarding try-catch blocks.</p><ul><li><strong>Testing</strong></li></ul><p>There may be some questions regarding assertion.</p><ul><li><strong>Document Object Model (DOM)</strong></li></ul><p><em>We should know:</em><br> — How to differentiate between<strong> DOMContentLoaded</strong> event vs <strong>load </strong>event.</p><p>— How to use:</p><ul><li>querySelector()</li><li>getElementsByClassName()</li><li>getElementsByName()</li><li>addEventListener()</li></ul><p>— Event Bubbling and Event Capturing.</p><p>=&gt; And there are a lot more scenarios…</p><p>My subsequent articles will provide detailed scenarios/examples that resemble the test requirements.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d1d350c661d9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Claim Management App using Salesforce LWC]]></title>
            <link>https://medium.com/@my.ng.dao/claim-management-app-using-salesforce-lwc-cf74188e89c1?source=rss-b34871b8fe08------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf74188e89c1</guid>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[salesforce-lwc]]></category>
            <dc:creator><![CDATA[My Dao]]></dc:creator>
            <pubDate>Sun, 21 Apr 2024 23:28:25 GMT</pubDate>
            <atom:updated>2024-04-22T02:29:14.554Z</atom:updated>
            <content:encoded><![CDATA[<p>Have you ever been curious about how the apps you use every day are made? Well, I sure was! My curiosity inspired me to be a Salesforce developer who can create user friendly apps for our daily needs or business processes. The idea for this app came from my own experience with an insurance claim. When I see the UI, <em>Salesforce</em> <em>lightning-combobox, lightning-progress-indicator, lightning-button, lightning-radio-group </em>popped up in my mind.</p><p>This App is a demonstration of how Salesforce’s Lightning Web Component (LWC) framework can be leveraged to create a user-friendly, efficient, and modular application that supports complex business processes.</p><p>For Live Demo, please visit <a href="https://gmailcomdev-22f-dev-ed.my.site.com/paycalculator/">my demo site</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zgS-6J1g2G1A1ZSM8QT-jQ.gif" /><figcaption>Demo of the App’s workflow</figcaption></figure><p>Below is the structure of LWC components</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nJYw6hY4YB14cNb2oQCQbw.png" /><figcaption>Structure of LWC components</figcaption></figure><p>For demo purpose, the App focuses on the user interface and front-end logic without storing any submitted data.</p><p>Check out my GitHub profile <a href="https://github.com/my-dao/Salesforce-LWC-Claim-Management">here </a>for the source code of this project and refer to the README for an explanation of its structure and design.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf74188e89c1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Simple Pay Calculator using Salesforce LWC]]></title>
            <link>https://medium.com/@my.ng.dao/a-simple-pay-calculator-using-salesforce-lwc-9841df29f2c9?source=rss-b34871b8fe08------2</link>
            <guid isPermaLink="false">https://medium.com/p/9841df29f2c9</guid>
            <category><![CDATA[lwc]]></category>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[pay-calculator]]></category>
            <dc:creator><![CDATA[My Dao]]></dc:creator>
            <pubDate>Sat, 20 Jan 2024 07:30:37 GMT</pubDate>
            <atom:updated>2024-01-20T11:47:59.535Z</atom:updated>
            <content:encoded><![CDATA[<p>I have recently completed my personal hands-on project, <a href="https://github.com/my-dao/Salesforce-LWC-Pay-Calculator"><strong>Salesforce-LWC-Pay-Calculator</strong></a>, designed to convert gross pay to net pay<strong> in the Australian context</strong>, for my learning purposes. This project can be a reference for LWC beginners.</p><p>This tool already takes into account critical elements like superannuation and the option for Medicare Levy exemption. However, it’s important to note a few things:</p><ol><li>This is a basic demonstration/estimation, suitable for a quick overview of how we convert gross base salary offered from Employers to net take home amount. It doesn’t cover complexities such as Dependant children, Student loans, Senior and Pensioner Tax Offset (SAPTO), Overtime and any other arising amount.</li><li>The calculations are aligned with the tax regulations of the 2023–2024 financial year. Update the logic for other tax years may be needed.</li><li>I rounded Income Tax and Total Taxes based on this rule: Amounts under 50 cents are rounded to zero. Amounts from 50 to 99 cents are rounded to the next dollar.</li><li>The solution is designed in the context that in a year, there are: 260 working days, 52 weeks, 26 fortnights, 12 months and in a week, there are 38 working hours. This configuration is included in custom metadata which can be easily changed based on individual needs.</li></ol><p><strong>Below is my demonstration of how the tool’s calculation matches </strong><a href="https://www.seek.com.au/career-advice/page/salary-calculator"><strong>Seek Salary and Pay Calculator</strong></a><strong> ’s calculation.</strong></p><p><strong>Scenario 1: The salary is $A60,000 excluding Superannuation</strong></p><p><strong>My tool’s calculation</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TC_4TUw4AQqmQks0My--8g.png" /><figcaption>My tool’s calculation for salary of $A60,000 excluding Superannuation</figcaption></figure><p><a href="https://www.seek.com.au/career-advice/page/salary-calculator"><strong>Seek Salary and Pay Calculator</strong></a>’s<strong> calculation</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q5hTTAwzPfFMPzhvedvj3Q.png" /><figcaption><a href="https://www.seek.com.au/career-advice/page/salary-calculator"><strong>Seek Salary and Pay Calculator</strong></a>’s calculation for salary of $A60,000 excluding Superannuation</figcaption></figure><p><strong>Scenario 2: The salary is $A60,000 including Superannuation</strong></p><p><strong>My tool’s calculation</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gcl5knOraoD2as9U3IYWiw.png" /><figcaption>My tool’s calculation for salary of $A60,000 including Superannuation</figcaption></figure><p><a href="https://www.seek.com.au/career-advice/page/salary-calculator"><strong>Seek Salary and Pay Calculator</strong></a>’s<strong> calculation</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5r5r0dumFRMXrSYFExCZzg.png" /><figcaption><a href="https://www.seek.com.au/career-advice/page/salary-calculator"><strong>Seek Salary and Pay Calculator</strong></a>’s calculation for salary of $A60,000 including Superannuation</figcaption></figure><p><strong>Check out my GitHub profile </strong><a href="https://github.com/my-dao/Salesforce-LWC-Pay-Calculator"><strong>here</strong></a><strong> </strong>for the source code and refer to the README for an explanation of its structure and design.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9841df29f2c9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sentiment Analysis with Salesforce LWC and OpenAI API]]></title>
            <link>https://medium.com/@my.ng.dao/sentiment-analysis-with-salesforce-lwc-and-openai-api-e9623cc60554?source=rss-b34871b8fe08------2</link>
            <guid isPermaLink="false">https://medium.com/p/e9623cc60554</guid>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[lwc]]></category>
            <category><![CDATA[openai]]></category>
            <dc:creator><![CDATA[My Dao]]></dc:creator>
            <pubDate>Wed, 03 Jan 2024 06:10:28 GMT</pubDate>
            <atom:updated>2024-01-03T06:18:17.818Z</atom:updated>
            <content:encoded><![CDATA[<p>In the realm of customer service and product development, understanding customer feedback is essential but time-consuming. I’ve developed a simple<strong> </strong><a href="https://github.com/my-dao/Salesforce-Sentiment-Analysis"><strong>Sentiment Analysis LWC </strong></a>that integrates Salesforce with OpenAI to analyse sentiment from survey responses. This LWC is designed to analyse and understand customer feedback.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p3_mMehA6qDKeSwTJDnR6w.png" /></figure><p>Check out my GitHub profile <a href="https://github.com/my-dao/Salesforce-Sentiment-Analysis">here </a>for the source code and refer to the README for an explanation of its structure and design.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e9623cc60554" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Leave Management App using Salesforce LWC]]></title>
            <link>https://medium.com/@my.ng.dao/leave-management-app-using-salesforce-lwc-34c692c1a05f?source=rss-b34871b8fe08------2</link>
            <guid isPermaLink="false">https://medium.com/p/34c692c1a05f</guid>
            <category><![CDATA[leave-application]]></category>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[lwc]]></category>
            <dc:creator><![CDATA[My Dao]]></dc:creator>
            <pubDate>Sun, 17 Dec 2023 01:52:34 GMT</pubDate>
            <atom:updated>2023-12-17T02:17:23.351Z</atom:updated>
            <content:encoded><![CDATA[<p>As a Salesforce Developer, one of our potential assignments could be to develop a Leave Management App within the Salesforce platform.</p><p>I have just completed a personal project and demo application for my learning purposes. This project can be a reference for LWC beginners.</p><p>It’s a basic yet functional tool for handling leave requests, tailored to demonstrate the essentials of a leave management system within an organization. The app, designed with user-friendliness in mind, serves to illustrate how employees and managers can interact with leave balances and requests. Structured as a Salesforce Lightning Web Component (LWC), this application offers a practical example of LWC capabilities in implementing core features of a leave management system.</p><p>Below is the UI of this App</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CiGXz0mFr5e6o7Dzd-H7aQ.png" /></figure><p>Check out my GitHub profile <a href="https://github.com/my-dao/Leave-Management-LWC-App">here</a> for the source code of this project and refer to the README for an explanation of its structure and design.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34c692c1a05f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Error #403 in calling Xero APIs]]></title>
            <link>https://medium.com/@my.ng.dao/error-403-in-calling-xero-apis-88a958928bf4?source=rss-b34871b8fe08------2</link>
            <guid isPermaLink="false">https://medium.com/p/88a958928bf4</guid>
            <category><![CDATA[error]]></category>
            <category><![CDATA[xero-integration]]></category>
            <category><![CDATA[salesforce-integration]]></category>
            <dc:creator><![CDATA[My Dao]]></dc:creator>
            <pubDate>Mon, 04 Dec 2023 14:46:05 GMT</pubDate>
            <atom:updated>2023-12-04T14:46:05.703Z</atom:updated>
            <content:encoded><![CDATA[<p>Recently, I worked on a Salesforce — Xero integration project and encountered a problem when calling the Xero API to create a contact as below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bGL8AveClwAL8Eqrcm906g.png" /><figcaption>Error 403: Forbidden —” AuthenticationUnsuccessful”</figcaption></figure><p>Initially, I spent a considerable amount of time troubleshooting from refreshing access token, adjusting scopes in Environments to checking all API call parameters. Despite these efforts, the error persisted.</p><p>After numerous trials and errors, I tried <a href="https://api-explorer.xero.com/">API explorer</a> and realized the root cause of the issue: I was missing a crucial parameter in the header of my API call — the “xero-tenant-id”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vpt9hzO0rLbvuXw1IDaeRg.png" /><figcaption>Request Headers in <a href="https://api-explorer.xero.com/">API explorer</a> showing the presence of “xero-tenant-id”</figcaption></figure><p>According to <a href="https://developer.xero.com/documentation/guides/oauth2/auth-flow/">Xero Documentation</a>, The “xero-tenant-id” is a required header parameter when making API calls to Xero. The method to get this Tenant Id is also guided in this <a href="https://developer.xero.com/documentation/guides/oauth2/auth-flow/">Xero Documentation</a>. After adding this header parameter, I successfully created a new contact in Xero.</p><p>I hope this post serves as a helpful tip for developers encountering the 403 error, providing insights and solutions to effectively resolve this issue.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88a958928bf4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create an Invoice Template from Visualforce Page]]></title>
            <link>https://medium.com/@my.ng.dao/create-an-invoice-template-from-visualforce-page-3603146d20a4?source=rss-b34871b8fe08------2</link>
            <guid isPermaLink="false">https://medium.com/p/3603146d20a4</guid>
            <category><![CDATA[pdf-invoice]]></category>
            <category><![CDATA[salesforce-visualforce]]></category>
            <dc:creator><![CDATA[My Dao]]></dc:creator>
            <pubDate>Thu, 16 Nov 2023 23:06:45 GMT</pubDate>
            <atom:updated>2023-11-18T13:14:04.099Z</atom:updated>
            <content:encoded><![CDATA[<p>This post is to share my project on GitHub <a href="https://github.com/my-dao/Salesforce-PDF-Invoice-Template">Salesforce-PDF-Invoice-Template</a></p><p>This repository provides a ready-to-use invoice template for Salesforce users, complete with a controller for customization and a static resource for Company logo.</p><p>Designed to be rendered as a PDF, it is convenient for billing needs and for Salesforce developers looking for a ready-to-use solution or a starting point for more complex customization.</p><p>Below is the screenshot of the invoice template in PDF format.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t3eqiU1npuMcqQXGyjzoZA.png" /></figure><p><strong>Check it out here: </strong><a href="https://github.com/my-dao/Salesforce-PDF-Invoice-Template">Salesforce-PDF-Invoice-Template</a></p><p>Hope this can save your time from designing and writing codes from scratch when creating Invoice Template from Visualforce Page.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3603146d20a4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Display LWCs in Salesforce Sites without using Visualforce Pages]]></title>
            <link>https://medium.com/@my.ng.dao/display-lwcs-in-salesforce-sites-without-using-visualforce-pages-bd0fdf5525e4?source=rss-b34871b8fe08------2</link>
            <guid isPermaLink="false">https://medium.com/p/bd0fdf5525e4</guid>
            <category><![CDATA[salesforce-lwc]]></category>
            <dc:creator><![CDATA[My Dao]]></dc:creator>
            <pubDate>Sun, 12 Nov 2023 22:26:39 GMT</pubDate>
            <atom:updated>2023-11-16T12:24:48.834Z</atom:updated>
            <content:encoded><![CDATA[<p>Recently I took an unoptimized approach in displaying LWCs in Salesforce public sites using Visualforce Pages which is the most popular online suggestion and this approach took me quite a lot of time. Little did I know that there was a faster alternative. Fortunately, I received advice on a more efficient solution that ultimately saved me time.</p><p>So I write this post to share this approach for beginners working with Sites like me.</p><p>Scenario:</p><p><strong>I was assigned a task to write 2 LWCs and display them in 2 existing public sites.</strong></p><p>I went on searching and lots of suggestions came up which advised embedding these LWCs in Visualforce Page and using Lightning Out to display in the public sites. I finished the task with this approach but with considerable time and effort when I had to create a Lightning App, 2 VF pages and their controllers and embed 2 LWCs in these 2 VF pages. Additionally, I had to grant permission for site guest users to access these VF pages and their Apex classes.</p><p>However, for this scenario, the quicker and simpler approach is using Experience Builder as below:</p><ol><li>Have your LWC’s xml file configured as below:</li></ol><pre>&lt;isExposed&gt;true&lt;/isExposed&gt;<br>&lt;targets&gt;<br>&lt;target&gt;lightningCommunity__Page&lt;/target&gt;<br>&lt;/targets&gt;                        </pre><p>2. Go to Setup -&gt; type All Sites. Click on Builder to edit the page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*e9AfGfZkHyCInwAD" /></figure><p><em>Notes: If you do not see All Sites in Setup, probably you have not enabled Digital Experiences. To do this, in Setup, type “Experience” to have Digital Experiences displayed and toggle Enable Digital Experiences. Now you can see All Sites in Setup.</em></p><p>3. Choose your LWC to add into the public site.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qg-NvgbOzafxzG1h" /></figure><p>4. Your LWC will appear like this in Builder</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AdjiJg9PnLrvEnPc" /></figure><p>And like this in your site</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*L3-GDMBaGR8HQWzZ" /></figure><p>In conclusion, using Visualforce Page to add LWC in public sites still works today, but I personally prefer using Experience Builder<strong> </strong>without using Visualforce Page.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bd0fdf5525e4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>