Get the version number of your app in PowerApps

Have you ever tried to get the version number of your app developed in PowerApps to display in your app?

This version number helps you check that your user is running the right version of your app.

Version number in Power Apps

With the following expression you can get the version number of your existing app.

Version number expression in PowerApps

In my case my app is call version and the following expression is used to get the number:

CountRows(PowerAppsforAppMakers.GetAppVersions(First(Filter(PowerAppsforAppMakers.GetApps().value,properties.displayName = "version")).name).value)

!Note! The PowerAppsforAppMakers connector was recently renamed and the following code is th the corrected version of the code:


CountRows(PowerAppsforMakers.GetAppVersions(First(Filter(PowerAppsforMakers.GetApps().value,properties.displayName = "version")).name).value)

8 thoughts on “Get the version number of your app in PowerApps

  1. commented on April 21, 2020 by Brad Miller

    This doesn’t work as I applied the line you gave above in a label… “PowerAppsforAppMakers” doesn’t exist. Can you give me some help?

    • You will need to add a connection to the Power Apps for App Makers connection. If you try to add a connection and search for Makers then you should find it.

  2. commented on April 21, 2020 by Brad Miller

    Thank you for the fast response. I was able to find the App Makers connection and add it. However, the name has changed from “PowerAppsforAppMakers” to “PowerAppsforMakers”. After applying that change, your function validates with no errors. However, I get nothing for the countrows function. Any further ideas?

    • Hi Brad.

      Looking at the total expression, I would start to split this up and use labels and galleries to display part of the expression. Or withihn the overall expression you can select parts of it . PowerApps will show you a preview of the data.

      So where the full expression is:

      CountRows(PowerAppsforAppMakers.GetAppVersions(First(Filter(PowerAppsforAppMakers.GetApps().value,properties.displayName = “version”)).name).value)

      You could try and check the value of
      Filter(PowerAppsforAppMakers.GetApps().value,properties.displayName = “version”)

      and then

      First(Filter(PowerAppsforAppMakers.GetApps().value,properties.displayName = “version”)).name

  3. commented on April 22, 2020 by Brad Miller

    Hi Pieter, Thank you again for your quick response!
    So for simplicity, I put this line in the App::OnStart method:
    ClearCollect(GetApps, PowerAppsforMakers.GetApps().value)

    This runs fine and gives me 5 columns (Id, name, properties, tags, type) when I look at my collections. Unfortunately, I get no rows.

    I feel like I am missing something basic for this not to work. Any more suggestions?

    Thank you,

  4. commented on April 23, 2020 by Brad Miller

    Not a silly question. Yes, it has been published. When I look at the details of my app and click the Versions tab, I am up to Version 48.

    • Hi Brad,

      I just tested the code again ( I updated the code to use the new Connector name in the post) and for me I’m still getting a single number returned.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: