Avatar of JP_TechGroup
JP_TechGroupFlag for United States of America

asked on 

Office 365 email to Access 2010 Table

I am looking for a way to have Access retrieve email from an Office 365 mailbox and append the results to a table, then clear the mailbox. I know this can be done by linking to Outlook, but I would prefer a direct download using vba. Any thoughts?
Microsoft 365Microsoft AccessProgramming

Avatar of undefined
Last Comment
Jim Dettman (EE MVE)
Avatar of Nick67
Nick67
Flag of Canada image

Outlook 365 is a bit of a different beast, but check here
http://www.fmsinc.com/microsoftaccess/Email/linked/index.htm
Is that functionality available with 365?
Avatar of JP_TechGroup
JP_TechGroup
Flag of United States of America image

ASKER

This tecnique uses Outlook as an intermediary to get the data, which won't work unfortunately.
Avatar of Nick67
Nick67
Flag of Canada image

Is Outlook installed?  Access VBA can automate Outlook in its entirety so that Outlook doesn't even become visible.    Conceivably you xouls create an Exchange Web Services app that you can shell to, instead.
Avatar of JP_TechGroup
JP_TechGroup
Flag of United States of America image

ASKER

Outlook is installed, but the account in question is/will not be set up within it.
ASKER CERTIFIED SOLUTION
Avatar of Nick67
Nick67
Flag of Canada image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of JP_TechGroup
JP_TechGroup
Flag of United States of America image

ASKER

Woof, indeed!
It just isn't that important to me!!
We are trying to provide email functionality to a tool we built, whereby the user creates and action that sends an email from Access which, if the user responds to with the word Yes or No in the reply, Access takes action.
I have done this before using Sharepoint, but Office 365 does not allow you to create an email address for a list, so this isn't an option. Hence the wanting to grab emails from the server and dump them to a table. We set up an account for the replies and grab the responses by a reference number in the subject line and run a query against the updated table.
That said, I don't see me going through all of that just for the "cool" factor it affords!
It's really not all that hard.   I haven't done this specifically, but have used VBA to talk to web sites (CC processing) and it's very straight forward.

You just set a reference to the XML doc lib, and then Get/Post.   So for Office 365, you'd do something like:

https://outlook.office365.com/api/v1.0/me/folders/sentitems/messages

to get all the sentitems.  You'd then get a response with all the message ID's, then use another GET to get each of the messages based on ID.

All of that is covered here:

http://msdn.microsoft.com/en-us/office/office365/api/mail-rest-operations

Jim.
Microsoft Access
Microsoft Access

Microsoft Access is a rapid application development (RAD) relational database tool. Access can be used for both desktop and web-based applications, and uses VBA (Visual Basic for Applications) as its coding language.

226K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo