Solved

Office 365 email to Access 2010 Table

Posted on 2014-12-02
7
98 Views
Last Modified: 2015-02-19
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?
0
Comment
Question by:JP_TechGroup
  • 3
  • 3
7 Comments
 
LVL 26

Expert Comment

by:Nick67
ID: 40477548
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?
0
 

Author Comment

by:JP_TechGroup
ID: 40477805
This tecnique uses Outlook as an intermediary to get the data, which won't work unfortunately.
0
 
LVL 26

Expert Comment

by:Nick67
ID: 40477819
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.
0
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 

Author Comment

by:JP_TechGroup
ID: 40477829
Outlook is installed, but the account in question is/will not be set up within it.
0
 
LVL 26

Accepted Solution

by:
Nick67 earned 500 total points
ID: 40477856
Woof!
Got your big-boy pants on?
Outlook 365 has the required REST API's to get after it
http://msdn.microsoft.com/office/office365/howto/platform-development-overview
And VBA has support for html, which will be enough to access REST
http://www.libkod.info/officexml-CHP-9-SECT-5.shtml
I would prefer a direct download using vba
So you can use VBA as the glue to make it all happen -- but it ain't gonna be simple.

Fair enough?
0
 

Author Comment

by:JP_TechGroup
ID: 40478277
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!
0
 
LVL 57
ID: 40478367
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.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question