<?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 Devendar Gone on Medium]]></title>
        <description><![CDATA[Stories by Devendar Gone on Medium]]></description>
        <link>https://medium.com/@technophile?source=rss-d6a17a8fa05d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*olLrhk_cn-ftuzI-lNnVdA.jpeg</url>
            <title>Stories by Devendar Gone on Medium</title>
            <link>https://medium.com/@technophile?source=rss-d6a17a8fa05d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 08:32:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@technophile/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[Hook for the page unload control in LWC/Lightning component]]></title>
            <link>https://technophile.medium.com/hook-for-the-page-unload-control-in-lwc-lightning-component-43965ac3bf87?source=rss-d6a17a8fa05d------2</link>
            <guid isPermaLink="false">https://medium.com/p/43965ac3bf87</guid>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[lwc]]></category>
            <category><![CDATA[aura]]></category>
            <category><![CDATA[onload]]></category>
            <dc:creator><![CDATA[Devendar Gone]]></dc:creator>
            <pubDate>Tue, 21 Jun 2022 08:06:00 GMT</pubDate>
            <atom:updated>2022-06-21T08:06:00.359Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/446/1*J4BpnxMkG2cqhyU_iL37gg.png" /><figcaption>page unload control in LWC/Lightning component</figcaption></figure><p>In both Aura and Web Components, you simply add an event listener to window directly.</p><pre>// LWC<br>connectedCallback() {<br>  window.addEventListener(&#39;beforeunload&#39;, this.beforeUnloadHandler.bind(this));<br>}</pre><pre>beforeUnloadHandler(event) {<br>  console.log(&#39;before unload handler has been called.&#39;);<br>}<br>disconnectedCallback() {<br>  window.removeEventListener(&quot;beforeunload&quot;,<br>this.beforeUnloadHandler);<br>  console.log(&quot;disconnectedCallback executed&quot;);<br>}</pre><p>All Window events should be supported, but some do not technically make sense (e.g. do not listen for DOMContentLoaded, because it will have already fired by the time your component comes in to existence).</p><h3><strong>One more option for the LWC components</strong></h3><p>You can use the disconnetedCallback() of lwc, where you can display an alert message to user to confirm if the user want to really exit the page without saving. Another approach would be add an event listener to beforeunload() in constructor() that displays an alert message.</p><p>Please find the working code as below:</p><pre>constructor() {<br>        super();<br>        window.addEventListener(&#39;beforeunload&#39;, (event) =&gt; {<br>           // Cancel the event as stated by the standard.<br>           event.preventDefault();<br>          // Chrome requires returnValue to be set.<br>          event.returnValue = &#39;sample value&#39;;<br>        });<br>    }</pre><p><strong>Working code for Aura components</strong></p><pre>// Aura: controller //<br>doInit: function(component, event, helper) {<br>  window.addEventListener(&#39;beforeunload&#39;, helper.beforeUnloadHandler.bind(helper));<br>}<br>// Aura: helper //<br>beforeUnloadHandler(event) {<br>  console.log(&#39;before unload handler has been called.&#39;);<br>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=43965ac3bf87" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reset my security token — simple hack to generate]]></title>
            <link>https://technophile.medium.com/reset-my-security-token-simple-hack-to-generate-120268da08c9?source=rss-d6a17a8fa05d------2</link>
            <guid isPermaLink="false">https://medium.com/p/120268da08c9</guid>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[security-token]]></category>
            <dc:creator><![CDATA[Devendar Gone]]></dc:creator>
            <pubDate>Wed, 01 Sep 2021 17:24:53 GMT</pubDate>
            <atom:updated>2021-09-01T17:24:53.798Z</atom:updated>
            <content:encoded><![CDATA[<h3>Reset my security token — simple hack to generate</h3><p>In general you need to follow these steps to find Reset security token in “Enabled Improved Setup User Interface”.</p><p>Step 1. Go to Your Name → <strong>My Settings</strong></p><p>Step 2. select <strong>Personal</strong> | <strong>Reset My Security Token</strong></p><p>Here you can find the option “Reset Security Token”.</p><p>But, If you failed to find the option here is the simple URL hack to generate token</p><blockquote><a href="https://[your">https://[your</a> salesforce domain]/_ui/system/security/ResetApiTokenEdit</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=120268da08c9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to get SessionId in the Lightning auraenabled method?]]></title>
            <link>https://technophile.medium.com/how-to-get-sessionid-in-the-lightning-auraenabled-method-ad967749c54e?source=rss-d6a17a8fa05d------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad967749c54e</guid>
            <category><![CDATA[session-id]]></category>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[auraenabled]]></category>
            <category><![CDATA[lwc]]></category>
            <dc:creator><![CDATA[Devendar Gone]]></dc:creator>
            <pubDate>Wed, 26 May 2021 06:30:28 GMT</pubDate>
            <atom:updated>2021-05-26T06:30:28.023Z</atom:updated>
            <content:encoded><![CDATA[<p>In general, developers use <strong><em>UserInfo.getSessionId() </em></strong>to get current users sessionId in apex,</p><p>But when running it from apex code that’s being called by a component, you will receive</p><blockquote><em>System.HttpResponse[Status=Unauthorized, StatusCode=401]</em></blockquote><p>When you run the code from Execute Anonymous Window, you will receive</p><blockquote><em>System.HttpResponse[Status=OK, StatusCode=200]</em></blockquote><p>So, as it turns outs there is no way of getting a valid API-capable Session-Id from lightning component, here is a quote from the partner discussion forums:</p><h3>Three things:</h3><ol><li>There’s no $Api global variable in Lightning Components today. So, {! $Api.whatever } will always fail.</li><li>This is intentional at this time. There’s no official/supported way to get an API-capable session ID in Lightning Components. Again, this is by design.</li><li>With only a little creativity and cleverness you can create a bare-bones Visualforce page with {! $Api.SessionID }, and then call getContent(thatPage) from Apex to get a page that contains an API-capable session ID, which you should be able to parse out easily enough.</li></ol><p>From there, it’s not hard to pass that session ID along to Lightning Components via an @AuraEnabled method.</p><p>But let’s be clear: this is a hack, the performance will be poor, and there’s good reasons to keep an API-capable session ID out of your Lightning Components code.</p><p>Create a Visual Force page</p><p><strong>GetSessionId</strong></p><pre>&lt;apex:page&gt;<br>    Start_Of_Session_Id{!$Api.Session_ID}End_Of_Session_Id<br>&lt;/apex:page&gt;</pre><p>Create a Utils Class</p><p><strong>UtilsGetSessionId</strong></p><pre>global class UtilsGetSessionId{<br>    global static String getSessionIdFromVFPage(PageReference visualforcePage){<br>        String content = visualforcePage.getContent().toString();<br>        Integer s = content.indexOf(&#39;Start_Of_Session_Id&#39;) + &#39;Start_Of_Session_Id&#39;.length(),<br>                e = content.indexOf(&#39;End_Of_Session_Id&#39;);<br>        return content.substring(s, e);<br>    }<br>}</pre><p><strong>Update your controller like this</strong></p><p>req.setHeader(‘Authorization’, ‘Bearer ‘ + <strong>UtilsGetSessionId</strong>.getSessionIdFromVFPage(Page.GetSessionId));</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad967749c54e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to download multiple files from Salesforce?]]></title>
            <link>https://technophile.medium.com/how-to-download-multiple-files-from-salesforce-659afe64861b?source=rss-d6a17a8fa05d------2</link>
            <guid isPermaLink="false">https://medium.com/p/659afe64861b</guid>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[download-bulk-files]]></category>
            <dc:creator><![CDATA[Devendar Gone]]></dc:creator>
            <pubDate>Thu, 07 Jan 2021 17:34:17 GMT</pubDate>
            <atom:updated>2021-01-07T17:34:17.114Z</atom:updated>
            <content:encoded><![CDATA[<p>This is a common scenario to download multiple files at a time from Salesforce</p><p><strong>Simple URL hack:</strong></p><p>Download all files as zip by specifying the content version Ids of the file in the URL. I can call it a URL hack and everyone mentioned that it is not the recommended way.</p><p><strong>Below is the URL format that you need to use:</strong></p><blockquote><a href="https://[domain].lightning.force.com.com/sfc/servlet.shepherd/version/download/068xxxxxxxxxxxxxxx/068yyyyyyyyyyyyyyy/068wwwwwwwwwwwwwww/068zzzzzzzzzzzzz">https://[domain].lightning.force.com.com/sfc/servlet.shepherd/version/download/068xxxxxxxxxxxxxxx/068yyyyyyyyyyyyyyy/068wwwwwwwwwwwwwww/068zzzzzzzzzzzzz</a></blockquote><p>Just paste this URL and files will be downloaded as zip files.</p><p>I was able to download the zip file with a size of around 600Mb using one URL.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=659afe64861b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Salesforce Spring ‘21 Sneak Peak of Flow Features]]></title>
            <link>https://technophile.medium.com/salesforce-spring-21-sneak-peak-of-flow-features-8502298ddb7a?source=rss-d6a17a8fa05d------2</link>
            <guid isPermaLink="false">https://medium.com/p/8502298ddb7a</guid>
            <category><![CDATA[feature-flow]]></category>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[21-spring]]></category>
            <category><![CDATA[releases]]></category>
            <dc:creator><![CDATA[Devendar Gone]]></dc:creator>
            <pubDate>Fri, 18 Dec 2020 11:11:13 GMT</pubDate>
            <atom:updated>2020-12-22T04:08:28.342Z</atom:updated>
            <content:encoded><![CDATA[<p>Spring ’21 released and path-breaking features in Salesforce Flow</p><h3>Accessing the Prior Value or Old Value in Record Triggered Flows</h3><p>This is a great feature personally. This capability was missing till now and it was one of the biggest reasons for many developers to sometimes dropping Flow idea and write Apex Triggers for many scenarios.</p><p>After the rollout, no more Apex Trigger for simple customizations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/1*0Wsq-3K0twoLCutIUJdJPQ.png" /></figure><h3>Multi-Column Layout for Screen Flows (Beta)</h3><p>This is going to change a lot, but it&#39;s Beta for this release.</p><p>More Beautiful and Practical Screens in the future.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G-X4H4Q7yD_G1RX01gK-Pw.png" /></figure><h3><strong>Time Based / Time Dependent Actions</strong> or <strong>Time Triggered Actions from Flows</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xh5A-j2a9LcW9k3uht8q0A.png" /></figure><h3><strong>Control Revisited Screen Component Values in Flows</strong></h3><p>One size doesn’t fit all when it comes to revisited screen component values, so now you can choose to refresh the values. When a user navigates to a previous screen, then proceeds forward to a screen that they visited already, the flow can refresh screen component values. Changes elsewhere in the flow are incorporated in the refreshed values. Previously, a screen component always used the same values that the user entered. The options for revisited screen component values are available only for Lightning components.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/379/1*D7b2PpT4wEjHLyzU5gXrRQ.png" /></figure><h3><strong>See Accurate Flow Information in Debug Logs</strong>: —</h3><p>Debug logs now record the total amount of CPU time consumed by a particular flow or process in the <strong>FLOW_INTERVIEW_FINISHED_LIMIT_USAGE</strong> log lines. Also, the <strong>FLOW_INTERVIEW_LIMIT_USAGE</strong> log lines now accurately record the CPU time consumed by flows and processes that are configured to run in API version 51.0 or later.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/1*UAh07DTWri-TaB1Qx4CGVg.png" /></figure><h4>Release Notes are scheduled to be released on the 21st December and the key dates of Spring ’21 release:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZaqthhI1azROZgorzQOg_Q.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8502298ddb7a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is the definition of rtaimage servlet parameters?]]></title>
            <link>https://technophile.medium.com/what-is-the-definition-of-rtaimage-servlet-parameters-5d6b6843a04f?source=rss-d6a17a8fa05d------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d6b6843a04f</guid>
            <category><![CDATA[rich-text-area-images]]></category>
            <category><![CDATA[rtaimage]]></category>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[servlet]]></category>
            <dc:creator><![CDATA[Devendar Gone]]></dc:creator>
            <pubDate>Tue, 30 Jun 2020 14:23:22 GMT</pubDate>
            <atom:updated>2020-06-30T14:23:22.377Z</atom:updated>
            <content:encoded><![CDATA[<p>eid is a custom object, the &quot;entity ID&quot;. Presumably, you could use this to view an instance of your record.</p><p>feoid is the &quot;field entity ID&quot;. This describes the field that the content is stored in. You can see this value when you&#39;re looking at the field in the Setup screen.</p><p>refid is an ID of the type ContentReference. We&#39;re not able to describe this object, so it&#39;s safe to assume that it is also unqueryable from any code we could write.</p><p>Execute Anonymous:</p><pre>System.debug(System.LoggingLevel.ERROR, Id.valueOf(&#39;0EM30000000UE2I&#39;).getSObjectType());</pre><p>Output:</p><pre>ContentReference</pre><p>Execute Anonymous:</p><pre>System.debug(System.LoggingLevel.ERROR, Id.valueOf(&#39;0EM30000000UE2I&#39;).getSObjectType().getDescribe());</pre><p>Output:</p><pre>Internal Server Error (...)</pre><p>In conclusion, it may be necessary, but it is not something that we are subject to viewing. It’s also undocumented, so I wouldn’t try messing with it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d6b6843a04f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to update Managed Package Custom Field Label in Subscriber Org?]]></title>
            <link>https://technophile.medium.com/how-to-update-managed-package-custom-field-label-in-subscriber-org-1c52a070fa01?source=rss-d6a17a8fa05d------2</link>
            <guid isPermaLink="false">https://medium.com/p/1c52a070fa01</guid>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[subscriber-org]]></category>
            <category><![CDATA[override-label-text]]></category>
            <category><![CDATA[managed-package]]></category>
            <category><![CDATA[custom-field-label]]></category>
            <dc:creator><![CDATA[Devendar Gone]]></dc:creator>
            <pubDate>Thu, 20 Feb 2020 07:07:13 GMT</pubDate>
            <atom:updated>2020-02-20T17:06:58.238Z</atom:updated>
            <content:encoded><![CDATA[<p>Changing Managed Package Custom Object label is straight forward but changing Custom field Label is not possible from the field edit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I9D7NBLAQoVviJhw5ATwIQ.png" /></figure><h3>There is a simple workaround to do this</h3><p>Overriding require Translation Workbench.</p><h4>See: How to Enable and Disable the Translation Workbench.</h4><p>From Setup, enter <strong>Translation Language Settings</strong> in the Quick Find box, then select <strong>Translation Language Settings</strong>. On the welcome page, click <strong>Enable</strong>.</p><p>The “<strong>Manage Translatio</strong>n” permission is enabled by default in the <strong>System Administrator </strong>profile.</p><p>To disable the Translation Workbench, from Setup, enter Translation Language Settings in the Quick Find box, select <strong>Translation Language Settings</strong>, and then click <strong>Disable</strong>.</p><blockquote><strong>NOTE — </strong>In a Developer organization with a managed package containing translations, once the <strong>Translation Workbench</strong> is enabled, it can’t be disabled.</blockquote><blockquote>Translation Workbench isn’t available for single-language orgs. If you aren’t sure whether you have a single-language or multi-language organization, contact Salesforce.</blockquote><p>From Setup, enter Override in the Quick Find box, then select <strong>Override</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*CxeiD6WV5YeLlwfrEdBheQ.png" /></figure><ol><li>Select the Package that you’re overriding.</li><li>Language keep it English</li><li>Setup Component — Select Custom Field</li><li>Object — Select-Object</li><li>Aspect — Field Label</li><li>All the fields of the selected object will be displayed as a list</li><li>Choose the field you want to change the label, then click in Field Label Override column</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/933/1*nK-kyhPpY3u5j7rn8emxow.png" /></figure><p>Then save — — That&#39;s it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c52a070fa01" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to convert String to Date in Apex?]]></title>
            <link>https://technophile.medium.com/how-to-convert-string-to-date-in-apex-9d273a1f61c8?source=rss-d6a17a8fa05d------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d273a1f61c8</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[parsing-methods]]></category>
            <category><![CDATA[apex]]></category>
            <category><![CDATA[date-to-string]]></category>
            <dc:creator><![CDATA[Devendar Gone]]></dc:creator>
            <pubDate>Fri, 29 Nov 2019 06:44:40 GMT</pubDate>
            <atom:updated>2019-11-29T07:04:18.154Z</atom:updated>
            <content:encoded><![CDATA[<p>The error will occur when a system is not able to understand the input string while parsing into the Date.</p><p>We have two conversion methods in Apex</p><h3>Date.parse</h3><p>The format of the String depends on the local date format, like mm/dd/yyyy. If the parameter is not of this format, date.parse will throw error.</p><p>E.g.: Plan_Date__c = date.parse(‘12/27/2018’);</p><h3>Date.valueOf</h3><p>The specified string should use the standard date format “yyyy-MM-dd HH:mm:ss” in the local time zone.</p><p>E.g.: Plan_Date__c = date.valueOf(‘2018–12–20’);</p><p><strong>Note: </strong>In API version 33.0 or earlier, if you call Date.valueOf with an object that represents a Datetime, the method returns a Date value that contains the hours, minutes, and seconds. In version 34.0 and later, Date.valueOf converts the object to a valid Date without the time information. To convert a variable of type Datetime to a Date, use the Datetime.date method.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d273a1f61c8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to enable Last Activity Date on Custom Object]]></title>
            <link>https://technophile.medium.com/how-to-enable-last-activity-date-on-custom-object-fc212f5415aa?source=rss-d6a17a8fa05d------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc212f5415aa</guid>
            <category><![CDATA[custom-object]]></category>
            <category><![CDATA[salesforce]]></category>
            <dc:creator><![CDATA[Devendar Gone]]></dc:creator>
            <pubDate>Thu, 07 Nov 2019 18:19:58 GMT</pubDate>
            <atom:updated>2019-11-07T18:19:58.159Z</atom:updated>
            <content:encoded><![CDATA[<p>LastActivityDate is only available if the “Allow activities” checkbox under Optional Features is enabled in the custom object’s setup page. If it is not checked, this system field will not be available through the API or in reporting.</p><h4><strong>To enable “Allow Activities” in Classic</strong></h4><p>1. Setup &gt; Create &gt; Objects<br>2. Choose the object where you want to see the Last Activity Date field.<br>3. Click Edit.<br>4. Under Optional Features, enable “Allow Activities”.</p><h4>To enable “Allow Activities” in Lightning</h4><p>1. Setup &gt; Object Manager<br>2. Choose the object where you want to see the Last Activity Date field.<br>3. In Details, click Edit.<br>4. Under Optional Features, enable “Allow Activities”.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc212f5415aa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Salesforce Apex — System.LimitException: Too many query rows]]></title>
            <link>https://technophile.medium.com/salesforce-apex-system-limitexception-too-many-query-rows-7faa32176c83?source=rss-d6a17a8fa05d------2</link>
            <guid isPermaLink="false">https://medium.com/p/7faa32176c83</guid>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[soql]]></category>
            <category><![CDATA[querylimit]]></category>
            <category><![CDATA[apex]]></category>
            <dc:creator><![CDATA[Devendar Gone]]></dc:creator>
            <pubDate>Wed, 03 Jul 2019 08:37:55 GMT</pubDate>
            <atom:updated>2019-07-03T08:37:55.236Z</atom:updated>
            <content:encoded><![CDATA[<h3>Salesforce Apex — System.LimitException: Too many query rows</h3><p>Be aware that the <strong>50k </strong>limit is an overall per-transaction limit, and not a per-query limit. Do you have other code in your test method that makes SOQL queries? Are there at least 4 other queries with LIMIT 10000 in them? If so, that would do it. That things fail only in production, where you have more data, hints that this could be the case.</p><p>Also, since you mentioned that this is a test method: if any of the queries contributing to this are in logic to set up your test you may be able to use Test.startTest and Test.stopTest to help. Code that is run between these two methods gets a new set of limits, which means that in a scenario where exactly half your work is setup/teardown you can query 100k records instead.</p><p>For the sake of debugging note that you can check how many query rows have been used via Limits.getQueryRows();.</p><h4><strong>To get the number of remaining query rows you would do:</strong></h4><pre>Integer remainingRows = Limits.getLimitQueryRows() - Limits.getQueryRows();</pre><p>So you could do a dynamic query limit with that if you want to get as many rows as possible up to 10k.</p><pre>Integer upperBound = Math.min(remainingRows, 10000);<br>List&lt;LoginGeo&gt; logins = Database.query(&#39;SELECT Id FROM LoginGeo LIMIT &#39; + upperBound&#39;);</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7faa32176c83" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>