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 / Power Apps / Outlook365 connector
Power Apps
Unanswered

Outlook365 connector

(0) ShareShare
ReportReport
Posted on by 382

Hi there

 

We have an app that is sending an email using the Office365Outlook.SendEmailV2(...) method which is working in principle.

 

Now we want to use a dedicated account for that mail, not the one that is currently logged in. This way the mail would always come from a service user.

 

We are thus trying to set up the connector with the other account.

 

In the connections section it is shown with the current users account:

 

uwenagel_0-1658418342641.png

 

In the three dots there is a possibility to change the account, however when doing that, it is not changed at all!!

 

What is the correct way to set up a Outlook365 connector with a different account?

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at

    Hi @uwenagel ,

    You can use the From: parameter when sending mail, providing the user has access to the account the mail is being sent from. You cannot change the account in the way you describe as the whole purpose of connector authentication is that the logged-in user has the appropriate licence to use the connector. There is a Flow workaround possible requiring a dummy list with the parameters (then it would come from the service account)

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

     

  • WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at

    Hi @uwenagel ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • uwenagel Profile Picture
    382 on at

    Unfortunately this is not what I was looking for. I have to say that we had this functionality (connector with different users) but for any reason this is gone and cannot be reproduced. The workaround with Automate will probably eventually lead to the same problem.

     

    So the problem still exists!

  • WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at

    Hi @uwenagel ,

    I am not sure what you had before as this has never been possible to my knowledge.

  • uwenagel Profile Picture
    382 on at

    But we have the same situation with another connector (Office 365 Users)! See the attached list of connections! The one starting with svc... is the service user.

     

    uwenagel_0-1658751067089.png

     

  • WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at

    Hi @uwenagel ,

    When using the Office365Outlook.SendEmail connector, it authenticates on the connection of the logged-in user (it has to determine whether they actually have a licence for an Outlook connector) and the mail comes from them unless you use the From: parameter (then they need Send access to that mailbox). 

  • rb Profile Picture
    835 Super User 2024 Season 1 on at

    Hey, one way I can think of solving this is by invoking a Flow which has Run-As configuration set by your desired 'Send-As' user, which will force all emails coming from your PowerApp to be sent through that user's Outlook connector.

     

    The main difficulty setting this up is that "Run-As" is only available for Instant flows, not PowerApps Triggered flows. As such, I needed to call the Instant as a child flow. (Now we've moved the functionality from PowerApps to two layers down: PowerApps -> PowerApps Flow -> Instant Flow........... not sure if this is ideal, but it works 😉)

     

    Create Svc-Email "Instant" Flow

    1. Create an "Instant Flow" in your Solution
    2. Set up any dynamic properties as input arguments (in my example I am only using Subject and Body)
    3. Feed arguments to "Send an email (V2)"
    4. Ensure you have at least one response-type action

    metsshan_0-1658798231349.png

     

    Create Svc-Email "PowerApps Triggered" Flow

    1. Create a "PowerApps Triggered" Flow in your Solution.
    2. Call child Instant flow, assigning dynamic properties to "Ask in PowerApps" 
    3. Save Flow, then add to your PowerApp

    metsshan_1-1658798305888.png

    metsshan_2-1658798319092.png

    metsshan_3-1658798332378.png

    metsshan_5-1658798345879.png

     

    Set Run-As

    1. Make sure your Send-As account has "Office 365 Outlook" connection created
    2. Open the Instant Flow details
    3. Under "Run only users" assign your Send-As account's Connector and Save the setting

    metsshan_6-1658798380067.png

    metsshan_8-1658798394292.png

    metsshan_10-1658798414186.png

    Run from PowerApps!

    metsshan_11-1658798447316.png

     

    I required similar functionality when using Office Scripts - it was easier to set up Run-As from one account which has access to the script instead of all users requiring access to the script. I found it could be a bit awkward during development though, as I use my own account to edit the Flow, then have to re-set the Run-As everytime I make a change to the Child Flow.

     

    Hope this helps!

  • WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at

    Thanks  @metsshan ,

    You can actually do it a lot easier than that with a Flow using a "dummy" list, creating a new record in it with all your parameters and then triggering the Flow from "When a record is created". This thread was questioning why a Flow needs to be used.

  • rb Profile Picture
    835 Super User 2024 Season 1 on at

    Ahh, I see now. I thinnk that would require some kind of Implicity Shared Outlook connector, which to my knowledge does not exist.

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…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard