Solved

Office 365 email to Access 2010 Table

Posted on 2014-12-02
7
99 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

How to resolve IMCEAEX NDRs in Exchange or Exchange Online related to invalid X500 addresses.
Enabling the Skype for Business Meeting Scheduler in Hybrid OWA
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

756 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