@NigelP
Did you find any acceptable solution?
I read over the article by John Liu. It suggested using the List GUID ID for the "For A Selected Item" when trying to get a Flow to show up in a SharePoint Site Pages Library, but I still think it was using the Default Environment. I did try using the List ID when I saved a Flow from a different Environment, but the Flow did not show up in the Context Menu.
@NigelP - Were you able to get a Flow published in an Environment other than the Default Environment to show up in the Context Menu?
One of the benefits of creating a Flow with the SharePoint "For A Selected Item" trigger is that it adds the flow to the Context Menu and it is Security trimmed.
Others ( @CFernandes ) have suggested creating a button using Column JSON formatting which does work but it lacks the ability to put any Security trimming in place. If the button is clicked by a user without permission to run the flow, the flow dialog just never shows up.
@marcodeluca
I am interested in more information on the workaround you suggested for using a "Dummy Starter" Flow. How did you identify the correct Environment to run the main flows in (assuming that you have created a Solution that is promoted via ALM to your other Environments of Dev, Staging, and Prod)? How many Premium licenses did you find that this set-up needed?
I have also looked at other solutions such as using SPFX to create a ListView command. This implementation would need to launch the flow via an HTTP REST call resulting in the use of Premium Licenses.
It seems the best solution for this issue would be for the Microsoft SharePoint team to add the ability for a Site Admin to select the Power Platform Environment in a setting that the Context Menu would use in it's query to build out the list of Flows for a list.
@yashkamdar
I have to disagree with you regarding "this looks pretty specific". I guess this goes back to how the Power Platform should be viewed. It is a full fledged development environment where a company would want to have a traditional dev, staging, and production environment. Or should it be viewed more as a citizen developer platform where no one ventures out of a default environment. I think this is an important product enhancement that is best supported by the developer who coded the Context Menu in SharePoint who never realized that there would be an Environment other than the Default one.
Best Regards
Mark