Hi!
My question
I cannot find any way to programmatically create a Connection.
Any ideas on how to accomplish this, even if complicated, is of interest to me.
The background
In my automatic test pipeline setup I currently copy a template environment to a test environment to be able to test solution import followed by the execution of automatic tests. When I copy an environment the target environment does not lose its already existing Connections, but when I execute an environment reset instead, all existing Connections are lost. I would prefer that my pipeline would use a reset operation instead of a copy operation, but that requires me to create a Dataverse Connection programmatically after the reset, in order to connect it to the Connection Reference included in the solution package being imported. Otherwise the cloud flows in the solution cannot be verified by the automatic tests.
Best regards,
Henrik Svensson