Microsoft Office Communicator Automation API 2007 and Receiving Instant Messages - office-communicator

Does anyone know how to read the contents of an instant message?

If you are using the Communicator Automation API (as opposed to the Unified Comms Client API), and want to get the conversation text history from the conversation window, then George Durzi has an excellent blog post on this.
The basic idea is that you capture the OnIMWindowCreated event, then poll the History property of the window, looking for changes.

Related

How can you set Skype for Business status when in a Teams call automatically?

I've hit a wall so I'm asking my favorite community. I created custom Skype for Business activity statuses for Teams so when you are in a Teams call, you can manually set your status in SfB to "In a Teams Call". After searching for many days, i still have not found a way to auto set this status. Is there maybe a plugin for SfB or a service to run for this feature? This is for SfB (On-Prem). I primarily script in PowerShell but any guidance would be very appreciated.
#John, Microsoft Teams replaces Skype for Business Online as Microsoft’s professional online meeting solution. For more information on this please check this document.
To get/set up user status, you can use Presence Graph API's. For more information on Presence Graph API, please check this API docs
I created a windows service to check my Teams presence using the Graph API. If it returns InACall, I use Skype for Business Modules to set my activity to In-A-Call.
Sample code:
https://schmalhorstorg.blogspot.com/2020/04/powershell-set-skype-for-business.html

EWS and Skype for Business/Lync meeting info

I am doing some work on Lync/Skype meeting integration. In order to make this work, I need to get hold of the GRUU/SIP information for events/meetings.
Currently I have some success by using EWS against Office365. I query for the OnlineMeetingConfLink extended property, and if the meeting is Skype-enabled, get the SIP.
However, when this meeting is forwarded to our own Exchange (2010 SP2), these properties are not added to the invitation. They are not present in any headers or anything.
The message body contains the Lync URL and Skype Conference ID, but those are not usable/parsable in a reliable way.
Any pointer to documentation or suggestions are welcome.

Facebook - How to send automated private messages to friends now (Oct. 2015)?

I was researching this topic and I found that there was an answer in StackOverflow in 2013. It uses "send dialog" api of Facebook.
However it couldn't send automated/pre-filled message on behalf of the user. Is it still true now as of Oct. 2015?
Another similar question was asked here in 2012.
First of all, prefilling is not allowed according to the platform policy. That being said, the Chat API is gone and there is no alternative. You can't send messages with any API anymore, you can only use the Send or Message Dialogs. See official docs for more information about those.
Automated messages to friends would ALWAYS be spam, so there is a good reason why it is not possible and not allowed.

How to use date and time received in a outlook mail in a event calender of outlook?

Like Google calender, is it possible to make a functionality such that when some one register an event from website with date and time, then event will be added in an outlook event calender automatically.
I have found a solution with .ics file, but it does not work. It trigger an error that 'the file is not valid internet calender file'.
Please help with some solution.
You can develop an add-in which can parse the incoming emails and do the required actions if required. See Walkthrough: Creating Your First VSTO Add-In for Outlook for more information.
If you deal only with Exchange profiles in Outlook you may consider using EWS. Read more about that in the EWS Managed API, EWS, and web services in Exchange article in MSDN.

TFS Work item solutions for attaching email communications

For a couple of days now I've been searching for a solution that integrates ongoing work item communication over email into a specific work item's history.
For example once a ticket is created, if a specific TFS email account is included in email correspondence related to a specific ticket, some service would parse the TFS email account, read the email contents and attach the conversation to the work item. I've seen other ticketing systems support similar functionality.
The major problem I'm trying to solve here is to increase productivity by automatically keeping all tickets in sync with related conversations without user intervention.
Does anyone know of any commercial or open source products that can support this functionality?
I just implemented a cloud service using SendGrid that accepts emails at [workitemid]#mycloudservice.com and appends the email to the History of the work item. So if you forward an email to 1234#mycouldservice.com, the email date/subject/body is appended to the History of work item ID 1234.
Right now I have a lot of things hard-coded to my personal usage, but I'm thinking of making it generic/configurable for public usage. The big caveat is that the TFS server needs to be internet-visible (works great with Team Foundation Service). I'll update this answer when(if) I open it up for general usage. The code that handles the SendGrid POST is here if you're interested.
There is also the TeamCompanion Outlook add-in, that gives you a button in the ribbon to attach the current email to a work item. The last round I went with TeamCompanion I found it OK, but a bit buggy, and it may have slowed Outlook down (or that could have been psychological).