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 / Flow doesnt work when ...
Power Automate
Answered

Flow doesnt work when moved to non-default environment

(1) ShareShare
ReportReport
Posted on by 14
Hi,
 
I copied the flow to from default env to one meant for production.
It a manual flow with started by user pressing the button on Sharepoint List. While original flow works fine, i also tested it by turning it back on, and all permissions are the same (it also uses the service account) it stuck on this:
 
 
Just stuck here, doing nothing. Its directly after pressing the button. It can be like this for 15 minutes, no error no nothing...  Also dev tools doesnt show anything useful.
 
Is there some special things to do when flow is in nondefault env? I obviously added the ID of environment in json code, did not change anything else.
 
So the original part:
 
  "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
  "elmType": "button",
  "customRowAction": {
    "action": "executeFlow",
    "actionParams": "{\"id\": \"hereidoftheflow\"}"
 
while when changing to flow on non default env i changed it to:
 
  "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
  "elmType": "button",
  "customRowAction": {
    "action": "executeFlow",
    "actionParams": "{\"id\": \"v1/envID/flowID\"}"
 
 
 
What i do wrong?
Categories:
I have the same question (0)
  • stampcoin Profile Picture
    5,158 Super User 2026 Season 1 on at
    Just wondering, when you copy the flow ,to whom ? or you export the flow and import to prod env ?
     
  • SW-11070625-0 Profile Picture
    14 on at
    @stampcoin i import it to new env to a solution. Maybe it should not be in a solution as on default env its not part of the solution?
  • Ellis Karim Profile Picture
    12,081 Super User 2026 Season 1 on at
    We need more details to help you! Please share a screenshot of your flow, showing the configured actions. If there’s an error, tell us which action failed and include the error message. This will help us understand the issue and provide a solution faster. Thank you!
  • stampcoin Profile Picture
    5,158 Super User 2026 Season 1 on at
    Could you please double check the environment ID in the JSON file ?
    Copy the  flow identifier rather than type it.
    You will get pattern like v1/Env_ID/Flow_ID
     
     
  • SW-11070625-0 Profile Picture
    14 on at
    @stampcoin@Ellis Karim its not an issue with flow. Its exactly the same flow -> all the steps are the same, all permissions are the same. It works from default env but from prod env.
     
    Yes flow identifier is correct.
  • stampcoin Profile Picture
    5,158 Super User 2026 Season 1 on at
    I did a test, but I used export the package (default env) and import it in another env.
    During the import, I chose new, updated the connections.
    Then enable it, and run it once.
    After that, I copied the identifier of the flow (new environment )and pasted to the SP list column format json file.
    Works for me. nothing special, except I am the member of system admin group ( SP and PowerPlatform).
    Could you please use developer tool in the browser to check the event when click the button ?
    It might give more clue.
  • SW-11070625-0 Profile Picture
    14 on at
    @stampcoin maybe the issue is that i imported as part of solution? I will try to do it outside solution - maybe thats reason.
     
    Also dev tools dont show anything usefull :(
  • stampcoin Profile Picture
    5,158 Super User 2026 Season 1 on at
    Worth to try that. please share the result when you feel free.
    thanks.
  • SW-11070625-0 Profile Picture
    14 on at
    @stampcoin the flow runs if i login as sa.flow in browser that is the flow owner.
     
    I dont get it -> all connections look ok, json looks ok (and it works when logged as sa.flow) but it doesnt work for any other user, even the ones that i share with speciffically. IT also doesn  display any usefull errors or even data in Dev tools of edge. 
     
    Its really simple flow :
     
  • Verified answer
    yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at
     
    The SharePoint manually triggered flows (For a Selected Item and For a Selected file) work on the default environment only. If you add these flows to another environment the flows will not work/ not show up on SharePoint. Link to MS docs confirming this: https://learn.microsoft.com/en-us/sharepoint/dev/business-apps/power-automate/sharepoint-connector-actions-triggers
     
    Screenshot: 
     
    Hope this Helps!
     
    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 464

#2
Haque Profile Picture

Haque 431

#3
David_MA Profile Picture

David_MA 323 Super User 2026 Season 1

Last 30 days Overall leaderboard