Hi @BCLS776 Brian,
Thanks for getting back to me and for your expertise on this.
I managed to resolve this but with difficulty. I'm posting it here in case this happens to someone else.
When I move my powerapp to the unmanaged solution, the solution removed the flows (ones that have the powerapps trigger and are available to be selected from in the powerapps studio when you want to connect them to a powerapps button's 'onselect' property).
This did not affect the functioning of the app nor flows as they continued to run without incident. However, it became an issue when I updated my flows, deleted them from the datasources in the powerapps studio and then when I wanted to re-add the updated flow, I couldn't see them in the power-automate list in the powerapps studio.
I tried:
1. Deleting the solution: The change the solution had on the powerapp seems irreversible even when the solution was deleted and the app was back 'outside' the solution and I could still not see the flows in the 'solution-freed' app.
2. I tried to recreate the flow inside the powerapp whilst in the solution (I created a new solution and readded the app)- the advice given in the microsoft documentation- I had all sorts or problems copying and pasting actions, etc from my original flows into this new 'solution-aware' flow and short of manually rebuilding the entire thing I abandoned this approach due to time pressure. I could not rebuild a production flow that took 8 months to build, test and get working in a night. so I tried:
3. Exporting the PowerApp (from the solution) as a package into my original environment that the power app was working in. I renamed it as a later version number so I wouldn't get confused then I imported it into the target environment (the original).
On import I needed to create all the flows and resources as new and renamed then the later version number.
When I went into my newly imported powerapp in my original environment I could see the flows again (Phew!!!). However I saw the original flows plus the higher versions I created as new.
The formula's where the flows were references had not changed but I still needed to remove the old flow in this app and remap the updated flow (I still used the original not the later versions). I had to remove of all the flows in the app and remapped them whether I had updated them or not (the old flows not the news ones created in the package).
It worked and thankfully I'm back in action!
I still need to go back and delete all the additional flows created in the app and the flow portal.
It all goes back to your original advice- prevention is better than cure. Rather export a copy and test in solutions and in general without upsetting the production app.
If there is simpler way you might think of then the above.
Thank you again for your help and have a good weekend.
Regards,
Daniel