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 :
Microsoft Dynamics AX (Archived)

Reading emails response back in AX from live/google

(0) ShareShare
ReportReport
Posted on by 10,796 User Group Leader

Hi All,

One of my clients want to send emails to all workers with specific information, let's assume they have more than 500 workers. Company is not willing to purchase 500 AX user licenses so they can use existing AX email functionality which requires AX users to configure. We decided to go with customization and am able to send emails to each worker's personal email address, at gmail domain. I can also send some parameters in email which can distinguish the record in AX while reading it back from email response.

Now, what would be best way to read email response back from google email into AX.

As of now I have exported email responses into a CSV and Excel file and am thinking of importing these back into AX through X++  code.

Is there any API I can use for this purpose? Any ideas or thoughts would be much appreciated.

*This post is locked for comments

  • Suggested answer
    Fredrik Sætre Profile Picture
    12,644 on at

    Wouldn't this solution be a bit vulnerable as the data is based on free text?

    I would make a database and an easy feedback solution in a web form.

    You can use POP3 for this and import through that:

    www.agermark.com/.../read-mails-from-pop3-account-with-ax.html

    (read the comments as well)

    If you want to do this through Exchange on receipt you might want to take a look at this:

    community.dynamics.com/.../47587

  • Suggested answer
    Martin Dráb Profile Picture
    241,641 Most Valuable Professional on at

    You surely can send e-mail to people who are not users in AX; notifications sent to customers and vendors being the most obvious example.

    Nevertheless it seems that your goal is implementing a simple web client in AX, to connect to an e-mail account and read e-mail from there. AX kernel doesn't offer libraries for such communication, nevertheless you can use the whole power of .NET through .NET Interop.

    The solution around SysEmailReader class, mentioned by Fredrik/Palle, utilizes .NET classes System.Net.Sockets.TcpClient and System.IO.StreamReader, for example. Use the solution as is it, if you don't have other requirements; I mention it so you understand how these things are done and because you might have to extend it to meet all your requirements.

  • Faisal Fareed Profile Picture
    10,796 User Group Leader on at

    Yes, I agree data will be free text as user can reply anything in email. This is why I decided to go with sengin meeting invite from AX, missed to add before in my question. I am sending meeting invite from AX and user either has option to accept or reject or tentative.  Which makes life easier for me :)

    I will have a look on these shared links and will update. thanks for these links.

  • Faisal Fareed Profile Picture
    10,796 User Group Leader on at

    Thanks Martin for your insights, really appreciate to have your input.

  • Faisal Fareed Profile Picture
    10,796 User Group Leader on at

    Thanks Fredrik for sharing this link but this functionality is availble in R3 and I have been trying to achieve it in R2 CU7. This SysEmailAccount and other classes mentioned in this link are not available in R2 CU7 yet :(.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
nmaenpaa Profile Picture

nmaenpaa 2 Moderator

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans