I've wrote a Lync mobile client by calling service from my UCMA web service.
But I found that the communication between UCMA client won't save converstaion to Exchange.
So when I login at Lync client I cannot see the history
I think EWS provide some method for Lync to store converstaion history to user's mailbox
But I cannot find method to send such mail.
Does any one know how to using EWS to store conversation history?
==================================================================
I found that ConversationXml.{CA2F170A-A22B-4f0a-B899-93439DEC3FBC} must be following format to show the history while you double click the conversation history
<conversations xmlns="http://schemas.microsoft.com/2008/10/sip/convItems" minSupportedClientVersion="3.0.0.0">
<conversationXml>
<imReceived xmlns="http://schemas.microsoft.com/2008/10/sip/convItems" ts="2015-07-13T16:34:45Z" from="sip:tester#testenv.com" displayName="Tester" firstMessage="true" type="text/html">
<messageInfo type="text/html" msgid=""><DIV style="font-size: 10pt;font-family: 'Segoe UI';color: #000000;direction: ltr;font-weight: normal;font-style: normal;text-decoration: none">(H)</DIV></messageInfo>
</imReceived>
</conversationXml>
Also PreviewMessage.{55324EE5-74F0-4727-876D-20ED1469CA65} could assign any string for message preview on conversation history tab
The Lync client uses EWS to Create Items in the users Mailbox (it doesn't send email). Eg to get Lync conversation history you can use https://msdn.microsoft.com/en-us/library/office/hh243707(v=office.14).aspx . To create conversation items you can use something like https://social.msdn.microsoft.com/Forums/office/en-US/bd7166b7-755e-4ba7-8ea4-d35727c1174c/using-exchange-web-services-api-insert-item-in-conversations-history-folder-in-outlook?forum=exchangesvrdevelopment
Cheers
Glen
Related
I created a function in azure functions that is triggered by http request.
Also I have a web app that used for clients to subscribe to my app.
My app and web app is written in .net.
My goal is to set a subscription button in the web app, so when the user subscribe it would allow me to get push notifications about new mail in his outlook inbox folder and send http requests to my azure function that includes the content of the newly received mail.
I read the doc about this API but couldnt understand it and what should I do to get my goal. Also I didn't find any examples for this.
How can I achieve my goal?
There are two options you can try for your scenario :
Option 1: you can create Function APP with Outlook connector and Microsoft flow ( you can listen for new emails using Office 365 API -> "When New Email arrives" and also can be posted the payload using http trigger function
Option 2:
Creating Push notification in your app when you received, you can push the payload to
Azure by a wehbook using Webjobs or Functions
Documentation Outlook REST API V2.0 : Push Notification
To play around with REST API use this URL :https://oauthplay.azurewebsites.net
good luck
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.
I've been working in a meeting management app using EWS SOAP service (Exchange 2010 SP1), but for meetings created on behalf of a certain user I cannot know who is this user when I try to get the meeting data through EWS SOAP.
In Outlook (2010 specifically) I can see the name of the account who has acting in behalf of another account on a meeting request for accept or rejection (e.g. Some User ; on behalf of; Another User ), then I want to retrieve the same information through EWS.
I tried to retrieve the meeting information using the example of https://msdn.microsoft.com/en-us/library/office/dn439786(v=exchg.80).aspx changing the Element IdOnly by AllProperties
but I cannot see the property that define who acted in behalf of this account
Is there any way to obtain this user's email or name?
I believe that you need to check this on the meeting request, not the appointment. Check the From and Sender, as I recall the Sender would be the delegate, and the From would be the delegator (though I may have them switched :))
a customer wants enable a chat/instant messenger for his application webside. He is using Lync Server internally to Chat in-house. Now, he requires the following:
A external user (which will not be an AD user) logs into the webside is able to chat with a person inside the company. The internal user will receive those messages via his lync client.
What's the best way to achieve this?
i thought about bot that delegates messages from the webside to the lync server that does the rest. But how can i send a message as an external user?
The usual way to approach this is with the following components:
A bot that connects to the internal Lync infrastructure as an ApplicationEndpoint, and manages conversations with external/internal users
A Web or WCF service that exposes methods over http to external users - this could be built into the bot, or could be a separate service that communicates with the bot in some way
The web UI for presenting a users presence, allowing click-to-call, initiating and displaying a conversation etc
As an example, the WCF service could expose a few methods:
GetPresence(targetSipUri) - returns a presence value for the given uri
SendIM(targetSipUri, message) - sends an IM to the given uri
GetReplies() - polls for any responses
When you get into the detail you might need more methods - e.g. it may be an idea to generate a conversation token and pass this around
The web UI could present a list of contacts with a presence status (GetPresence), then allow the user to click a presence contact to initiate a new conversation window and send the inital message (SendIM), then poll the service for any replies from the contact (GetReplies) - note, the bot will have to queue replies internally until GetReplies is called.
There are commercial products that might meet your needs - a quick search for Lync webchat should turn up a few. Also, it may be worth looking into the Lync Web App, to see if this works for your customer
Edit: In answer to the comment below - yes, your internal users will see a conversation from "Our Lync Bot". If you don't know who your users are (e.g. random potential customers browsing a shopping site), you can grab some info from them (name, product to discuss etc) and have the bot display this to the internal user, either as part of the IM conversation, or as conversation context displayed in a Conversation Window Extension.
If your external users are known in advance (e.g. registered customers), and the internal user MUST see the conversation as being from them, then you will need to create a UserEndpoint for each conversation - but this would rely on having the user in AD.
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.