Is it possible to create a Azure DevOps pipeline which creates a copy of a solution in the same environment? I have been trying to use the logic shown in blogs to export from a dev environment and import to a QA/PROD environment but haven't gotten this working when I want to stay in the same environment.
Solved! Go to Solution.
Thanks for the response @cchannon. Forgot to update the post but I did get this to work. I created a branch of my solution in ADO, changed the unique name of the solution in Solution.xml, and imported using a pipeline.
So I take it you're trying to export a solution, make a small change, then re-import it into the same environ, but you're hitting an issue where your change isn't reflected in the target environment?
This might be because the solution version number is still the same as what's already in the environ, so Dataverse isn't even inspecting its contents on import. Have you tried just incrementing the solution number in the solution.xml when you make whatever other change(s) you are making?
Also, yes, you can make a copy of a solution in the same environment using PowerShell and webapi calls but it would be quite a bit of work. I suspect there is probably a more direct way to achieve your core objective (hence the previous post)
Thanks for the response @cchannon. Forgot to update the post but I did get this to work. I created a branch of my solution in ADO, changed the unique name of the solution in Solution.xml, and imported using a pipeline.