<?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 Raquel Gouveia on Medium]]></title>
        <description><![CDATA[Stories by Raquel Gouveia on Medium]]></description>
        <link>https://medium.com/@raquel.az.gouveia?source=rss-d221017d6228------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*epGfrhxK-oBMqWMa</url>
            <title>Stories by Raquel Gouveia on Medium</title>
            <link>https://medium.com/@raquel.az.gouveia?source=rss-d221017d6228------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 12:30:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@raquel.az.gouveia/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[Why NullTextIdentifier() Can Break Your OutSystems Aggregates (And How to Fix It)]]></title>
            <link>https://medium.com/peaceful-evolution/why-nulltextidentifier-can-break-your-outsystems-aggregates-and-how-to-fix-it-b19efe92699a?source=rss-d221017d6228------2</link>
            <guid isPermaLink="false">https://medium.com/p/b19efe92699a</guid>
            <category><![CDATA[nulltextidentifier]]></category>
            <category><![CDATA[aggregates]]></category>
            <category><![CDATA[outsystems]]></category>
            <category><![CDATA[outsystems-development]]></category>
            <category><![CDATA[low-code]]></category>
            <dc:creator><![CDATA[Raquel Gouveia]]></dc:creator>
            <pubDate>Thu, 02 Apr 2026 08:58:45 GMT</pubDate>
            <atom:updated>2026-04-02T08:58:45.638Z</atom:updated>
            <content:encoded><![CDATA[<p>A few weeks ago, someone mentioned that the validations on a screen I was working on weren’t behaving correctly. My first reaction was: <em>“That can’t be right — I’m sure I handled that case.”</em></p><p>Still, I went back to the code and started reviewing everything from top to bottom. And that’s when I noticed something interesting.</p><p>In this project, the whole team often uses NullTextIdentifier() for text validations. So, inside an Aggregate filter, I had written something like:</p><pre>Entity.Label &lt;&gt; NullTextIdentifier() or Entity.Label = InputVar</pre><p>Out of curiosity, I changed the condition to:</p><pre>Entity.Label &lt;&gt; &quot;&quot; or Entity.Label = InputVar</pre><p>And suddenly everything worked perfectly.</p><p>That was the moment I realised I had fallen into one of those very simple mistakes that happen when you are deep in “delivery mode”, trying to move fast. So I decided to write this short article as a reminder, for myself and for anyone who works with OutSystems, of what actually happened behind the scenes.</p><h4>Understand the Basics</h4><p>Functions like NullTextIdentifier(), NullIdentifier(), and NullDate() represents <em>null values </em>within the OutSystems platform. But each one of them also has a practical underlying value.</p><p>For NullTextIdentifier(), that underlying value is an empty string (&quot;&quot;).</p><p>So far, so good. But things get interesting when using these conditions inside an Aggregate.</p><h4>The Catch: Text Fields Are Different</h4><p>In my case, the Label attribute was a <strong>Text</strong> field. And here lies the core of the problem:</p><p>In OutSystems logic, NullTextIdentifier()corresponds to &quot;&quot; (empty string).</p><p>But in SQL translation inside Aggregates, it gets translated to NULL .</p><p>This means that my original condition:</p><pre>Entity.Label &lt;&gt; NullTextIdentifier()</pre><p>was effectively being converted into:</p><pre>Entity.Label IS NOT NULL</pre><p>But the actual value stored in the database for “no value” in a Text attribute is <strong>empty string </strong>(&quot;&quot;), not SQL NULL.</p><p>So the condition would never behave as intended.</p><p>As soon as I switched the comparison to (&quot;&quot;), the Aggregate behaved as expected because I was comparing against the true underlying value stored in the database.</p><h4>A Simple Lesson</h4><p>Looking back, the fix was straightforward, but it highlights a nuance in how OutSystems handles different text types. To avoid this pitfall in your future developments, keep this rule in mind when working with Aggregates:</p><p>· Use <strong>NullTextIdentifier()</strong>: When checking if a <strong>Text Identifier</strong> variable (like a GUID or a Text-based Primary Key) has a meaningful value.</p><p>· Use <strong>&quot;&quot;</strong>: When comparing or validating <strong>basic Text strings</strong>.</p><p>Sometimes the issues we face aren’t caused by complex logic, they’re caused by small details that slip by when we are too focused on delivering quickly. Slowing down and revisiting the fundamentals can save a lot of time and confusion.</p><p>If you’ve ever found yourself puzzled by why a condition behaves differently inside an Aggregate, maybe this post will save you a few minutes of debugging.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b19efe92699a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/peaceful-evolution/why-nulltextidentifier-can-break-your-outsystems-aggregates-and-how-to-fix-it-b19efe92699a">Why NullTextIdentifier() Can Break Your OutSystems Aggregates (And How to Fix It)</a> was originally published in <a href="https://medium.com/peaceful-evolution">Peaceful Evolution</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Make Your OutSystems App Cookies Secure]]></title>
            <link>https://medium.com/peaceful-evolution/how-to-make-your-outsystems-app-cookies-secure-64d537690de0?source=rss-d221017d6228------2</link>
            <guid isPermaLink="false">https://medium.com/p/64d537690de0</guid>
            <category><![CDATA[cookies]]></category>
            <category><![CDATA[outsystems]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[peaceful-evolution]]></category>
            <dc:creator><![CDATA[Raquel Gouveia]]></dc:creator>
            <pubDate>Wed, 26 Nov 2025 14:32:51 GMT</pubDate>
            <atom:updated>2025-11-26T16:07:39.953Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/225/1*4iI70pwj48y6nXXXFG7hqQ.png" /></figure><p>Nowadays, almost every website we visit uses cookies, and it’s very common to be asked to accept them when entering a site.</p><p>Cookies are small text files that store browsing information on our device and they are saved by the websites we visit.</p><p>Some of the advantages of using Cookies are:</p><ul><li>Saving login details</li><li>Remembering shopping carts (when shopping online)</li><li>Enhanced site performance</li><li>Enable multi-device continuity</li></ul><p>So, there’s no doubt that cookies are very useful.</p><p>But, like everything in life, they also have a dark side, why? Because these text files store data about us, such as the login details and other personal information. This means we must consider the potential risks, like Data Privacy or Session Hijacking.</p><p>As developers our goal is to use cookies to improve the user experience while keeping them as save as possible.</p><h3>🛡️<strong>How to make our App Cookies Secure?</strong></h3><p>The key is to ensure that cookies are not transmitted to the browser in clear text format.</p><p>In OutSystems, there’s an easy way to do this, we just need to send them with a <strong>Secure flag</strong>.</p><p>Web browsers that support the “secure” flag will only send these cookies when the request uses <strong>HTTPS</strong>. This means the “secure” flag prevents browsers from sending cookies over an unencrypted channel.</p><h4>🔐Securing Session Cookies</h4><p>Session cookies are the ones that store the information about a user session. This information is very sensitive, so this type of cookies is a must have to configure the secure flag.</p><p><strong>Using Lifetime:</strong></p><p>1. Access Lifetime.</p><p>2. Go to Environments tab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pBoqaADwpJUCk2NdXzpPww.png" /><figcaption>Enviroments tab view</figcaption></figure><p>3. Open More Security Setting.</p><p>4. Enable Secure Cookies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GW8xbYuHEAfrbGi9n826dQ.png" /><figcaption>Security settings screen.</figcaption></figure><p>Another way of doing this security configuration settings is by installing <strong>Factory Configuration</strong> from the <strong>OutSystems Forge.</strong></p><p><strong>Using Factory Configuration:</strong></p><p>1. Install Factory Configuration from the Forge.</p><p>2. Access Factory Configuration App.</p><p>3. Go to Platform Configurations tab.</p><p>4. Enable Secure Session Cookies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BAYSWWU42uuDjF3b2anSZw.png" /><figcaption>Platform Configurations screen.</figcaption></figure><p>After this change, <strong>make sure to </strong>apply the new configuration to your environment.</p><h4>🧩Securing Custom <strong>Cookies</strong></h4><p>You can also make this configuration for <strong>custom cookies</strong> in a <strong>server-side context.</strong></p><p>To do this, set <strong>CookieSecure </strong>input parameter to <strong>True</strong> when calling the <strong>SetCookie </strong>Server Action of the <strong>HTTPRequestHandler </strong>extension.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/273/1*KbL1U0Gpouy1Hsfg8jScyw.png" /></figure><p>Note: This input parameter don’t exist to versions previous to the Plaltform Server 11.7.0. In those cases, there’s a simple workaround, append “; Secure” to the cookie value manually.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/272/1*SzpVyKSyN4Acv-Wp8iEYRw.png" /></figure><p>For <strong>client-side context</strong>, the approach is similar, just append “; Secure” to the cookie string:</p><pre>document.cookie = &#39;sample_cookie=value; Secure&#39;;</pre><h4>⚠️ Important Note</h4><p>Since the <strong>Secure</strong> flag forces the browser to send cookies <strong>only on HTTPS requests</strong>, you should enforce HTTPS for all screens. This prevents unexpected behavior on your application.</p><p>To achieve this, go to your <strong>environment’s security configurations</strong> and enable the <strong>Improved Application Security</strong> option. This will not only force HTTPS for screens but also for <strong>web references</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3haBNYMM3Fk5D8xDUDv0Ng.png" /></figure><p>📚 References:</p><ul><li><a href="https://success.outsystems.com/documentation/11/security/enable_secure_session_cookies_and_set_application_cookies_as_secure/">OutSystems Documentation</a></li><li><a href="https://us.norton.com/blog/privacy/what-are-cookies">Cookies</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=64d537690de0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/peaceful-evolution/how-to-make-your-outsystems-app-cookies-secure-64d537690de0">How to Make Your OutSystems App Cookies Secure</a> was originally published in <a href="https://medium.com/peaceful-evolution">Peaceful Evolution</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>