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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Business Central forum

Send Approval Email Via MS Flow

(0) ShareShare
ReportReport
Posted on by

I just need to send an approval email using MS flow and the user should be able to perform the approve/reject action from the email body. 

Note : I can send the approval notification emails to any external email address successfully. (ex; to a gmail/outlook) 

However, in my workflow in MS Flow, if I add an external email address to 'Assigned to' field in the workflow action,  then the workflow fails. So, I cant send an approval email. 

So, how should I figure out this issue?

0878.Capture.PNG

Categories:
  • Suggested answer
    Marco Mels Profile Picture
    Microsoft Employee on at

    Hello,

    Is there an error when trying to send it via  MS Flow?

    Thanks.

  • Community Member Profile Picture
    on at

    5621.Capture.PNG

    HI,

    Yes. Please refer the screen shot attached.

    Is this issue related to license? 

    (I tried to go ahead with the 'Send Email with Options' feature. But it seems like it does not link with business central.)

    Thanks. 

  • Community Member Profile Picture
    on at

    Hi,

    In addition, in the business central SMTP mail setup also fails.

    8032.Capture.PNG

  • Mustufa Shehreyar Profile Picture
    1,070 on at

    @Lihini: I encountered the same SMTP error but if I use my other e-mail address from another tenant which has ".onmicrosoft.com" tagged next to it, it works fine.

    Chris Bulson: Would you be able to explain why abc@xyz-corp.com doesn't work and why abc@xyz.onmicrosoft.com works?

    Stefano Demiliani Any ideas?

    Regards,

    Mustufa

  • Community Member Profile Picture
    on at

    Hi Mustufa,

    I am also using a email address which has ".onmicrosoft.com" . But it fails.

    Do we need to have exchange mail license in order to success this piece?

    Regards,

    Lihini

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,172 Most Valuable Professional on at

    I don't know what's the topic here, but checking the error it seems that your SMTP is not enabled to send email from an application/client that is not authenticated (maybe same domain)? This is an SMTP setting that you've to check with your domain administrator.

  • Mustufa Shehreyar Profile Picture
    1,070 on at

    @Stefano: The topic is to be able to send an approval e-mail with either MS flow or Business central workflows.

    I was encountering this SMTP error only recently, previously it used to work fine for all domain types. Also I would like to add that I used my user id from another tenant to the SMTP setup and it worked. (That user is non-existent in this tenant's office365 or Business Central)

    After the error on SMTP was resolved I was able to receive the e-mails but not sure why it was resolved by using a user id from another tenant, I have tried all user id's present on the current tenant but they generate the same error.

  • Suggested answer
    Marco Mels Profile Picture
    Microsoft Employee on at

    Hello,

    If you want your own domain to be AAD enabled so that it can be used for mail / authentication, you go to your Office 365 portal and add a DNS domain name that you own. E.g. yourbusiness.com. You add this domain and validate it on the Office 365 portal. Users will then have access to two domain names when looking at their mail address field:

    - primary: user1@yourbusiness.onmicrosoft.com

    - secondary: user1@yourbusiness.com

    Within Office 365 portal, you can flip primary and secondary and your users can authenticate themselves via yourbusiness.com or in the example above abc@xyz-corp.com. Mailfield in SMTP in BC and Office 365 mail fields on the user pages in BC can be adjusted with the new domain name.

    Hope it does help.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans