Announcements
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
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.
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.
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 😞
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?
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.
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.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Romain The Low-Code... 240 Super User 2026 Season 1
Valantis 226
Arild Aarnes 73 Super User 2026 Season 1