Take data from an email and upload it to Microsoft Sharepoint 2010 - email

I have an email that arrives every day at 5:00 PM which reports the amount of inventory in stock everyday. Is there a way I could upload the data from this email into Microsoft Sharepoint 2010 ? I searched Google and StackOverflow but didn't find a solution to this.
Thank you in advance. A high level solution or a detail solution on how to do this would be extremely helpful.

SharePoint has the ability to receive messages and documents via e-mail through functionality called Mail Enabled Libraries.
First, you have to configure incoming email, which is a bit of work. Once SharePoint is configured to receive email, you have to configure a list to receive email.
References:
http://davecoleman146.com/2010/10/20/how-to-setup-mail-enabled-document-libraries-in-sharepoint-2010-part-1/
http://technet.microsoft.com/en-us/library/cc287879(v=office.14).aspx
EDIT
The manual process to upload a document would have the following steps:
Check email
If the email is there, save email to local file
Upload file to SharePoint
If you want to automate this process, I recommend PowerShell as its powerful yet easy to use.
Learning PowerShell: http://technet.microsoft.com/en-us/scriptcenter/powershell.aspx
Checking Email with PowerShell: How to check an exchange mailbox via powershell?
Saving an Email with PowerShell: http://social.technet.microsoft.com/Forums/scriptcenter/en-US/335a888b-bf85-4a36-a555-71cc84608960/download-email-content-text-from-exchange-ews-with-powershell?forum=ITCG
Uploading a file to SharePoint With PowerShell: http://social.technet.microsoft.com/wiki/contents/articles/19529.sharepoint-2010-upload-file-in-document-library-using-powershell.aspx

Related

Save all attachment from Outlook Mail with specific subjects using powershell

I want a Powershell script that is able to get me all the attachments from the email subject "Daily Headcount".
A quick google search found this article that appears to cover what you’re looking for.
https://bronowski.it/blog/2020/09/saving-outlook-attachments-with-powershell/

Check exchange mailbox from powershell

Is it possible to check if an Exchange email account from powershell? I read this post but it's very dated and I've seen many references to sending mail from powershell but none to retrieve mail.
This is a "poor mans" solution to monitoring and somewhat of a synthetic transaction generator.
In short, I want to send an email from powershell and check email from powershell.
Easiest way to retrieve emails from Office 365 is to use the Graph API.
You'll first need to authenticate to it, if this is going to be an automated solution you would need to authenticate as a Application.
https://learn.microsoft.com/en-us/graph/auth-v2-service?context=graph%2Fapi%2F1.0&view=graph-rest-1.0
Then you can list emails using this endpoint
https://learn.microsoft.com/en-us/graph/api/user-list-messages?view=graph-rest-1.0&tabs=http
And send an email using this endpoint
https://learn.microsoft.com/en-us/graph/api/user-sendmail?view=graph-rest-1.0&tabs=http

Change subject in TFS 2015 email alerts

I'm trying to change the subject of email alerts generated by TFS 2015. So far, I figured out, where to find the template of the email body at
c:\Program Files\Microsoft Team Foundation Server 14.0\Application Tier\TFSJobAgent\Transforms\1033\BuildCompletedEvent.xsl
However, I still got no clue, where the subject of the email is set. Can anyone provide a hint?
Thanks in advance
We can only customize the format for TFS email alerts by default. The event service uses the .xsl and the plaintextXsl files to transform the XML data for an event into an e-mail message. Edit the .xsl file to get a different format for the email notification.
The content of the emails that are issued is automatically generated from the TeamFoundation.xsl file and BuildCompletedEvent.xsl. Modifying the TeamFoundation.xsl file is not recommended. You need to subscribe to the Event Service and create your own e-mails as DaveShaw mentions.
It is not allowed to modify email subject via modifying the email template in TFS2015.
You have to subscribe to TFS events via API, this method gives the option to set email subject you want. Check this blog for further information: http://geekswithblogs.net/BobHardister/archive/2013/07/24/tfs-2012-api-create-alert-subscriptions.aspx (The blog is written for TFS2012, applies to TFS2015 as well)  

Writing a job that can access office 365 email and migrate them elsewhere

I need a little help understanding a task I have been given.
I started work on a 'SharePoint focused' team and we are trying to create a SharePoint portal that would house/manage all incoming mail to a specific company email address.
We have had a couple of issues setting up SharePoint to accept incoming mail, so have begun looking at other possible options.
1 option that was suggested was to 'write a job' that would read our mailbox server (on Office 365), and then find, pull and migrate/copy selected emails onto the sharepoint site.
(something else we are also interested in doing is seeing what info we can grab from these emails at this stage which we can use to create various mail objects in sharepoint with the mail metadata. Not sure what limitations there are to what can be accessed, if anything)
Is somebody able to explain a little more the type of process or work that is required to do this (access Office 365 mail via some API which we can create a timed job for), and any experience or advice around it? Where would I start looking or how would I start implementing it, etc.
Thanks!
You combine couple of things together. SP can read incoming emails through locally installed and configured SMTP server. You can then setup document library or list to store them or create event listener to handle incoming emails completely by your own.
But both cases (OOTB functionality or event receiver) rely on local SMTP. If you want process emails from other server like Exchange Online you must either forward these emails to local SMTP server installed beside SP or you must create your own code. It can be SP job or any other type like windows service or console application executed by windows schedule, ... calling Exchange online API (designed specially for Exchange online) or MAPI or POP3 (generic using libraries) to get emails and calling SP API (CSOM, REST API) to store emails.

Powershell - Exchange 2013 filing script

I have been looking through the http://gallery.technet.microsoft.com/exchange/ website to no avail and was wondering if someone could help me please.
I would like to create a script that runs for every single email that is sent through exchange 2013. This script looks for an id email attribute that the email is assigned by my other script and if it has an id attribute the email will be moved to a shared mailbox on the exchange and put into a folder with the same id or create a new one if one doesn't exist.
Any help would be much appreciated! Thanks in advance.
Dint understand the query fully.
Looks like u want to write some code that will be executed for all the emails flowing through exchange.
Then Transport Agents are the way to go.
Here's the link which gives the documentaion regarding tranpsort agents in Exchange 2013.
http://msdn.microsoft.com/en-us/library/exchange/bb204097(v=exchg.150).aspx
You want to look for an "attribute" in the email and redirect emails based on that.
May be u can look for a message header in an email via transport agent and based on that perform redirection in the agent(removing all the recipients and adding 'redirectmailbox' as the only recipient).
You can also add custom headers to an email via transport agents.
http://blogs.msdn.com/b/mstehle/archive/2009/01/13/howto-sample-transport-agent-add-headers-categories-mapi-props-even-uses-a-fork.aspx
Transport Agents act on all the emails flowing through the orgnanisation.
Use them with caution.