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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Not able to send emails

(3) ShareShare
ReportReport
Posted on by 249
Hello,
 
I would like to send custom email messages from current logged in user when certain fields in PO is updated.

I know that Alerts can be used, but in it, I will have to fix the service account or specific user account to always send an email. This we don't want. I want to send email from curreng logged in user.
 
I have used SysEmailTable::sendEmail() method to send email from email distribution batch and used Microsoft Graph API. I am stuck and getting this error:
 
 
I can confirm the Microsoft Graph API has correct permission since I am able to send email through print management using email as destination.
 
Any kind of pointers would be appreciated.

Thanks

 
Categories:
I have the same question (0)
  • Layan Jwei Profile Picture
    8,133 Super User 2025 Season 2 on at
    Can you show us your code please?
  • jeffgreenrc Profile Picture
    249 on at
    I have used OOB method to send email.
     
                            SysEmailTable::sendMai(
                                SysEmailTable.EmailId,        // Email template ID.
                                SysEmailTable.DefaultLanguage,          // Language
                                [ReceipientAddress],         // To email. 
                                ValueParameterMap, // Map object type parameters to replace in template
                                null, // No attachment
                                null, // no xml
                                false, // Use email distribution batch
                                curUserId()); // Sender - Current user
  • André Arnaud de Calavon Profile Picture
    301,459 Super User 2025 Season 2 on at
    Hi Jeff,

    Is the emailing through print management using the same user account as the current user? If not, you can check settings in Microsoft 365 admin center if the account can be used to send email on behalf of.
  • jeffgreenrc Profile Picture
    249 on at
    Thanks Andre and Layan for your responses.
     
    Is it all possible to send email from current logged in user by avoiding "Send As and Send on Behalf" ?
     
    Let me know how to achieve this. Looking forward for the guidance.
  • André Arnaud de Calavon Profile Picture
    301,459 Super User 2025 Season 2 on at
    Hi Jeff,
     
    In this case, Dynamics 365 will send the email on behalf of, so you can't bypass this option in Microsoft 365 admin center.
  • jeffgreenrc Profile Picture
    249 on at
    I dont want to use service account, I want to send email from current logged in user.
     
    If this is a known limitation to not be able to send email from current loggin user, then pls provide Microsoft documentation.
     
    if its possible to send from current user, then how can i achieve it. Any user account setting I need to in azure or office admin?
     
    Thanks
     
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    301,459 Super User 2025 Season 2 on at
    Hi Jeff,
     
    Enclosed you will find documentation about setting up email in Dynamics 365 F&O and what pre-requisites are required for the user's email settings to be able to send emails: Configure and send email - Finance & Operations | Dynamics 365 | Microsoft Learn
  • Vahid Ghafarpour Profile Picture
    12,204 Super User 2025 Season 2 on at
    If any of the responses helped resolve your issue, please take a moment to mark the best answer. This helps others in the community quickly find solutions to similar problems.

    To do this, simply click the "Does this answer your question?" button on the most helpful response and like the helpful posts. If your issue is still unresolved, feel free to provide more details so the community can assist further!

    Thanks for being an active part of the Dynamics 365 Community! 😊

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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 732 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 413 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 289 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans