<?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 Coveo on Medium]]></title>
        <description><![CDATA[Stories by Coveo on Medium]]></description>
        <link>https://medium.com/@coveo?source=rss-538f0b349e7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*F9kdD9oelcP8nm9P.png</url>
            <title>Stories by Coveo on Medium</title>
            <link>https://medium.com/@coveo?source=rss-538f0b349e7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 15:59:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@coveo/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[Debugging Salesforce Lightning Components]]></title>
            <link>https://medium.com/@coveo/debugging-salesforce-lightning-components-e788e9a673e2?source=rss-538f0b349e7------2</link>
            <guid isPermaLink="false">https://medium.com/p/e788e9a673e2</guid>
            <category><![CDATA[debug]]></category>
            <category><![CDATA[salesforce-lightning]]></category>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[aura]]></category>
            <category><![CDATA[debugging]]></category>
            <dc:creator><![CDATA[Coveo]]></dc:creator>
            <pubDate>Mon, 05 Dec 2016 19:35:41 GMT</pubDate>
            <atom:updated>2016-12-05T19:35:41.503Z</atom:updated>
            <content:encoded><![CDATA[<p>Originally posted: <a href="http://source.coveo.com/2016/12/05/debugging-lightning/">http://source.coveo.com/2016/12/05/debugging-lightning/</a></p><p>For almost a year, Coveo has been offering Lightning components in Salesforce as part of its search offering. Over time, we had to develop new ways to debug these components both inside and outside of a developer environment. Here are some of the tips and tricks that we discovered along the way.</p><h3>Enable the Debug Mode</h3><p>First and foremost, to make things easier to develop, enable the Debug Mode for Lightning Components (found under Setup &gt; Lightning components &gt; Enable lightning debug mode). This helps you understand what is happening, and allows Chrome to load the debugger when needed; minified code can be difficult to load and can make Chrome lag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eYzCpDaE8puJcHe0PWewLg.png" /></figure><h3>Install the Salesforce Lightning Inspector</h3><p>Second, install the Salesforce Lightning Inspector and the Salesforce Developer Tool Suite. The Salesforce Lightning Inspector adds a tab in your Chrome developer tools. Simply browse to a Lightning page, and you will see the Lightning tab appear.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/755/1*Go4oLUP3LOqsnA3vspAIng.png" /></figure><p>The Lightning inspector gives you information about the state of a page or component with the current attribute’s values, information about the performance, a transactions log, an event log, and the current storage.</p><p>If you have the <a href="https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_annotation_AuraEnabled.htm">@AuraEnabled apex method</a>, you will need to check the logs. This is where another extension, the Salesforce Developer Tool suite, comes in handy. The trick is to open the extension while in the Salesforce Administration tool and click New Window in the extension. Set up your user like you normally would with regular Salesforce logs; you can now start having some fun with your community.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*k7UgVx4YSTS5EedNVhWZIA.png" /></figure><p>From there, you’ll be able to see the logs for the Aura Enabled method in real time. Add System.debug(&#39;foobar&#39;) in your Apex method to get the information you need.</p><h3>Debugging JavaScript Errors</h3><p>In your JavaScript code (Renderer, Controller, or Helper), you can start a debugging session using the JavaScript debugger keyword. Simply add it to your code at the place you want to debug; Chrome will stop running the code when hitting the keyword.</p><p>While this always works, it can be slightly cumbersome, for example when you can’t change the code, as in a managed package with Lightning components. To debug these, you must use the source tab in your Chrome Developer Tools. For instance, let’s say that you are trying to debug your Lightning component, and get a big red popup message with a poorly written error message. First, in the Chrome Developer Tools, under the Sources tab, enable the Pause on exceptions button. This pauses the code on the Aura exception thrown when there are exceptions in your components.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*d0j3Gy-1rsOMGKZLh8B1Nw.png" /></figure><p>You can then try to reproduce the issue while the developer tools are open. With the current scope, you’ll get an AuraError with a lot more information about the issue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/593/1*ZIptqle_yrvPLjTQ0Lp8QQ.png" /></figure><p>Most of the time, the stack trace can help you figure out which part of your application is problematic. Using the Go to line shortcut (CTRL+G), you can navigate to the faulty code. If the code isn’t evaluated on runtime, you can also add a breakpoint in the source code.</p><h3>Using Debug Logs</h3><p>When all else fails, you can use the old debug logs. In your code, simply enter console.log(&#39;foobar&#39;) to enter text in the Chrome console when the code is run. I recommend having a debug attribute on the Lightning component that activates error logging. Because Lightning isn’t easy to debug, you should really consider having tracing logs in as many places as possible in your JavaScript methods.</p><p>This is what I got! If I find any other or better ways, I’ll update this post.</p><p>Happy debugging!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e788e9a673e2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Salesforce Lightning Community Builder is a Game-Changer]]></title>
            <link>https://medium.com/@coveo/why-salesforce-lightning-community-builder-is-a-game-changer-27946b863e4a?source=rss-538f0b349e7------2</link>
            <guid isPermaLink="false">https://medium.com/p/27946b863e4a</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[dreamforce]]></category>
            <category><![CDATA[saas]]></category>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[salesforce-lightning]]></category>
            <dc:creator><![CDATA[Coveo]]></dc:creator>
            <pubDate>Fri, 02 Dec 2016 16:16:22 GMT</pubDate>
            <atom:updated>2016-12-02T16:17:06.618Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*F2fjkPnwPqX3lc0zYR4iMg.png" /></figure><p>Originally posted on <a href="http://blog.coveo.com/">http://blog.coveo.com</a>, October 15th, 2015.</p><p>I attended my first Dreamforce a few weeks back, and Salesforce puts on quite a show. But beyond all the keynotes and parties, I was most excited and intrigued by what Salesforce is up to with Community Cloud.</p><p>Ever since the debut of Salesforce Portals (re-architected and renamed “Communities” in the Summer ’13 release), Salesforce Community Cloud has grown in popularity and capability. As organizations look to provide ever-smarter and more engaging self-serve resources to their customers, partners, and employees, Communities has gained greater prominence among the Salesforce Clouds.</p><p>But building a really great Salesforce Community always required some significant technical chops, as the only options were to use some combo of <a href="https://developer.salesforce.com/docs/atlas.en-us.fundamentals.meta/fundamentals/adg_intro.htm">Force.com</a>, <a href="https://developer.salesforce.com/page/An_Introduction_to_Visualforce">VisualForce</a>, and <a href="https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/">Apex code</a>. So really dynamic communities were only possible for organizations with a technical staff that knew how to use these frameworks, or those with the resources to hire a systems integrator.</p><p>Over the years, Salesforce worked hard to make it easier to build a Community in a more point-and-click, WYSIWYG way, with offerings like Site Studio and <a href="https://developer.salesforce.com/blogs/tech-pubs/2012/10/the-new-site-com-workbook-build-websites-with-ease.html">site.com</a>. These were solid tools — and helpful for many — but the majority of folks that wanted a really sophisticated Community usually still went the VisualForce route.</p><p>In May 2015, Salesforce <a href="http://www.newsfactor.com/story.xhtml?story_id=12000BSW6EE0#">announced Lightning Community Builder</a>, a completely new framework for building Communities. And I think it’ll be a game changer. Here’s why….</p><p>With Lightning Community Builder, Salesforce didn’t simply try to make Community layouts easier to edit; they built a wholly new, “componentized” framework. Each of these components provides a unique set of capabilities, and admins can simply drag and drop components onto their pages to deliver those capabilities to members precisely how and where they want them.</p><p>Even cooler, Salesforce architected Lightning so third-parties can build new components. And with the launch of the <a href="https://appexchange.salesforce.com/collection/components">AppExchange for Components</a>, Salesforce has created a marketplace for third-party components that gives community managers fast access to a whole bunch of cool capabilities they can easily integrate without help from their IT department or SI.</p><h3>When we first heard about Salesforce Lightning Community Builder here at Coveo, we were pretty intrigued.</h3><p>Coveo has been a Salesforce technology partner for a few years now; our <a href="http://www.coveo.com/en/solutions/coveo-for-salesforce?utm_source=blog&amp;utm_medium=blog"><em>Coveo for Salesforce</em></a> apps are intelligent search solutions that enable organizations to deliver unified, secure search across virtually any enterprise system, source, or cloud application…all from their Salesforce UI. <em>(So basically we turn Salesforce into your single “window” to enterprise content. Note to any folks out there wanting to implement Salesforce but not sure they want to deal with migrating all that legacy data, with a solution like this you don’t have to. Just keep it where it is and index it.)</em></p><p>Beyond simply search, <em>Coveo for Salesforce</em> <a href="http://www.coveo.com/solutions/coveo-for-salesforce/community-cloud?utm_source=blog&amp;utm_medium=blog">recommends helpful content</a> to users (community members, support analysts, etc.) based upon their unique context or case-at-hand. Plus, it provides the usage analytics that admins need to understand what articles, docs, and videos are actually driving self-service on the Community and case resolution in the contact center. (And all easily integrated with Wave.)</p><blockquote>Salesforce uses Coveo internally to power search on their <a href="https://help.salesforce.com/apex/HTHome">help &amp; training site</a> and for their 900+ support analysts globally. It’s led to some big boosts in case deflection and agent productivity at Salesforce</blockquote><p>So anyway, when we heard about Lightning Community Builder and the new exchange we were quite excited, and we started working with our friends on the Salesforce product team to make sure <em>Coveo for Salesforce</em> would fully support the new Lightning Framework. The collaboration was a success and we even presented a live demo of a Coveo-powered Lightning Community at DF15.</p><p>While working with the Salesforce team preparing for DF15, I had a chance to look “under the hood” to see how they actually put Lightning Community Builder together, and I think they got it right. It delivers the flexibility and configurability managers need to build great community experiences.</p><p>I’m still curious to see how long it will take Salesforce’s bigger customers to jump on the bandwagon and migrate their custom VisualForce communities to Lightning. Time will tell on that one, but given what I’ve seen of this new framework, the smart money is on making the transition sooner rather than later. Lightning is too good not to consider a priority.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=27946b863e4a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>