none
outlook.appointmentitem properties are not being upadated in outlook 2007 RRS feed

  • Question

  • Hi,

    i am working on addins, i am facing one problem outlook.appointmentitem properties for shared calendars.

    i have two shared calendars, when i try to make changes in one shared calendar for outlook on my machine , its getting  correct changed values for user properties for calendar on that machine  ,

    e.g.  Outlook.AppointmentItem.Start

    but on other machine where i can see same calendar, in calendar area it shows its chnaged, but when i try to  access Outlook.AppointmentItem.Start then it give me old value,

    so if Outlook.AppointmentItem.Start previously was 30/06/2011 15:00:00 and i changed it to 30/06/2011 14:30:00 at my machine,Outlook.AppointmentItem.Start shows corrcet value on my machine, but on other machine for same calendar it shows old value which is 30/06/2011 15:00:00

    i am using VSTO 2005 and working with outlook 2007

    do anyone have idea why it will be happening or its a bug

    Thursday, June 30, 2011 9:23 AM

Answers

  • It still sounds to me like there's a reference or lock being held on the items that's only released if your close Outlook (or probably your code). I would make sure the same thing is still happening if all other Outlook integration code is disabled, if it still happens then the only thing I can think of is some sort of conflicting reference to the item.

    --
    Ken Slovak
    MVP - Outlook
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
     
     
    "Nitrup" <=?utf-8?B?Tml0cnVw?=> wrote in message news:38a81c0b-8055-4da0-b51c-e3c604e69f81...

    Ken,

    yes outlook on both machines is having same version and same code runing on both

     

    if i close outlook and then restart on test machine , then its giving me changed Start value, but not after that


    Ken Slovak MVP - Outlook
    Tuesday, July 5, 2011 1:45 PM

All replies

  • If it works on one and not the other I'd be inclined to suspect differences in the machines or setups.
     
    Are both calendars shared in the same way?
     
    Do you have the same permissions on both?
     
    Where are both located, is one in an open PST file or Exchange mailbox and the other somewhere else?

    --
    Ken Slovak
    MVP - Outlook
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
     
     
    "Nitrup" <=?utf-8?B?Tml0cnVw?=> wrote in message news:aead2d88-7545-48fe-b21c-e332df715021...

    Hi,

    i am working on addins, i am facing one problem outlook.appointmentitem properties for shared calendars.

    i have two shared calendars, when i try to make changes in one shared calendar for outlook on my machine , its getting  correct changed values for user properties for calendar on that machine  ,

    e.g.  Outlook.AppointmentItem.Start

    but on other machine where i can see same calendar, in calendar area it shows its chnaged, but when i try to  access Outlook.AppointmentItem.Start then it give me old value,

    so if Outlook.AppointmentItem.Start previously was 30/06/2011 15:00:00 and i changed it to 30/06/2011 14:30:00 at my machine,Outlook.AppointmentItem.Start shows corrcet value on my machine, but on other machine for same calendar it shows old value which is 30/06/2011 15:00:00

    i am using VSTO 2005 and working with outlook 2007

    do anyone have idea why it will be happening or its a bug


    Ken Slovak MVP - Outlook
    Thursday, June 30, 2011 1:17 PM
  • Hi ken,

     

    Thanks for reply!

    i noticed one thing here, if i close outook on second machine and then restart it and then on my machine i cahnged any thing in the one of shared calendar, then on second machine(where outlook wa closed and restarted) Outlook.AppointmentItem.Start gives me correct value

    so if Outlook.AppointmentItem.Start previously was 30/06/2011 15:00:00 and i changed it to 30/06/2011 14:30:00 at my machine,Outlook.AppointmentItem.Start shows corrcet value on both machine which is 30/06/2011 14:30:00

    After that outlook on second machine  never shows correct value.

    Do you still think its still a machine or setups issue?

    Thnaks!

     

    Thursday, June 30, 2011 1:35 PM
  • I definitely think it's setup or machine specific.
     
    Where is the shared calendar? Is it in a PST file or in an Exchange mailbox or what? How is it shared? Is any code running that would hold a reference to the item being changed that might present a conflict?

    --
    Ken Slovak
    MVP - Outlook
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
     
     
    "Nitrup" <=?utf-8?B?Tml0cnVw?=> wrote in message news:baf4c04a-26da-429f-bbae-81d77099c82e...

    Hi ken,

     

    Thanks for reply!

    i noticed one thing here, if i close outook on second machine and then restart it and then on my machine i cahnged any thing in the one of shared calendar, then on second machine(where outlook wa closed and restarted) Outlook.AppointmentItem.Start gives me correct value

    so if Outlook.AppointmentItem.Start previously was 30/06/2011 15:00:00 and i changed it to 30/06/2011 14:30:00 at my machine,Outlook.AppointmentItem.Start shows corrcet value on both machine which is 30/06/2011 14:30:00

    After that outlook on second machine  never shows correct value.

    Do you still think its still a machine or setups issue?

    Thnaks!

     


    Ken Slovak MVP - Outlook
    Thursday, June 30, 2011 1:47 PM
  • ken,

    its shared throgh exchange mailbox. actually iam using a class, as many calendars are ther in outlook , my code will loop through it and will create a constructor, refernec of calendar folder is being passed as Item(second argument in constructor) 

    Public Class xyz
        Dim WithEvents FolderItems As Outlook.Items
      

        Public Sub New(ByVal ddlmsoi As DDLMSOI, ByVal Item As Outlook.NavigationFolder)
            ddlms = ddlmsoi
            Dim olFolder As Outlook.MAPIFolder
            olFolder = Item.Folder
            Me.FolderItems = olFolder.Items       
            olFolder = Nothing
        End Sub

    Private Sub Calendar_ItemChange(ByVal Item As Object) Handles FolderItems.ItemChange      
           msgbox(Item.start)
        End Sub

    here Item will actually behave like  a outloo.appointemntitem at run time and Item.start is what i am looking for corrrect result which is not at the momenet

    this is waht iam doing right now.

    Thanks

    Thursday, June 30, 2011 2:32 PM
  • Is this cached Exchange mode? Does it work any differently if online mode to Exchange is used?
     
    Do the logged in users on both machines have the same set of permissions on the shared calendars?

    --
    Ken Slovak
    MVP - Outlook
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
     
     
    "Nitrup" <=?utf-8?B?Tml0cnVw?=> wrote in message news:6b167e49-0201-43e8-a8b4-69b14d06e48e...

    ken,

    its shared throgh exchange mailbox. actually iam using a class, as many calendars are ther in outlook , my code will loop through it and will create a constructor, refernec of calendar folder is being passed as Item(second argument in constructor) 

    Public Class xyz
        Dim WithEvents FolderItems As Outlook.Items
      

        Public Sub New(ByVal ddlmsoi As DDLMSOI, ByVal Item As Outlook.NavigationFolder)
            ddlms = ddlmsoi
            Dim olFolder As Outlook.MAPIFolder
            olFolder = Item.Folder
            Me.FolderItems = olFolder.Items       
            olFolder = Nothing
        End Sub

    Private Sub Calendar_ItemChange(ByVal Item As Object) Handles FolderItems.ItemChange      
           msgbox(Item.start)
        End Sub

    here Item will actually behave like  a outloo.appointemntitem at run time and Item.start is what i am looking for corrrect result which is not at the momenet

    this is waht iam doing right now.

    Thanks


    Ken Slovak MVP - Outlook
    Thursday, June 30, 2011 5:57 PM
  • Ken,

    it was in cached exchnged mode, i made it offnow and both users have same set of permission level  and then i checked it again but same thing is reapeting again and again which i mentioned above

     

     

    Friday, July 1, 2011 8:40 AM
  • Are the first and second machines both running the same versions of Outlook with all the same integration code running?
     
    What happens if you close Outlook and then re-open it on the test machine while leaving the first and second machines sharing the calendars alone? Does the changed Start value get retrieved then?

    --
    Ken Slovak
    MVP - Outlook
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
     
     
    "Nitrup" <=?utf-8?B?Tml0cnVw?=> wrote in message news:974032e0-de5c-4863-adab-02f9c1e388cd...

    Ken,

    it was in cached exchnged mode, i made it offnow and both users have same set of permission level  and then i checked it again but same thing is reapeting again and again which i mentioned above

     

     


    Ken Slovak MVP - Outlook
    Friday, July 1, 2011 1:25 PM
  • Ken,

    yes outlook on both machines is having same version and same code runing on both

     

    if i close outlook and then restart on test machine , then its giving me changed Start value, but not after that

    Friday, July 1, 2011 1:47 PM
  • It still sounds to me like there's a reference or lock being held on the items that's only released if your close Outlook (or probably your code). I would make sure the same thing is still happening if all other Outlook integration code is disabled, if it still happens then the only thing I can think of is some sort of conflicting reference to the item.

    --
    Ken Slovak
    MVP - Outlook
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
     
     
    "Nitrup" <=?utf-8?B?Tml0cnVw?=> wrote in message news:38a81c0b-8055-4da0-b51c-e3c604e69f81...

    Ken,

    yes outlook on both machines is having same version and same code runing on both

     

    if i close outlook and then restart on test machine , then its giving me changed Start value, but not after that


    Ken Slovak MVP - Outlook
    Tuesday, July 5, 2011 1:45 PM