Le Café Central de DeVa              

                    let.us.develop.share.messaging.more... DeVa blogs!!




 

Blog - Title

  • Le Café Central de DeVa

    EWS : How to access user’s free/busy info programmatically using Exchange Web Services (EWS)?

    • 0 Comments

    In this post, we will see how to access user free/busy information programmatically using Exchange Web Services (EWS) – Proxy. For this we need to use GetUserAvailability operation, which provides current user availability information at a specified level of detail - about the availability of a set of users, rooms, and resources within a specified time period. Client applications such as Microsoft Office Outlook, Microsoft Outlook Web Access, Microsoft Outlook Mobile Access, and other applications use SMTP addresses to identify the requested user information.

    Let start now by creating the binding, set the credentials/URL and pass the binding (esb) to the following functionality ( which I haven’t added here).

     

     

    Identify the time to compare free/busy information:


        Duration duration =
    new Duration();

        duration.StartTime = DateTime.Now;

        duration.EndTime = DateTime.Now.AddHours(4);

     

    Identify the options for comparing free/busy information:

       
       
    FreeBusyViewOptionsType fbViews = new FreeBusyViewOptionsType();

        fbViews.TimeWindow = duration;

        fbViews.RequestedView = FreeBusyViewType.MergedOnly;

        fbViews.RequestedViewSpecified = true;

        fbViews.MergedFreeBusyIntervalInMinutes = 35;

        fbViews.MergedFreeBusyIntervalInMinutesSpecified = true;


    Identify the user mailbox to review for free/busy data:

        MailboxData[] mbx= new MailboxData[1];

        mbx[0] = new MailboxData();

        EmailAddress emailAddress = new EmailAddress();

        emailAddress.Address = "user1@domain.com";

        emailAddress.Name = String.Empty;

        mbx[0].Email = emailAddress;

        mbx[0].ExcludeConflicts = false;

    Make the request and set the time zone of the request:

        getusrRequest.TimeZone = new SerializableTimeZone();

        getusrRequest.TimeZone.Bias = 480;

        getusrRequest.TimeZone.StandardTime = new SerializableTimeZoneTime();

        getusrRequest.TimeZone.StandardTime.Bias = 0;

        getusrRequest.TimeZone.StandardTime.DayOfWeek = DayOfWeekType.Sunday.ToString();

        getusrRequest.TimeZone.StandardTime.DayOrder = 1;

        getusrRequest.TimeZone.StandardTime.Month = 11;

        getusrRequest.TimeZone.StandardTime.Time = "02:00:00";

        getusrRequest.TimeZone.DaylightTime = new SerializableTimeZoneTime();

        getusrRequest.TimeZone.DaylightTime.Bias = -60;

        getusrRequest.TimeZone.DaylightTime.DayOfWeek = DayOfWeekType.Sunday.ToString();

        getusrRequest.TimeZone.DaylightTime.DayOrder = 2;

        getusrRequest.TimeZone.DaylightTime.Month = 3;

        getusrRequest.TimeZone.DaylightTime.Time = "02:00:00";

     


    In addition to that, add the mailbox and the view options to the request

        getusrRequest.MailboxDataArray = mbx;

        getusrRequest.FreeBusyViewOptions = fbViews;

     

    Send the above request and get the response:

         GetUserAvailabilityResponseType getusrResponse = esb.GetUserAvailability(getusrRequest);

     

    Access the free/busy info:

     

            if (getusrResponse.FreeBusyResponseArray.Length < 1)

            {

                Console.WriteLine("No free/busy response data available.");

            }

            else

            {

                foreach (FreeBusyResponseType fbrt in getusrResponse.FreeBusyResponseArray)

                {

                    if (fbrt.ResponseMessage.ResponseClass == ResponseClassType.Error)

                    {

                        Console.WriteLine("Error:" + fbrt.ResponseMessage.MessageText);

                    }

                    else

                    {

                        FreeBusyView fbv = fbrt.FreeBusyView;

                        Console.WriteLine("Merged free/busy data: " + fbv.MergedFreeBusy);

                    }

                }

            }

     

     

    If you run the above piece of code, then you will get the result:

     

    image


    For more information, you can refer the following article: http://msdn.microsoft.com/en-us/library/aa564001(v=exchg.140).aspx

    Happy programming!!

  • Le Café Central de DeVa

    Migration: Exchange Public folders and its future

    • 0 Comments

    Public Folders are used in earlier versions of Microsoft Exchange Server to store free/busy data and files. From Microsoft Exchange Server 2007, free/busy data is no longer stored in public folders. It’s recommend that you do not store files in public folders in Exchange 2007. Instead, consider using Microsoft Office SharePoint, or Windows SharePoint Services. Public folders are included and supported in Exchange 2007 and 2010. However, future releases of Microsoft Exchange might not include public folders. You can visit http://blogs.technet.com/b/exchange/archive/2006/02/20/419994.aspx. Also, you can refer MS Exchange team blog have posted the updated public folder guidance for versions of Exchange past Exchange 2007.

    So, what are my options?

    If you're building something new, you should look at the requirements and building on the SharePoint Technologies platform:

    + Starting with Exchange 2007, we recommend that applications use the Availability service to provide free/busy data for Exchange mailbox users. Windows SharePoint Services replaces the file sharing functionality that public folders provide. You must redesign applications that use public folders to use Exchange Web Services.
    + Also consider redesigning custom applications as early as possible as future versions of Microsoft Exchange may not contain public folders.
    + In addition to that you can refer the wonderful blogpost by Joel.

  • Le Café Central de DeVa

    GoingNative 2012: Wonderful sessions on C++11

    • 0 Comments

    Are you a C++ developer? Then, its for you. Recently I was watching Channel9, “GoingNative 2012” - wonderful sessions on C++. Please find the related links for your reference:

    Happy programming!!

  • Le Café Central de DeVa

    Differences: Outlook Object Model vs Pocket Outlook Object Model

    • 0 Comments

    Recently one of my developer customer (developer of PC and mobile based applications) was asking is there any difference available between Outlook Object Model (OOM) API and Pocket Outlook Object Model (POOM) API? If yes, where it's documented? As you know, the Pocket Outlook Object Model (POOM) API is a COM-based library that provides programmatic access to Personal Information Manager (PIM) data on mobile devices. It provides functionality for manipulating PIM-item collections and folders.

    I pointed him to have a look at the MSDN document, which points at the principal differences between the Pocket Outlook Object Model and the Outlook object model.

  • Le Café Central de DeVa

    Windows Phone 7’s latest update: 7.10.8107.79

    • 0 Comments

    I got the latest Windows Phone update: 7.10.8107.79

    image

    It fixes the following:

    • On-screen keyboard. Fixes an issue to prevent the keyboard from disappearing during typing.
    • Email. Fixes a Google mail syncing issue.
    • Location. Fixes a location access issue. With this fix, the Me feature in the People Hub sends anonymous information about nearby Wi-Fi access points and cell towers to Microsoft only if you agree to allow the Check In function to access and use location information.
    • Security. Revokes digital certificates from DigiCert Sdn Bhd to address an encryption issue.
    • Email threads. Fixes an email issue related to Microsoft Exchange Server 2003. With this fix, when you reply to or forward a message, the original message is now included in your response.
    • Voicemail. Fixes a voicemail notification display issue that occurs on some European and Asian networks under certain conditions

    To learn how to install updates, check if there's an update available for you to download, and determine which version of Windows Phone you have now, see Phone updates FAQ.

  • Le Café Central de DeVa

    Here it comes…Kinect for Windows SDK

    • 0 Comments

    Here it comes… Kinect for Windows. You can use the power of Kinect to change the world. Kinect has changed the way people play games and experience entertainment. Now, Kinect for Windows offers the potential to transform how people interact with computers and Windows-embedded devices in multiple industries, including education, healthcare, retail, transportation, and beyond. The release of the Kinect for Windows sensor and software development kit (SDK) for commercial applications opens up the limitless possibilities offered by Kinect technology. Together, the hardware and software offer a superior development platform for Windows and a higher quality, better performing experience for end users



    Are you a developer and want to thrive to Develop what's next, then your journey starts here… The Kinect for Windows sensor and SDK give you the tools you need to develop innovative applications that harness speech and human tracking. Now, the power is in your hands to enable people to interact with technology in completely new and exciting ways. You can download the Kinect SDK @ Download SDK

    Getting Started: Use these programming guides to help you get started with the Kinect for Windows system.

    Got developer queries: Your development questions answered before you even asked them. Note: for all other questions, reference the General FAQ.

    In addition to that, if you want to see what can be done, then you can have a look at the gallery. Also you can view the following video clip:

    The Kinect Effect


    Community related info:

    The Blog clip_image001 Get our latest updates and read stories about the amazing applications companies are creating with Kinect for Windows.

    Facebook clip_image001[1] Take part in our Facebook community, where we'll be sharing ongoing news and information.

    Twitter clip_image001[2] Follow us on Twitter and be part of the movement. #kinectforwindows

    Forums clip_image001[3] Share advice and provide feedback about Kinect for Windows in our technical forums

    Create a new world around you with Kinect and unleash its power!!

  • Le Café Central de DeVa

    Office 15 begins Technical Preview

    • 0 Comments

    Are you ready for “Office 15”? Hough, CVP of Office Division announced in his blog that they reached an important milestone: the beginning of “Office 15” Technical Preview program. It also points that the Technical Preview program is already full, but everyone will have the opportunity to try the Office 15 public beta later this summer.

  • Le Café Central de DeVa

    Download: Exchange Server 2010 SP2

    • 0 Comments
    Now you can download Exchange Server 2010 SP2 (remember Bharat Suneja’s blogpost). Microsoft Exchange Server 2010 SP2 helps you achieve new levels of reliability and performance by delivering features that help to simplify your administration, protect your communications, and delight your customers by meeting their demands for greater business mobility.

    It contains the new features and capabilities like, Outlook Web App (OWA) Mini, Cross-Site Silent Redirection for Outlook Web App, Hybrid Configuration Wizard, Address Book Policies(GAL segmentation), Mailbox auto mapping, customer requested fixes etc.

    Related info:
    + What’s new in Exchange Server 2010 SP2? http://technet.microsoft.com/en-us/library/hh529924.aspx
    + Download Exchange Server 2010 SP2: http://www.microsoft.com/download/en/details.aspx?id=28190
    + Release notes for Exchange Server 2010 SP2: http://technet.microsoft.com/en-us/library/hh529928.aspx
    + Issues that are fixed in Exchange Server 2010 SP2: http://technet.microsoft.com/en-us/library/hh672189.aspx
    + Older Channel 9 Video: What's New in Microsoft Exchange Server 2010 SP2: Featuring GAL Segmentation

  • Le Café Central de DeVa

    Next Generation Windows file system: ReFS

    • 2 Comments
    Have you heard about “ReFS”? ReFS stands for Resilient File System. It’s the next generation Windows file system being introduced in Windows Server 8, replaces NTFS. For more info, you can read Steve’s related blog post @ http://blogs.msdn.com/b/b8/archive/2012/01/16/building-the-next-generation-file-system-for-windows-refs.aspx
  • Le Café Central de DeVa

    COM+/MTS custom application : CreateObject or CreateInstance?

    • 0 Comments

    Recently i was working with a developer customer, who created an Visual Basic/COM+ based solution (internally uses the Microsoft Messaging library). In general, he wants to know whether they should use CreateObject or CreateInstance? Whether both will have the same or different same effect in COM+?

    In Microsoft Transaction Server (MTS), you must use ObjectContext.CreateInstance in your root object to create secondary objects for the transaction to flow. In COM+ this still works, but it is no longer necessary to do it. In COM+, CreateObject subsumes the functionality of ObjectContext.CreateInstance. The object created participates in the caller's activity. In COM+, you can use the standard CreateObject function in Microsoft Visual Basic to flow a transaction to secondary objects as appropriate. So, CreateObject and CreateInstance have the same effect in COM+.

Page 1 of 56 (560 items) 12345»