Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Ask the Fabric Databases & App Development teams anything! Live on Reddit on August 26th. Learn more.

Reply
srokaja
Regular Visitor

How to Get Environment Group via flow for Refresh a dataflow -31c688f59-us

For refreshing a power platform dataflow in PowerAutomate - "Refresh a dataflow" action (Non Power BI).  This is not a PowerBI dataflow.

For supporting deployments:

In power automate:

How to programmatically get the full "Group"/groupIdForRefreshDataflow value to include the last two values  i.e. -31c688f59-us  Please see the example below.

Is this value comprised of {environment ID}-{workspace ID}-{Region}?

How to get -{workspace ID}-{Region}?

 

 

{

    "host": {

        "connectionReferenceName": "shared_dataflows_1",

        "operationId": "RefreshDataflow"

    },

    "parameters": {

        "workspaceType": "Environment",

        "groupIdForRefreshDataflow": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx-31c688f59-us",

        "dataflowIdForRefreshDataflow": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"

    }

}

1 ACCEPTED SOLUTION
burakkaragoz
Community Champion
Community Champion

Hi @srokaja ,

 

Yeah this one can be a bit tricky. The groupIdForRefreshDataflows you're referring to is actually a composite value that includes the environment ID and a region-specific suffix. It's not exactly the same as workspace ID + region, though it might look like it.

If you're trying to get this programmatically inside a flow, here's what usually works:

  • Use the List Environments action from the Power Platform connector to get the environment ID.
  • Then, depending on your region, the suffix (like -31c688f59-us) is usually tied to the geo where the environment is hosted. Unfortunately, there's no direct API that gives you the full groupIdForRefreshDataflows in one go.
  • One workaround is to manually trigger a refresh once and inspect the run history to capture the full value. Then you can reuse it in future flows or store it in a variable/config.

Also, make sure you're using the correct connector (shared_dataflows_1 looks fine) and that the environment has the right permissions set for the flow to trigger the refresh.

Hope this helps a bit.

If my response resolved your query, kindly mark it as the Accepted Solution to assist others. Additionally, I would be grateful for a 'Kudos' if you found my response helpful.

View solution in original post

2 REPLIES 2
srokaja
Regular Visitor

Thank you for the feedback.

I performed something similar and already was dynamically getting EnvID via workflow()?['tags/environmentName'then had to run flow manually the first time to get -{Geo} and -{suffix} which I have in an environment variable "-31c688f59" and suffix "-us".  I was trying to do my duediligendce to make sure I didn't hardcode values in case something could change with hosting in the future.  Thank you

burakkaragoz
Community Champion
Community Champion

Hi @srokaja ,

 

Yeah this one can be a bit tricky. The groupIdForRefreshDataflows you're referring to is actually a composite value that includes the environment ID and a region-specific suffix. It's not exactly the same as workspace ID + region, though it might look like it.

If you're trying to get this programmatically inside a flow, here's what usually works:

  • Use the List Environments action from the Power Platform connector to get the environment ID.
  • Then, depending on your region, the suffix (like -31c688f59-us) is usually tied to the geo where the environment is hosted. Unfortunately, there's no direct API that gives you the full groupIdForRefreshDataflows in one go.
  • One workaround is to manually trigger a refresh once and inspect the run history to capture the full value. Then you can reuse it in future flows or store it in a variable/config.

Also, make sure you're using the correct connector (shared_dataflows_1 looks fine) and that the environment has the right permissions set for the flow to trigger the refresh.

Hope this helps a bit.

If my response resolved your query, kindly mark it as the Accepted Solution to assist others. Additionally, I would be grateful for a 'Kudos' if you found my response helpful.

Helpful resources

Announcements
Fabric July 2025 Monthly Update Carousel

Fabric Monthly Update - July 2025

Check out the July 2025 Fabric update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.