cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
xx
Advocate IV
Advocate IV

Get version number or release date of the app

Is there any way to get the current version number or release date of your app using a formula?  It would be really good to get metadata about the app using formulae, similar to the User object.

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Lachlan_w
Advocate II
Advocate II

Hello,

 

You can now do most of this using the PowerApps for App Makers connection.

 

I've written a blog outling how to get the version number into you app. You can find that here.

 

While researching the topic I saw a lot of the metadata you are after was included in the dataset retrived when you run the get versions function.

 

I hope that helps.

 

Cheers,

 

Lachlan

View solution in original post

7 REPLIES 7
v-yamao-msft
Community Support
Community Support

Hi xx,

 

Currently, we could get the version number or release date in web.powerapps.com, on an app tile, click the ellipsis (. . .), and then click Details.


It seems that there is no function can be used to get the version number or release date.


Please consider to create an idea at PowerApps Ideas Forum, I will collect and report it from my side.
https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

 

Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Lachlan_w
Advocate II
Advocate II

Hello,

 

You can now do most of this using the PowerApps for App Makers connection.

 

I've written a blog outling how to get the version number into you app. You can find that here.

 

While researching the topic I saw a lot of the metadata you are after was included in the dataset retrived when you run the get versions function.

 

I hope that helps.

 

Cheers,

 

Lachlan

View solution in original post

Building on the solution in the blog above I found a nice neat little way of getting a "v6.7" label in my app.PowerApps Version Number.JPG

 

I just built all the original functions in the video linked above into the one button:

 

ClearCollect(myAppVersions,PowerAppsforAppMakers.GetAppVersions(appID));
ClearCollect(myAppVersionsv2,Ungroup(myAppVersions, "value"));
ClearCollect(myAppVersionsv3, Filter(myAppVersionsv2, properties.lifeCycleId="Published"));

 

 

Then I setup a new label with the text:

 

"v" &
//count number of rows in myAppVersionv3
CountRows(myAppVersionsv3) &
"." &
//Need to remove the "T" and "Z" from the version name (which is really just a time stamp)
//Count the number of rows in myAppVersionv2, where the name is greater (aka newer) than the last published version
CountIf(myAppVersionsv2, Value(Substitute(Substitute(name, "T", ""), "Z", "")) > Value(Substitute(Substitute(First(myAppVersionsv3).name, "T", ""), "Z", "")))

 

This label counts the number of published versions as the leading version number

It then counts the number of saved, unpublished (aka "draft") versions since the last published version as the trailing number

 

Thanks,

 

Lachy

Where is the video ?


@Lachlan_w wrote:

I've written a blog outling how to get the version number into you app. You can find that here.

Hello @lachlan_hughes , i have followed your video step by step. i have around 170 version of update in my app

 i am trying to setup the app version , i followed all the steps but in my case result is not correct.

This is what i am writing on button on select

 

Set(appnumber,GUID("****************"))
ClearCollect(myAppVersion,PowerAppsforMakers.GetAppVersions(appnumber))
ClearCollect(myAppVersionUngropped,Ungroup(myAppVersion,"value"))
Set(PublishedVersion,LookUp(myAppVersionUngropped,properties.lifeCycleId="Published").properties.appVersion);
ClearCollect(MyPublishedVersion,Filter(myAppVersionUngropped,properties.appVersion<=PublishedVersion));

 

and on display html label 

 

"<b>Current Version: </b>"&CountRows(MyPublishedVersion)

 

SachinG31_0-1631787997374.png

 Where is the mistake, i have tried same formula for another App having 30 version for that it gives  correct result.Just now i tried for one more app and it gives correct result , for version less than100, it works but for after it does not , i guess , BUT WHY???

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,208)