Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 741615
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T08:39:10+00:00 2026-05-14T08:39:10+00:00

I wrote an addin for outlook, It will popup appointment’s LastModificationTime while I click

  • 0

I wrote an addin for outlook, It will popup appointment’s LastModificationTime while I click button

the button eventhandler like this

  Outlook.ApplicationClass outlook = new Outlook.ApplicationClass();
  Outlook.NameSpace ns = outlook.GetNamespace("MAPI");
  Outlook.MAPIFolder folder = ns.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderCalendar);
  Outlook.Items FolderItems = folder.Items;
  DateTime MyDate = DateTime.Now;
  List<Outlook.AppointmentItem> Appts = (
       from Outlook.AppointmentItem i in folder.Items
       where i.Start.Month == MyDate.Month && i.Start.Year == MyDate.Year
       select i).ToList();
  foreach (Outlook.AppointmentItem Appt in Appts)
  {
    System.Windows.Forms.MessageBox.Show(Appt.LastModificationTime.ToString());
  }

the issue is happened while I changed appointment in my mobile phone, then sync it to the outlook through exchange server

steps which makes issue:

  1. click button, get LastModificationTime as “time1”

  2. change start date as “start1” in my mobile phone, sync to outlook through exchange server

  3. click button, get LastModificationTime, still “time1”

  4. change start date as “start2” in outlook, but the appointment is still in “start1” date.

  5. restart outlook

  6. click button, get new LastModificationTime as “time2”, and appointment is in “start1” date, “start2” is gone.

steps without issue

  1. click button, get LastModificationTime as “time1”

1.1. restart outlook

  1. change start date as “start1” in my mobile phone, sync to outlook through exchange server

  2. click button, get LastModificationTime, “time2”

It looks like
List Appts
is never been refreshed to latest value if the appointment is changed through exchange server.

Is there any solution for this issue? or other reason to make it happened?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T08:39:11+00:00Added an answer on May 14, 2026 at 8:39 am

    Not seeing you other code, but you need to remember to release the appointment objects
    Marshal.ReleaseComObject.
    Also is your client outlook in cache mode?

    Marcus

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am looking for an addin that will allow me to click a button
I wrote an addin a while back for Outlook that adds/removes an optional tagline
I wrote something like this: class Storage { public: Storage(); QString key() const; int
i wrote a little addin, which does some formatting of my C# code. in
I'm trying to write an Outlook Addin in C# using Visual Studio 2010 and
I am developing a Addin to MS outlook using VSTO c#. There I managed
I wrote an add-in for Enterprise Architect. It's a COM Object. This add-in uses
I wrote an ASPX file in VB.NET. Originally this file ran successfully but after
I wrote this query in php: $query = insert into admin values($user,$pass,$email,$signature); mysql_query($query); But
I want to write a simple Outlook 2007 AddIn that allows me to manually

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.