web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Get solution version i...
Power Automate
Answered

Get solution version in flow

(0) ShareShare
ReportReport
Posted on by 1,016

Hi all,

 

In flows, is it possible to retrieve the solution version number it belongs to?

 

I don't find much documentation about this. Anyone knows how to? Or is it not possible?

 

Thanks very much,

Ski 

Categories:
  • Expiscornovus Profile Picture
    33,997 Most Valuable Professional on at

    Hi @SkiDK,


    This would be possible by using a couple of Dataverse tables. You could use the processes, solutions components & solutions tables to retrieve the correct version and name of a related flow.

     

    Below is an example of that approach.

     

    dataverse_getsolutionnameversion.png

  • Verified answer
    Expiscornovus Profile Picture
    33,997 Most Valuable Professional on at

    Hi @SkiDK,

     

    I have found an easier way by using the xrmWorkflowId property of the workflow function. This way you don't have to lookup a row in the Processes table.

     

    51808685867_621b59d4b8_o.png

     

    Btw, I have also written a short blog about this approach:

    https://www.expiscornovus.com/2022/01/09/solution-name-and-version-of-flow/

     

  • SkiDK Profile Picture
    1,016 on at

    @Expiscornovus works wonderfully. Thanks very much.

  • JasonZF Profile Picture
    574 on at

    I'm sorry to revive this, but this flow is not working in my production environment, when it does in the development environment. Since all flows are also present in the Default Solution, that solution is returned first in the "Get Rows" action. Because we are manually specifying the first array item, the wrong solution name is returned.

     

    Any ideas?

  • virakones Profile Picture
    406 on at

    Just wanted to mention that we are getting Default 1.0 in our production environment as well instead of the custom managed solution version using the above.

  • ojob Profile Picture
    12 on at

    Same issue here, and solution found:

    • In List Rows - Solution Components, do not set Row count parameter, so that all solutions where this flow appears are returned
    • In Get a row by ID, in the expression field, enter the following expression:
      last(outputs('List_rows_Solution_Components')?['body/value'])['_solutionid_value']
    • Enjoy!

    So, the change is adding :

    last(...)`

    assuming that Default solution would always be the first in the list for whatever reason, and our solution of interest be the last. I tried using sort function, but there is no field in output of first step that can be used for this, event the createdon field that is clearly not in line with the date when the solution was created.

     

    Hope this helps!

  • virakones Profile Picture
    406 on at

    @ojob 

    Unfortunately, that still provided me the default solution. As a last resort, I removed everything and started over.

     

    I did a simple "List Rows" action from the Solutions table and filtered it where uniquename eq '[my solution name]'. Then with a Compose get the version to send back to powerapps. The main difference here is that I hard-coded the unique solution name to filter the solutions table but it worked across all environments.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 425

#2
11manish Profile Picture

11manish 323 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard