web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Cant change flow conne...
Copilot Studio
Unanswered

Cant change flow connector :(

(0) ShareShare
ReportReport
Posted on by 133

Hello,

 

I have made a flow to send emails from the bot, however it is currently sending them from the O365 account I am using to build the bot. I have created a service account with its own mailbox to send emails from.

 

In the flow, when I go to try and add a new connection reference it gives me the option to put in the new username but it never asks for a password, it just auto signs back in with my current logged in user. 

 

How do I add a different O365 account to use as the sender?

 

thanks

Categories:
I have the same question (0)
  • Jcook Profile Picture
    7,781 Most Valuable Professional on at

    Hello @adrian-m 

     

    Can you try going to the solution where your bot is, and delete the connection reference. Than edit the flow and add a new connection.

     

    if that doesn’t work,

    Try adding a connection inside a solution using the service account. Than inside the solution with the bot add the connection reference and switch to the correct one inside your flow.

  • Pstork1 Profile Picture
    68,898 Most Valuable Professional on at

    The problem is that flows that are started with a manual trigger, which is what you are doing when you call a flow from a bot, are run in the context of the user who invokes the flow.  In this case that would be the account that you used to create the bot.  To get it to use the service account you need to author the bot using the service account.  Then when the flow is triggered it will run as the service account and the email will come from the service account.

     

    If the email action you are using has a From field you can also fill that in with the service account mailbox.  But if you do that then the author of the bot will need "Send on Behalf of" permission to that service account mailbox.

  • adrian-m Profile Picture
    133 on at

    i tried this without success unfortunately, I deleted all connection references and tried both from the connections and from inside the flow to make a new one and it keeps adding it as my signed in user 😞

  • adrian-m Profile Picture
    133 on at

    So the only solution to to delete the bot, get power agents license moved over to the service account, and then rebuild the bot and flows etc from scratch?

  • Pstork1 Profile Picture
    68,898 Most Valuable Professional on at

    You should be able to share the bot with the service account user.  Then login and edit, save, and publish the bot as the service account.  That should change the credentials used for the flow.

  • CU22081450-0 Profile Picture
    Most Valuable Professional on at

    Hi @adrian-m ,

     

    Do this problem still happening yet?

    If yes, could you please provide more details?

    Otherwise, could you please accept Jcook or Pstork1's reply as a Solution? Thanks! 🙂

     

    cc: @Jcook @Pstork1 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 400

#2
chiaraalina Profile Picture

chiaraalina 134 Super User 2026 Season 1

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 98 Moderator

Last 30 days Overall leaderboard