Hi @Anonymous ,
Do you want the D365 connection to be changed into the D365 connection in QA Environment automatically when you import the app into your QA Environment?
If you want the D365 connection to be changed into the D365 connection in QA Environment automatically when you import the app into your QA Environment, I afraid that there is no way to achieve your needs in PowerApps currently.
When you imported a canvas app from one Environment to the target Environment, the connection created in your source Environment would be invalid. Changing connection automatically across Environments is not supported in PowerApps currently.
As an alternative solution, you could consider create a connection to the D365 which is in your QA Environment within your canvas app, then export the canvas app into a package file, then import the package file into your QA Environment, then you do not need to edit your app to change the D365 connection.
Note: When you create a connection to D365 within a canvas app, you could select specific Environment the D365 connects to.
Best regards,