<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Alexandr</title>
    <description>The latest articles on Forem by Alexandr (@niacrisss).</description>
    <link>https://forem.com/niacrisss</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2413853%2F8bebd0cf-bf95-4558-8c1e-7170ae8f96ed.png</url>
      <title>Forem: Alexandr</title>
      <link>https://forem.com/niacrisss</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/niacrisss"/>
    <language>en</language>
    <item>
      <title>Score Big with Power Apps: A Step-by-Step Guide to Custom Football APIs</title>
      <dc:creator>Alexandr</dc:creator>
      <pubDate>Tue, 26 May 2026 13:38:22 +0000</pubDate>
      <link>https://forem.com/niacrisss/score-big-with-power-apps-a-step-by-step-guide-to-custom-football-apis-2mkc</link>
      <guid>https://forem.com/niacrisss/score-big-with-power-apps-a-step-by-step-guide-to-custom-football-apis-2mkc</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6onb74wyyp9c5be1frf5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6onb74wyyp9c5be1frf5.png" alt="guessthewinner" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frjconzru436glltpxit3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frjconzru436glltpxit3.png" alt="StartMenu" width="800" height="451"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;If (Sports Fan &amp;amp;&amp;amp; Power App){&lt;br&gt;
      return "Goal!"&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;You know what I really admire in software development? No matter if it is no-code or hard-coding, it is the ability to spark an idea and bring it to life using your own brainpower.&lt;/p&gt;

&lt;p&gt;The FIFA World Cup is almost here. How about we use an extremely simple API call via a custom connector to build a Power App? It will allow us to track our favorite countries and leagues, and even build a playoff board to cheer for our teams.&lt;/p&gt;
&lt;h2&gt;
  
  
  What even are custom connectors?
&lt;/h2&gt;

&lt;p&gt;In Power Apps, a Custom Connector is a bridge to any data source (and more) that has a REST API. I will show you how to make one and use it in your app.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;But before we start building our awesome app, I have to give you a fair &lt;strong&gt;&lt;em&gt;warning&lt;/em&gt;&lt;/strong&gt;. Using Custom Connectors in the Power Platform requires a &lt;strong&gt;Premium License&lt;/strong&gt; for every user who runs a flow or app that uses one. (There are workarounds that I will not touch upon in this material, but feel free to let me know if you want to learn them!)&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Great, we are all set to begin now. I want to split my plan into two main steps.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Preparation:&lt;/strong&gt; Obtain an API key and get comfortable with the endpoint documentation.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1:&lt;/strong&gt; Create and configure the Custom Connector. While configuring it may take a while and look a bit cumbersome, I assure you it is worth it. This is the core part of our app that we will heavily depend on.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2:&lt;/strong&gt; Add the Connector to the app and start using it. This part is more fun. The magic happens here!&lt;/p&gt;
&lt;h2&gt;
  
  
  Preparation
&lt;/h2&gt;

&lt;p&gt;While the players are warming up getting ready for the game, and the crowd is taking its place around the stadium arena, we will look into our API choice.&lt;/p&gt;

&lt;p&gt;There are countless data services out there, and today I will pick the &lt;a href="https://www.api-football.com/" rel="noopener noreferrer"&gt;api-football.com&lt;/a&gt; site. Notice how the service provides us not only with soccer data but a dozen other sports too. So if you are not a football fan, you can build your own hockey or basketball league app. Be my guest!&lt;/p&gt;

&lt;p&gt;My goal is to get an API key and look up the request URL syntax. If you have never had to deal with an API key, think of it as a unique username and password combination squeezed into one long string of characters. It not only prevents unauthorized users from making calls, but it also identifies and tracks your API usage. Handy, eh?&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjlbl2cf2rbvb374ttusa.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjlbl2cf2rbvb374ttusa.png" alt="GettingAPIKey" width="800" height="397"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We have to register an account to obtain an API key, where the free tier will allow us to make 100 calls a day. That is plenty to get started, I would say.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Important: Never ever share your API key! Yes, AI LLM chats count too! Remember, your API key is your unique ID. Treat it like your credit card PIN code.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;After getting mine, I am going directly to the API documentation page &lt;a href="https://www.api-football.com/documentation-v3" rel="noopener noreferrer"&gt;api-football.com/documentation-v3&lt;/a&gt;. It tells us what calls are available, how to make requests, and shows examples of the output, which will be handy for our app. To configure our future Custom Connector, I am looking for a Host URL, which every API has. In my case, it is &lt;code&gt;v3.football.api-sports.io&lt;/code&gt;. Great! The only thing left to do is to find the correct endpoint to get the list of all available countries.&lt;/p&gt;

&lt;p&gt;I found this one:&lt;br&gt;
&lt;a href="https://www.api-football.com/documentation-v3#tag/Countries" rel="noopener noreferrer"&gt;api-football.com/documentation-v3#tag/Countries&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Get all available countries across all {seasons} and competitions&lt;/span&gt;
&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;https://v3.football.api-sports.io/countries&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="c1"&gt;// Get all available countries from one country {name}&lt;/span&gt;
&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;https://v3.football.api-sports.io/countries?name=england&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="c1"&gt;// Get all available countries from one country {code}&lt;/span&gt;
&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;https://v3.football.api-sports.io/countries?code=fr&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="c1"&gt;// Allows you to search for a countries in relation to a country {name}&lt;/span&gt;
&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;https://v3.football.api-sports.io/countries?search=engl&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And it is everything I could dream of. I will explain the details when we configure the connector, which we are ready to start right now.&lt;/p&gt;

&lt;h2&gt;
  
  
  First Half. Step 1: Create and Configure the Custom Connector
&lt;/h2&gt;

&lt;p&gt;The goal is to give our Connector a name (which is easy) and set up an action command (which I will explain). Fire up Power Apps and create a new Custom Connector.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx3vqn3milxc8p5e1zgql.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx3vqn3milxc8p5e1zgql.png" alt="NewConnector" width="799" height="254"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Give it a meaningful name, as we are going to use it later in our app. Now, make sure to update the Host input field information. Can you remember what it was for us? Yes, it is &lt;code&gt;v3.football.api-sports.io&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm4opop1f7qygh9jv3emm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm4opop1f7qygh9jv3emm.png" alt="APIHost" width="799" height="620"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;On the Security tab, pick API Key as your method of authentication.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fujs13bseihfsqrjdyzrq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fujs13bseihfsqrjdyzrq.png" alt="docsAPISecurity" width="800" height="372"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Another important detail here is the Parameter name, which I found in the API documentation as well. Make sure to use &lt;code&gt;x-apisports-key&lt;/code&gt; here. Other parameters are not that important in our case, and you can fill in the blanks following my example.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftskig5l638blxxcq4ws4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftskig5l638blxxcq4ws4.png" alt="KeySecurity" width="800" height="465"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The Definition tab is where we are going to tell our connector how to get the list of countries we need. Just so you are aware, we can define multiple actions here, such as getting a list of teams from a specific league, getting full info about a favorite team, getting the latest match statistics, and so on. That is why it is important to have a meaningful action name and Operation ID (no spaces, please), as this field will be used later in our app.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh5r479esgdfnldscy295.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh5r479esgdfnldscy295.png" alt="NewAction" width="800" height="490"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We are so close to being done with the configuration, but our connector still does not know how to properly get the list of all the countries. We have to import from a sample. Remember this endpoint?&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Get all available countries across all {seasons} and competitions&lt;/span&gt;
&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;https://v3.football.api-sports.io/countries&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is our sample. See and repeat after me: since it is a data-retrieval operation, I pick the verb &lt;code&gt;GET&lt;/code&gt;, and for the URL, I provide the full countries endpoint link &lt;code&gt;https://v3.football.api-sports.io/countries&lt;/code&gt;. And that is it, click the Import button.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjx9l14vixkzg74nczldn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjx9l14vixkzg74nczldn.png" alt="ImportAPI" width="799" height="401"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Just to keep it simple today, I will not go into parameter details, but to be safe, I will add a default response to my action definition. Why? So we can describe our future API response, which usually comes in the form of JSON. This will guard us against any unstructured returns. Let me show you a little trick here.&lt;/p&gt;

&lt;p&gt;Where do we find the response sample? On the same page where we found the endpoints. &lt;a href="https://www.api-football.com/documentation-v3#tag/Countries/operation/get-countries" rel="noopener noreferrer"&gt;https://www.api-football.com/documentation-v3#tag/Countries/operation/get-countries&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftb0lmzegm7vv8xoalev1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftb0lmzegm7vv8xoalev1.png" alt="APIResponse" width="800" height="399"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"get"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"countries"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"parameters"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"england"&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"errors"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[],&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"results"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"paging"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"current"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"total"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"response"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"England"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"code"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"GB"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"flag"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"https://media.api-sports.io/flags/gb.svg"&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I promised you a trick. Look at how the 'response' property gives us an array of objects where each object represents a country with a name, code, and flag. You will need this very soon!&lt;/p&gt;

&lt;p&gt;Time to add the default response and paste that JSON code.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Feoqud668o3iaz69usi2c.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Feoqud668o3iaz69usi2c.png" alt="DefaultResponse" width="800" height="361"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We have almost everything we need right now, and we are ready to jump from the Definition tab to Test.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh7vsw77yw7ai4uo5vqho.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh7vsw77yw7ai4uo5vqho.png" alt="APICreate" width="800" height="119"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I will create the Connector. Is something missing? What about the API key we were so protective of? You will add it right here. Create a new connection and paste your key!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnsa20rkrirg8h1axtnpf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnsa20rkrirg8h1axtnpf.png" alt="KEYuse" width="800" height="479"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can always test your Connector inside the wizard, but I have no patience at the moment, so let us head straight to step 2!&lt;/p&gt;

&lt;h2&gt;
  
  
  Second Half. Step 2: Add Connector to App and Start Using It
&lt;/h2&gt;

&lt;p&gt;I will create a simple Power App with the sole goal of testing my shiny new Connector. This is something you can easily handle yourself.&lt;/p&gt;

&lt;p&gt;The first thing I will do is add the Connector as a data source in the Data tab. This is where having a meaningful name plays its role.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fobomhc3h8usqf4q0d4rg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fobomhc3h8usqf4q0d4rg.png" alt="DataTab" width="799" height="434"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;What is the fastest way to test it? A good old button! Insert one and start typing this into the &lt;code&gt;OnSelect&lt;/code&gt; property: &lt;code&gt;DemoSoccerAPIConnector.GetCountries();&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Here is your pattern: &lt;code&gt;ConnectorName.ActionName()&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Click the button, get back to your action name, and see how it magically fetches the data for us. I can spot 171 items in my results. What about you?&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzww7wwufiixk7dqf9fg5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzww7wwufiixk7dqf9fg5.png" alt="ButtonTest" width="799" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;But let us continue and visualize this properly. We are not going to serve our users raw data, after all.&lt;/p&gt;

&lt;p&gt;Would you agree that a standard gallery makes sense here? Would you also agree that it makes total sense to store our data in a Collection after clicking the button?&lt;/p&gt;

&lt;p&gt;Let us change the button &lt;code&gt;OnSelect&lt;/code&gt; property like this: &lt;code&gt;ClearCollect(colCountries, DemoSoccerAPIConnector.GetCountries().response);&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Can you guess why &lt;code&gt;.response&lt;/code&gt; is at the end? Going back to the trick I promised you, we spotted that the array of objects (our countries) is stored inside the response property. So we simply pass that array directly to our collection with its name, code, and flag.&lt;/p&gt;

&lt;p&gt;All I really have to do now is add a gallery, use &lt;code&gt;colCountries&lt;/code&gt; for the &lt;code&gt;Items&lt;/code&gt; property, click the button, and voila!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frncrnylf2jm60tz3lia6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frncrnylf2jm60tz3lia6.png" alt="gal" width="799" height="394"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Goal
&lt;/h2&gt;

&lt;p&gt;I am going to stop here so you can take a moment to appreciate what you have built. I will let your imagination lead you from here, and I am happy to share how I built the rest if you want to know.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkpmodv5k2u1whhf32m1z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkpmodv5k2u1whhf32m1z.png" alt="Countries" width="800" height="456"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnewdzf54kpj9ctle8hzs.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnewdzf54kpj9ctle8hzs.png" alt="Teams" width="800" height="449"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd9jbtzoehq77homkofet.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd9jbtzoehq77homkofet.png" alt="Leagues" width="800" height="452"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I really hope you enjoyed this and found it to be a useful example today. Remember, you are the one bringing great ideas to life!&lt;/p&gt;

</description>
      <category>powerapps</category>
      <category>lowcode</category>
      <category>api</category>
      <category>worldcup2026</category>
    </item>
    <item>
      <title>Minesweeper in Power App: Two Buttons One Gallery</title>
      <dc:creator>Alexandr</dc:creator>
      <pubDate>Tue, 24 Feb 2026 05:58:16 +0000</pubDate>
      <link>https://forem.com/niacrisss/minesweeper-in-power-app-two-buttons-one-gallery-4i6c</link>
      <guid>https://forem.com/niacrisss/minesweeper-in-power-app-two-buttons-one-gallery-4i6c</guid>
      <description>&lt;p&gt;It was another cold winter Sunday, too cold for fishing, too cozy to be productive. I needed a challenge. Something silly but satisfying.&lt;/p&gt;

&lt;p&gt;Twenty years ago I dabbled in Flash game development. A few of those games are still floating around internet archives somewhere, quietly embarrassing me. So I thought — why not build a game in Power Apps? Sure, in 2024 you can vibe-code something like this in minutes with AI. But where's the fun in that?&lt;/p&gt;

&lt;p&gt;Here's my step-by-step journey building a fully working classic Minesweeper in Power Apps. Fast, rough, and absolutely not something your boss should see running on your SharePoint portal.&lt;/p&gt;

&lt;p&gt;The Rules in a Nutshell&lt;br&gt;
You have a grid hiding a set number of mines.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsmkka1kxj4p9rkilejx3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsmkka1kxj4p9rkilejx3.png" alt="Classic" width="624" height="774"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Click a cell to reveal it. &lt;/li&gt;
&lt;li&gt;Hit a mine? Game over.&lt;/li&gt;
&lt;li&gt;Safe? It shows a number representing how many neighbouring cells contain mines.&lt;/li&gt;
&lt;li&gt;The Goal: Reveal all safe cells without going kaboom 💥.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Setup&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fl4sqg2ndmj7rf2dzybh3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fl4sqg2ndmj7rf2dzybh3.png" alt="start" width="800" height="261"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Fire up the Power Apps portal and create a blank canvas app. For this demo we're hardcoding a 3×3 grid — keeping it simple and sane.&lt;br&gt;
Here's all we need UI-wise:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A vertical Gallery with &lt;code&gt;Wrap Count = 3&lt;/code&gt; and &lt;code&gt;Template Size = 100&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Delete all default template controls and drop in a single square Button — this will be our cell&lt;/li&gt;
&lt;li&gt;One more Button on the main screen for starting and resetting the game — this is also where all our logic lives&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4fd7moqkjbwi80aax1hz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4fd7moqkjbwi80aax1hz.png" alt="step1" width="800" height="359"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That's it. Minimal controls, maximum fun. Let's get to work.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Game Logic — Three Steps&lt;/strong&gt;&lt;br&gt;
Let's break the logic into three parts:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Build the grid&lt;/li&gt;
&lt;li&gt;Plant the mines&lt;/li&gt;
&lt;li&gt;Calculate neighbour mine counts&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Step 1 — Build the Grid&lt;/strong&gt;&lt;br&gt;
We need a collection of objects, one per cell, each storing everything we need to know about that cell.&lt;br&gt;
Pop this into your Start Button's &lt;code&gt;OnSelect&lt;/code&gt; property:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F98zx4029pn9nryr5sgdu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F98zx4029pn9nryr5sgdu.png" alt="step2" width="291" height="44"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;// 1. Create the game grid
ClearCollect(
    colGameField,
    ForAll(
        Sequence(9),  // 9 cells for a 3x3 grid
        {
            ID: Value,
            IsMine: false,           // is this cell a mine?
            IsRevealed: false,       // has the player clicked it?
            AdjacentMineCount: 0,    // how many mines are nearby?
            PosX: Mod(Value - 1, 3) + 1,        // X position: 1, 2, 3
            PosY: Int((Value - 1) / 3) + 1      // Y position: 1, 2, 3
        }
    )
);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Don't forget to set your Gallery's &lt;code&gt;Items&lt;/code&gt; property to &lt;code&gt;colGameField&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe2x20beocib8m428e6x9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe2x20beocib8m428e6x9.png" alt="Items" width="800" height="540"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Go ahead, hit the Start button. Marvel at your 9 beautiful empty cells. Take a moment. You deserve it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2 — Plant the Mines&lt;/strong&gt;&lt;br&gt;
I decided to set the number of mines to grid size + 1, so 4 mines for a 3×3 grid. The strategy: shuffle all cell IDs, grab the first 4, and tell them "sorry, you're a wizard... oi, a mine now."&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;// 2. Mine n+1 cells randomly
ClearCollect(
    RandomMineIDs,
    FirstN(Shuffle(Sequence(9)), 4)
);

UpdateIf(
    colGameField,
    ID in RandomMineIDs.Value,
    {IsMine: true}
);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You won't see much yet since all cells are hidden. But if you're curious (read: impatient), temporarily add a Label to the gallery template with &lt;code&gt;Text = ThisItem.IsMine&lt;/code&gt;. Hit Start a few times and watch the mines shuffle around randomly. Fun, right? Now remove the label — no cheating.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8ypvaiysi4sfl51rp4y0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8ypvaiysi4sfl51rp4y0.png" alt="Try" width="800" height="256"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3 — Calculate Neighbour Mine Counts&lt;/strong&gt;&lt;br&gt;
This is the meaty part. There are two ways to approach this:&lt;/p&gt;

&lt;p&gt;Check every safe cell and count mines around it&lt;br&gt;
Check every mine and increment its neighbour's counters&lt;/p&gt;

&lt;p&gt;I went with option two — it's likely more efficient on larger grids. Here's the idea:&lt;br&gt;
a) Find all mines (we have X/Y coordinates, so this is easy)&lt;br&gt;
b) Find all 8 neighbours around each mine&lt;br&gt;
c) If a neighbour is in bounds and not a mine, increment its &lt;code&gt;AdjacentMineCount&lt;/code&gt; by 1&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;// 3. Calculate adjacent mine counts
ForAll(
    Filter(colGameField, IsMine = true),  // loop through all mines
    ForAll(
        Filter(
            ForAll(
                Sequence(9, 0),  // 0-8 to generate 3x3 offset grid
                {
                    NX: PosX + (Mod(Value, 3) - 1),
                    NY: PosY + (RoundDown(Value / 3, 0) - 1)
                }
            ),
            // exclude: the mine itself, out-of-bounds cells, and other mines
            !(NX = PosX &amp;amp;&amp;amp; NY = PosY) &amp;amp;&amp;amp;
            NX &amp;gt; 0 &amp;amp;&amp;amp; NX &amp;lt; 4 &amp;amp;&amp;amp;
            NY &amp;gt; 0 &amp;amp;&amp;amp; NY &amp;lt; 4 &amp;amp;&amp;amp;
            LookUp(colGameField, PosX = NX &amp;amp;&amp;amp; PosY = NY).IsMine = false
        ),
        Patch(
            colGameField,
            LookUp(colGameField, PosX = NX &amp;amp;&amp;amp; PosY = NY),
            {AdjacentMineCount: LookUp(colGameField, PosX = NX &amp;amp;&amp;amp; PosY = NY).AdjacentMineCount + 1}
        )
    )
)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;The clever trick here: Starting &lt;code&gt;Sequence&lt;/code&gt; from 0 and using &lt;code&gt;Mod(Value, 3) - 1&lt;/code&gt; gives us offsets of -1, 0, +1 for both X and Y — covering all 8 neighbours plus the cell itself, which we then filter out. Neat!&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Want to test? Add a label with &lt;code&gt;Text = ThisItem.AdjacentMineCount&lt;/code&gt;. Notice how mined cells show 0 — because we excluded them from incrementing. Once you're done admiring your work, clean up the label.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fiq69nj4qcvqkn2ihyms0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fiq69nj4qcvqkn2ihyms0.png" alt="Try2" width="800" height="264"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Making Cells Clickable&lt;/strong&gt;&lt;br&gt;
Almost there! Select the Button &lt;em&gt;inside&lt;/em&gt; your gallery template and set these two properties:&lt;br&gt;
&lt;code&gt;OnSelect&lt;/code&gt; — reveal the cell on click (but only if it hasn't been revealed yet):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;If(!ThisItem.IsRevealed, Patch(colGameField, ThisItem, {IsRevealed: true}))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;Text&lt;/code&gt; — show what's under the cell:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;If(ThisItem.IsRevealed &amp;amp;&amp;amp; ThisItem.IsMine, "💥",
    If(ThisItem.IsRevealed, Text(ThisItem.AdjacentMineCount), "❓"))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Mined cell? 💥. Safe cell? Shows the neighbour count. Unrevealed? ❓. Clean and simple.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Play It!&lt;/strong&gt;&lt;br&gt;
Hit Start and start clicking. Watch the numbers appear, find the mines, try not to explode. Click Start again for a fresh game.&lt;br&gt;
Yes, there's no penalty for hitting a mine yet. No flagging. No timer. No mine counter. The board is tiny. But you know what? It works. And that's a win.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fumjumoxrq3fo26loppl0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fumjumoxrq3fo26loppl0.png" alt="Win" width="800" height="270"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What's Next?&lt;/strong&gt;&lt;br&gt;
After sitting with it a little longer, I did add all the missing pieces — bigger board, flagging, timer, mine counter, and a proper game-over screen. The full version is actually good enough to drop on a SharePoint portal.&lt;br&gt;
Just... maybe don't show your boss. 🙂&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmxmw7bswdk1qxc9q2mma.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmxmw7bswdk1qxc9q2mma.png" alt="Advanced" width="502" height="750"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Built on a cold Sunday instead of going fishing. Zero regrets.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What do you think — should Power Apps game development be a thing? Drop a comment below!&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>powerapps</category>
      <category>powerplatform</category>
    </item>
  </channel>
</rss>
