how to extract attachment of email in MS Exchange? - exchange-server

First, I have to say I have no experience with Exchange so I have no code to show which I have already tried (as I don't know where to start).
I need to check emails that come in to a specific mailbox and parse an attachment that will be in csv format. (assume the attachment is called "data.csv" and the mailbox is "data#example.com").
Ultimately the data has to be imported into mysql. I am a dab-hand at php which will be available on the Windows server but I don't know if there is an API or anything I can interrogate.
How do I extract such data? Or can someone point me in the right direction?
Sorry for lack of 'trial' code.
Thanks

You want Exchange Web Services (EWS), which gives you a full SOAP API for Exchange. Try the EWS intro doco on MSDN for starters.

Related

How to find messages in google spaces using chat.api

I want to be able to pull all text messages from a google chat space.
I'm looking at the spaces.messages.getbut it assumes you have the ID of a message. In similar programs (MS Teams), you can call an endpoint to list all message ID and then call the message API to extract the contents of an ID. However, google chat has no such API.
Has anyone come across a way to do this?
This is currently not possible
There is already a respective feature request on Google Issue's Tracker.
I recomment you to star it to increase visibility and hope that it will be implemented soon.

Upload pdf files from bot with Bot Framework Composer

I want to select a pdf file from the bot and send it through a Web Api but I have not obtained any documentation, if you could support me with this it would be very helpful.
Thank you.
You can send a PDF, but you cannot send a local fie. It has to be uploaded somewhere or encoded. So, sending with activity and contentUrl of either data:image/png;base64,${imageBase64} or https://www.example.com/path/to/file.pdf
Please see more info explained in this comment. Also be aware that different channels behave differently with attachments (See end of conversation in that same thread).
Edit: Actually, the change to be able to send a binary is currently in the works. Please watch here.

Google Dialogflow API v2 Explorer access_token field

Please forgive me, I am fairly new to the Dialogflow Api (v2.)
I am starting off with testing these API calls using the Google API Explorer utility on the right side of the page.
My question is specifically about the "access_token" field:
Is this supposed to be the JSON authentication file that I downloaded from the Google Cloud Console when I created a new service account?
If not, then where do I find the specific resource I am actually supposed to pass into this field?
Side note: I read in the support section: "Google engineers monitor and answer questions about the Google API Explorer on Stack Overflow using the tag google-apis-explorer." Thank you all in advance for your service/help in this topic!
The access_token field is a higher-level field used across the API by some tooling. In some manual client libraries, you might need to use it, but for the API Explorer utility and for most use-cases, you can ignore it. This is true of most (maybe all) fields under the "Show standard parameters" zippy.
The documentation on the left side should explain the relevant fields you need to fill in to successfully complete a request. Keep in mind that even some of these fields are optional; you can leave them blank if they are not relevant to your goal.

How to get Email messages in .msg format from Microsoft Exchange server using C#

I have a requirement that i need to pull the ".msg" files from one of the exchange server's public folder and save them in a network path.
I read a lot about Exchange Web Services Managed API, but I don't think there is a direct way to get ".msg' file. We can either retrieve ".eml" file or read subject, body, recipients separately and generate ".msg" file. But both the options are not straight forward.
Can anyone suggest me a best way to achieve this using .net code using C#.
Thanks
Sreecharan
Not sure about the actual files but can you use the Exchange Web API to get the text of the message.
http://msdn.microsoft.com/en-us/library/exchange/dd637749(v=exchg.80).aspx

Creating usage log report from exchange server

Is there a way to get user information from exchange server 2007?
I'm looking particularly for the display name, total inbox items, unread emails, unread emails 7 days or older and out of office status for all users.
I have found some application available online but was wondering if there is some way to do the same reading exchanges logs using C# or a log reader of some sort.
I've also found WebDav and exchange SDK, but felt I couldn't get all the needed information with that.
If I'm wrong could someone show me a sample code of how it could be done? Preferably in C#.
Thanks in advance.
Part of your information can be obtained by the Get-MailboxFolderStatistics cmdlet. For other information you'll have to use EWS or, better yet, the EWS Managed API.
EWS Managed API - Download: http://www.microsoft.com/download/en/details.aspx?id=13480
EWS Managed API - SDK: http://msdn.microsoft.com/en-us/library/dd633710(v=exchg.80).aspx

Resources