Create appointment using EWS and set BusyType with XML

Hi guys,
I have Exchange 2010 and am trying to create a calendar appointment using EWS with XML.  Everything works fine, but the "BusyType" option doesn't work.  I want the appointment to show in the calendar as "Free", but instead it
shows as "Busy".  Here is what I have for the XML:
<?xml version="1.0" encoding="utf-16"?>
<CreateItemType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" SendMeetingInvitations="SendToNone">
<SavedItemFolderId xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
<DistinguishedFolderId Id="calendar" xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
<Mailbox>
<EmailAddress>{ItemProperty:OTManager_x0020_Display_x0020_Name}</EmailAddress>
<MailboxType>Mailbox</MailboxType>
</Mailbox>
</DistinguishedFolderId>
</SavedItemFolderId>
<Items xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
<CalendarItem xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
<ItemClass>IPM.Appointment</ItemClass>
<Subject>Other Leave for {Common:InitiatorsDisplayName}</Subject>
<Body BodyType="Text">Leave request</Body>
<Location>
</Location>
<Importance>Normal</Importance>
<Start>{ItemProperty:OTFrom}</Start>
<End>{ItemProperty:OTTo}</End>
<BusyType>Free</BusyType>
</CalendarItem>
</Items>
</CreateItemType>
I've also tried using "LegacyFreeBusyStatus" which also didn't work.  Can someone tell me how to modify my XML so that the appointment shows as "Free"?  The actual XML was generated using a workflow tool called "Nintex
Workflow 2010", and I simply added the BusyType option to it.  I'm not sure if that makes a difference or not.  Thanks in advance!

BusyType is not an element of the CalendarItem type it belongs to the CalendarEvent type which is part of the GetUserAvailability operation. There is a full list of CalendarItem elements on
http://msdn.microsoft.com/en-us/library/office/aa564765(v=exchg.150).aspx (note the order of the elements is critical). You should be using the LegacyFreeBusyStatus eg the following works okay for me
<m:Items>
<t:CalendarItem>
<t:Subject>tta</t:Subject>
<t:Start>2014-02-04T12:53:33.970+11:00</t:Start>
<t:End>2014-02-04T13:53:33.972+11:00</t:End>
<t:LegacyFreeBusyStatus>Free</t:LegacyFreeBusyStatus>
</t:CalendarItem>
</m:Items>
Cheers
Glen

Similar Messages

  • Send email (c#) using ews and set custom display name (from)

    How to connect to exchange service via exchange web services send a mail and the display name is custom ?
    With this code, just connect to exchange server (ews) and send a mail.
    How to change my code ?
    private void t() {
    const string subjectBody = "test email ";
    const string username = "username";
    const string password = "password";
    const string domain = "domain";
    const string ewsURL = "http://exchangesrv/ews/exchange.asmx";
    unews.ExchangeServiceBinding esb = new unews.ExchangeServiceBinding();
    esb.Credentials = new System.Net.NetworkCredential( username, password, domain );
    esb.Url = ewsURL;
    unews.CreateItemType newItem = new unews.CreateItemType();
    newItem.MessageDisposition = unews.MessageDispositionType.SendAndSaveCopy;
    newItem.MessageDispositionSpecified = true;
    unews.MessageType msg = new unews.MessageType();
    msg.Subject = subjectBody;
    msg.Body = new unews.BodyType();
    msg.Body.BodyType1 = unews.BodyTypeType.Text;
    msg.Body.Value = subjectBody;
    msg.ToRecipients = new unews.EmailAddressType[1];
    msg.ToRecipients[0] = new unews.EmailAddressType();
    msg.ToRecipients[0].EmailAddress = "[email protected]";
    newItem.Items = new unews.NonEmptyArrayOfAllItemsType();
    newItem.Items.Items = new unews.ItemType[1];
    newItem.Items.Items[0] = msg;
    try {
    unews.CreateItemResponseType createItemResponse = esb.CreateItem( newItem );
    if (createItemResponse.ResponseMessages.Items[0].ResponseClass == unews.ResponseClassType.Error) {
    throw new Exception( createItemResponse.ResponseMessages.Items[0].MessageText );
    else {
    Console.WriteLine( "Item was created" );
    catch (Exception ex) {
    Console.WriteLine( ex.ToString() );
    With this code, can connect to a exchange server (smtp) and send a mail, with a custom display name.
    System.Net.Mail.SmtpClient smtpc = new System.Net.Mail.SmtpClient( "exchangesrv" );
    System.Net.Mail.MailMessage mm = new System.Net.Mail.MailMessage( "CustomDisplayName <[email protected]>", "[email protected]", "test email", "test email" );
    smtpc.Credentials = new System.Net.NetworkCredential( "username", "password", "domain" );
    smtpc.Send( mm );

    That won't work the way you want it in EWS, like when you send via Outlook or OWA when you send a messages via EWS it's submitted via the Exchange store so the Sender Address will be resolved back to the default Reply address for whatever account your trying
    to send as. If you need some sort of custom display name I would suggest you stick to SMTP or possible create a Transport Agent that would rewrite the address before its sent externally.
    Cheers
    Glen

  • Create PO using ME59N and set field WEAKT

    We are using ME59N (as a background job) to convert approved and assigned req's into PO's. However we would like to set the field EKKO-WEAKT (GR Message) so that requisitioners can be informed when there goods arrive (we have this process working when the field WEAKT is set manually).
    Any suggestions would be appreciated.

    Hello, I too have the same requirement.
    Did you have any updates on this.
    Thanks
    Jay

  • How can I create a client console and work together with the Cache Server?

    How can I edit the following Cache-Server.cmd file to create a client console and work together with the Cache Server?
    The following is the cache server file: contacts-cache-server.cmd
    @echo off
    setlocal
    if (%COHERENCE_HOME%)==() (
    set COHERENCE_HOME=c:\coherence
    set CONFIG=C:\home\oracle\coherence\Contacts
    set COH_OPTS=%COH_OPTS% -server -cp %COHERENCE_HOME%\lib\coherence.jar;C:\home\oracle\
    coherence\Contacts;C:\home\oracle\coherence\Contacts\classes;
    set COH_OPTS=%COH_OPTS% -Dtangosol.coherence.cacheconfig=%CONFIG%\contacts-cache-config.xml
    java %COH_OPTS% -Xms1g -Xmx1g -Xloggc: com.tangosol.net.DefaultCacheServer %2 %3 %4 %5 %6 %7
    :exitEdited by: junez on 23-Oct-2009 09:20

    Hi
    To run the console, change DefaultCacheServer to CacheFactory
    Paul

  • Use 'se38' to set variants with long time no-response in production system?

    hi,Guys,  When I use 'se38' to set variants with long time no-response in production system?
    I think it's none of business with program performance.  Maybe system response delay, But no other program like the same response happened?
    best regards

    Hi,
    what's your problem? Didn't get the point.
    You have a report, where the maintenance of the selection variant has a long runtime (in production?)
    Maybe AT SELECTION screen some checks / helps are executed, which are quite fast in DEV, but access much bigger tables in PROD and need to much time. Such checks should be improved / moved after START-OF-SELECTION.
    Regards,
    Christian

  • We've had our MBP for a year, set up with my Apple ID. Got an iPad recently and set up with another Apple ID. Would now like to sync the two and set up iCloud/PhotoStream. How to do since have two different Apple IDs?

    We've had our MBP for a year, set up with my Apple ID. Got an iPad recently and set up with husband's Apple ID. Would now like to sync the two and set up iCloud/PhotoStream between the two. How to do since have two different Apple IDs? Thanks!

    Just out of curiosity, why did you elect to use a different id?.  That seems to always make things difficult.  If you have not had the pad for long, or have not bought a lot of stuff Nader the new id, you might want to think about erasing all content, turn off find my phone, wiping the pad and starting over.
    You can sync 2 different ids ( at least move pictures, books and music back and forth) if you are syncing through I tunes on your computer, but I don't think you can cross feed I cloud streams.

  • My mom helped me to create my iTunes account and load it with a 50$ gift card and now I wanted to purchase a one month subscription at the AYI dating web service but apple never let them take money from my account and I was declined,don't know why?

    My mom helped me to create my iTunes account and load it with a 50$ gift card and now I wanted to purchase a one month subscription at the AYI dating web service but apple never let them take money from my account and I was declined,don't know why?

    You have posted to the iTunes Match forum, which your question is not related to. I suggest you contact the web site from whom you wish to purchase the subscription.

  • Can I create a second calendar and share it with my wife computer

    Did know if I could create a second calendar and share it with my wife computer and iPhone? We both have our own separate iTunes accounts and computers and iPhones

    You should each sign up for iCloud (free):
    http://www.apple.com/icloud/get-started/
    You can then each sync your calendars to iCloud by going to System Preferences>iCloud and checking 'calendars'.
    Now one of you can privately share a calendar with write privileges to the other:
    http://help.apple.com/icloud/#mm6b1a9479 and expand 'Share a private calendar or reminder list with specific people'.

  • MacBook will not start. I have restarted with original CD. I have used Utilities and "no problem" with hard drive. I have reset PRAM. I have tried safe boot. Nothing is work. Gray screen with Apple logo and rotating wheel. Thanks for any suggestions!

    MacBook will not start. I have restarted with original CD. I have used Utilities and "no problem" with hard drive. I have reset PRAM. I have tried safe boot. Nothing is work. Gray screen with Apple logo and rotating wheel. Thanks for any suggestions!

    Snow Leopard is a Mac OS X version. You say that it's the version you have in your Mac (10.6.8). Do a back up of your files, format the hard drive (using Disk Utility) and reinstall again

  • How to create store procedure using cursor, and looping condition with exce

    Hi,
    I am new in pl/sql development , please help me for follwoing
    1. I have select query by joining few tables which returns lets say 100 records.
    2. I want to insert records into another table(lets say table name is tbl_sale).
    3. If first record is inserted into tbl_sale,and for next record if value is same as first then update into tbl_sale else
    insert new row
    4. I want to achieve this using store procedure.
    Please help me how to do looping,how to use cursor and all other necessary thing to achieve this.

    DECLARE
       b   NUMBER;
    BEGIN
       UPDATE tbl_sale
          SET a = b
        WHERE a = 1;
       IF SQL%ROWCOUNT = 0
       THEN
          INSERT INTO tbl_sale
                      (a
               VALUES (b
       END IF;
    END;note : handle exceptions where ever needed
    Regards,
    friend
    Edited by: most wanted!!!! on Mar 18, 2013 12:06 AM

  • Using ExtensibleEnvironment and Command Pattern with 3.7.1 Release

    I am trying to port my project 3.6 project to 3.7.1. I am using the Extensible environment from the jar coherence-3.6-common-1.7.3.20019.jar
    While starting the cluster I am getting the below errors.
    Is there a confguration showing how to configure the Command Pattern and Extensible environment with XSD validation in 3.7.1?
    Exception in thread "main" (Wrapped: Failed to load the factory) (Wrapped: Missi
    ng or inaccessible constructor "com.oracle.coherence.environment.extensible.Exte
    nsibleEnvironment(String)"
    <configurable-cache-factory-config>
    <class-name>com.oracle.coherence.environment.extensible.ExtensibleEnvironment<
    /class-name>
    <init-params>
    <init-param>
    <param-type>java.lang.String</param-type>
    <param-value>C:/work/development/workspace/java/Coherence-Rest/cfg/cache-s
    erver-config.xml</param-value>
    </init-param>
    </init-params>
    </configurable-cache-factory-config>) java.lang.reflect.InvocationTargetExceptio
    n
    at com.tangosol.util.Base.ensureRuntimeException(Base.java:288)
    at com.tangosol.net.ScopedCacheFactoryBuilder.getDefaultFactory(ScopedCa
    cheFactoryBuilder.java:311)
    at com.tangosol.net.DefaultCacheFactoryBuilder.getSingletonFactory(Defau
    ltCacheFactoryBuilder.java:48)
    at com.tangosol.net.DefaultCacheFactoryBuilder.getFactory(DefaultCacheFa
    ctoryBuilder.java:121)
    at com.tangosol.net.ScopedCacheFactoryBuilder.getConfigurableCacheFactor
    y(ScopedCacheFactoryBuilder.java:112)
    at com.tangosol.net.CacheFactory.getConfigurableCacheFactory(CacheFactor
    y.java:126)
    at com.tangosol.net.DefaultCacheServer.getDefaultConfigurableCacheFactor
    y(DefaultCacheServer.java:364)
    at com.tangosol.net.DefaultCacheServer.main(DefaultCacheServer.java:197)
    Caused by: (Wrapped: Missing or inaccessible constructor "com.oracle.coherence.e
    nvironment.extensible.ExtensibleEnvironment(String)"
    <configurable-cache-factory-config>
    <class-name>com.oracle.coherence.environment.extensible.ExtensibleEnvironment<
    /class-name>
    <init-params>
    <init-param>
    <param-type>java.lang.String</param-type>
    <param-value>C:/work/development/workspace/java/Coherence-Rest/cfg/cache-s
    erver-config.xml</param-value>
    </init-param>
    </init-params>
    </configurable-cache-factory-config>) java.lang.reflect.InvocationTargetExceptio
    n
    at com.tangosol.util.Base.ensureRuntimeException(Base.java:288)
    at com.tangosol.run.xml.XmlHelper.createInstance(XmlHelper.java:2652)
    at com.tangosol.run.xml.XmlHelper.createInstance(XmlHelper.java:2536)
    at com.tangosol.net.ScopedCacheFactoryBuilder.getDefaultFactory(ScopedCa
    cheFactoryBuilder.java:273)
    ... 6 more
    Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
    orAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
    onstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at com.tangosol.util.ClassHelper.newInstance(ClassHelper.java:694)
    at com.tangosol.run.xml.XmlHelper.createInstance(XmlHelper.java:2611)
    ... 8 more
    Caused by: java.lang.RuntimeException: Can't create a NamespaceContentHandler as
    the URI scheme [http] in [http://www.w3.org/2001/XMLSchema-instance] is not sup
    ported
    at com.oracle.coherence.environment.extensible.DefaultConfigurationConte
    xt$Scope.establishNamespaceContentHandlerFor(DefaultConfigurationContext.java:62
    5)
    at com.oracle.coherence.environment.extensible.DefaultConfigurationConte
    xt.ensureNamespaceContentHandler(DefaultConfigurationContext.java:94)
    at com.oracle.coherence.environment.extensible.DefaultConfigurationConte
    xt.processElement(DefaultConfigurationContext.java:254)
    at com.oracle.coherence.environment.extensible.DefaultConfigurationConte
    xt.processDocument(DefaultConfigurationContext.java:204)
    at com.oracle.coherence.environment.extensible.ExtensibleEnvironment.set
    Config(ExtensibleEnvironment.java:438)
    at com.tangosol.net.DefaultConfigurableCacheFactory.<init>(DefaultConfig
    urableCacheFactory.java:193)
    at com.tangosol.net.DefaultConfigurableCacheFactory.<init>(DefaultConfig
    urableCacheFactory.java:179)
    at com.tangosol.net.DefaultConfigurableCacheFactory.<init>(DefaultConfig
    urableCacheFactory.java:155)
    at com.oracle.coherence.environment.extensible.ExtensibleEnvironment.<in
    it>(ExtensibleEnvironment.java:154)
    ... 14 more

    Hi
    Is there a reason you are using the 3.6 version of the incubator with Coherence 3.7 and not the latest INC-10 version? I suspect the 3.6 Incubator does not support normal XML schemas.
    JK

  • Creating PDFs using Pages and Mail

    Hi,
    I'm  a contractor and I use Pages and Mail to to create PDFs of invoices that I email to clients in the form of attachments. I have Mail set up to to send only Windows friendly attachments, and to put them at the end of emails. I have one client, the facilities director of a large community college, who consistently cannot open the attachments; he can read the text of the emails, but he cannot open the attachments. He has to send them to his IT department, where they use a mac computer of some kind to open the attachments, which they send them back to him. I've discussed this with their IT department, and they've told me that they have to use a mac to open my attachments. If anyone can offer some advice on this issue, I'd appreciate it.
    Caoim

    I know from my own experience that although there should be no problems with Mail's attachments, just once in a while recipients have the problems you describe.
    The solution that worked for me 100% reliably was to install the paid for plug-in Attachment Tamer from: lokiware.info
    You can use it for free to test it before committing to purchase, but I'm pretty sure all your recipients will be able to cope with all your attachments.
    To elaborate, I used to have to send numerous attachments every day to mostly PC users. Randomly some would complain that I'd either forgotten to include the attachment (I hadn't) or they couldn't read it/open it/save it, etc. It's quite likely the fault was in the way their email client was configured. All I know is that as soon as I installed Attachment Tamer (it was Mail Attachments Iconizer back then) I never had any more complaints. For the knowledge that I wasn't going to be pestered into trying different ways of sending the files I was happy to pay for the plugin.
    (Usual caveat: I have no connection with Lokiware, but very happy to recommend their product).

  • Using iPad and LogMein app with Mac Mini Server

    Hello everyone, I'm new to the community and I would like to ask your opinions on something I'm considering.
    I'm currently using a MacBook Air beyond its capabilities. I'm running a dual system via Parallels since some of my work programs are Windows based.
    I'm planning to pass the MacBook Air down to one of my employees but I'm stuck on what I will purchase to replace it.
    I like the new MacBook Pro, but I don't like the $2200+ price tag. So what I'm considering is buying a Mac Mini Server ($900) and setting it up in my office with a HDTV as a monitor because I use construction design programs and the laptop screen is just too small for large drawings. The Mac Mini also has 1TB storage vs 256GB on the MacPro. I already have an external disk drive so that's no issue either.
    Also, since I still need mobile convenience, I'm considering downloading the "LogMein Ignition" app ($130) and using this to log in remotely with my iPad for complete access to all of my files and programs.
    What are some pros and cons I should consider before making this move?
    Thanks in advance for the help!
    Kevin

    > If your server is behind NAT, there is almost certainly no need for packet filtering and you should disable it.
    I disagree, Linc. PF is very useful to block known bad IPs and brute force attacks, which are an hourly occurrence, especially on ssh. I use this PF configuration for OS X, which blocks brute force attacks, updates IP blocks from emergingthreats.net, and more. My logs and pf table "bruteforce" are full of attacks and blocked sites (sudo pfctl -t bruteforce -Ts). I also run snort on OS X and can see that the snort alert triggers are greatly reduced by simply blocking all these packets at the network layer.

  • We can't create form using dblink  and synonim

    We have created a dblink pointing to a table in the remote database.
    When we create a form based on table or view using this dblink, we get the error "page not found".
    We read from
    Re: I can't create form using dblink
    that we must create a synonim, and this was done creating one in the same schema of the db-link using the "Database Objects" of oracle portal 10g (external db is an oracle 9.0.2).
    The new synonim work (tested with reports and pl/sql page)
    but if we click on "Grant Access" (of the synonim) we get the following error :
    Error: The underlying object of the synonym does not exist, is a remote object or is not of type function, procedure, package, sequence, synonym, table or view. (WWV-17076)
    Does form work only with table and view of the portal database (not external one)? or have we loose something in the creation of the synonim?
    Have someone succesfully created a form based on a db-link towards an external database?
    Thanks to all.

    Hei guys, has nobody created succesfully a data-driven forms based on a dblink towards an external database?
    I can't believe this!!!!

  • Using Functions and/or Graphs with Custom Cell Formats in Numbers

    I am attempting to use the AVERAGE function or create a graph in Numbers for cells with a custom format, however, I keep receiving an error message telling me that "Numbers can't be divided by Zero" or an empty graph.
    The format I am using is for a split time for a certain distance, as in time it takes a runner to go around a track: minute:seconds.milliseconds i.e. 1:56.4
    Is there a solution to the formatting or another way to accomplish having the correctly formatted cell and still be able to use functions and graphs.

    Hi nich.lee,
    You can't chart Duration formatted data without first converting it to another format. Also, you will get an error if you attempt to use the AVERAGE function on an empty range.
    Here's an example of charting Duration data by using a conversion...
    Best regards,
    Jerry

Maybe you are looking for

  • Imovie with 2nd momitor

    I have a 17" Apple CRT hooked up to my 15" PB in extended desktop mode. Is there any way of using one monitor to preview the movie while using the other to work, like FCP or an Avid? PowerBook G4 1.25ghz   Mac OS X (10.4.5)  

  • I want to add a new Lion server to my network.

    I am at the screen asking me if I I want to setup a new server or Transfer. Right now we have a 10.6 server that is doing the heavy lifting in our network. My end goal is to use the new lion server to authenticate users, file sharing to osx and ios,

  • Flush a string to the browser as a file?

    How can I flush a string to the browser and make the browser save it like a file? This is what I've got so far: String info = "somthing funny here"; response.setContentType("text/plain"); response.setHeader("Content-Disposition", "filename=message.tx

  • Destination Storage Unit in FM L_TO_CREATE_MOVE_SU

    Hi everyboday, I'm using the FM L_TO_CREATE_MOVE_SU  in order to create transfer order for moving storage units. I need to set the "Destination Storage Unit" but I cant find these field in he FM. I just have the  i_lenum field which is the "Origin St

  • Shared Memory Segments

    I am trying to install the Oracle 8.1.6 database that came with the Solaris 8 Intel package. In the installation it is necessary to set the Shared Memory Segments. An example of how to do this is found in the Solaris 8 System Admin Guide Vol 2 on pag