Hi Everyone,
I have a problem with replacing Outlook connection that uses user email with service account Outlook connection.
At the first release user allowed the app to use his/her email for Outlook connection (we did not have service account for that moment). Right now I need to replace the user email with a service account email to send automatic notifications from this account.
I have 4 separate solutions for app, flows, connection references, environment variables. For importing I used MS Power Platform CLI.
What I did (as an example I will describe the situation on Test env):
1. On Test environment I replaced user Outlook connection with service account Outlook connection.
2. On Dev environment in the app I deleted user Outlook connection and added service account Outlook connection. Published.
3. On Dev I created a new Outlook connection.
4. In Connection References solution I created a new reference for service account Outlook connection and linked it with that connection. Published.
5. I downloaded all solutions on my computer.
6. On the computer I have created deploymentSettings.json file for Connection References solution. A new service account conn ref was added to that file (used pac solution create-settings command).
7. I added connection ID from Test env into deploymentSettings file in Outlook conn ref.
8. Imported the solution on Test using that file.
I am a system admin on Test env. I launch the app and I see a new service account Outlook connection. When the tester as a user launches the app, she still sees her email in the Outlook connection.
How to replace old connection with a new one without deleting the connection on the env as the end users will not have this possibility?
Thank you.


Report
All responses (
Answers (