none
[EX2010][EWS][C#]: Do you want to save changes < Contact Name>? RRS feed

  • Question

  • I am using an application which creates contacts and sends contact in outlook. Everything is working fine but when i open newly created contact in outlook(created in in my application, and send to outlook), and click on CLOSE button without making any changes, it raise alert

    Do you want to save ...?, even i had not make any change. After pressing Yes/No it close, and form second onwards this alert does not appear.

    I am using outlookSpy to find out the binday/property which might be chnaged by my application, but not succeded yet..

    Insidemy code, i am setting forcefully content of contact's

    Email1AddressType='SMTP' and

    Email1Address=anyuser@anydomain.com

    If i removed this code section, outlook stops to show the alert. However due to my requirement I need to implement above code.

    I want to know what is the cause of this alert? or which property raise the outlook alert( i assume this property has been changed in my code, not sure..) as i mentioned above.

    Can be set 'the property' which is used to raise alert in my code as unchanged state( asuming  my current code is making 'this property' state to 'Changed')

    Please have a look on this link, which will give more detail on the current issue..

    http://social.technet.microsoft.com/Forums/en-US/exchangesvrdevelopment/thread/0edad497-1bfb-4c21-8cd6-13d9231eede4

    Any idea to overcome this problem.


    -- Alok Tripathi

    Wednesday, April 11, 2012 4:19 AM

All replies

  • I am using an application which creates contacts and sends contact in outlook. Everything is working fine but when i open newly created contact in outlook(created in in my application, and send to outlook), and click on CLOSE button without making any changes, it raise alert

    Do you want to save ...?, even i had not make any change. After pressing Yes/No it close, and form second onwards this alert does not appear.

    I am using outlookSpy to find out the binday/property which might be chnaged by my application, but not succeded yet..

    Insidemy code, i am setting forcefully content of contact's

    Email1AddressType='SMTP' and

    Email1Address=anyuser@anydomain.com

    If i removed this code section, outlook stops to show the alert. However due to my requirement I need to implement above code.

    I want to know what is the cause of this alert? or which property raise the outlook alert( i assume this property has been changed in my code, not sure..) as i mentioned above.

    Can be set 'the property' which is used to raise alert in my code as unchanged state( asuming  my current code is making 'this property' state to 'Changed')

    Any idea to overcome this problem.


    -- Alok Tripathi

    • Merged by Jie Bao Thursday, April 12, 2012 4:00 AM
    Thursday, April 5, 2012 12:18 PM
  • There are other properties related to an email address that you aren't creating and that Outlook is creating when the item is opened:
     
    Email1DisplayName
    Email1EntryID
     
    How are you adding email addresses to the contact?

    --
    Ken Slovak
    [MVP - Outlook]
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
    Reminder Manager, Extended Reminders, Attachment Options
    http://www.slovaktech.com/products.htm
     
     
    "Alok Tripathi" <=?utf-8?B?QWxvayBUcmlwYXRoaQ==?=> wrote in message news:3341c329-6c4b-4178-a9c2-a9e48d03e313...

    I am using an application which creates contacts and sends contact in outlook. Everything is working fine but when i open newly created contact in outlook(created in in my application, and send to outlook), and click on CLOSE button without making any changes, it raise alert

    Do you want to save ...?, even i had not make any change. After pressing Yes/No it close, and form second onwards this alert does not appear.

    I am using outlookSpy to find out the binday/property which might be chnaged by my application, but not succeded yet..

    Insidemy code, i am setting forcefully content of contact's

    Email1AddressType='SMTP' and

    Email1Address=anyuser@anydomain.com

    If i removed this code section, outlook stops to show the alert. However due to my requirement I need to implement above code.

    I want to know what is the cause of this alert? or which property raise the outlook alert( i assume this property has been changed in my code, not sure..) as i mentioned above.

    Can be set 'the property' which is used to raise alert in my code as unchanged state( asuming  my current code is making 'this property' state to 'Changed')

    Any idea to overcome this problem.


    -- Alok Tripathi


    Ken Slovak MVP - Outlook
    Thursday, April 5, 2012 4:20 PM
  • Please have a look on this link,

    http://social.technet.microsoft.com/Forums/en-US/exchangesvrdevelopment/thread/0edad497-1bfb-4c21-8cd6-13d9231eede4


    -- Alok Tripathi

    Tuesday, April 10, 2012 5:12 AM
  • If you're using EWS to create the items and properties that has nothing to do with Outlook programming. You should ask your question in an EWS forum so you can learn how to correctly create such properties using that API.
     
    http://social.technet.microsoft.com/Forums/en-US/exchangesvrdevelopment/threads is an Exchange development forum that takes EWS questions.

    --
    Ken Slovak
    MVP - Outlook
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
     
     
    "Alok Tripathi" <=?utf-8?B?QWxvayBUcmlwYXRoaQ==?=> wrote in message news:78aff494-6a15-43c9-aa1d-57ddb8200dc2...

    Please have a look on this link,

    http://social.technet.microsoft.com/Forums/en-US/exchangesvrdevelopment/thread/0edad497-1bfb-4c21-8cd6-13d9231eede4


    -- Alok Tripathi


    Ken Slovak MVP - Outlook
    Tuesday, April 10, 2012 7:02 PM
  • From what you have described the code your using is causing the problem eg your using extended properties in a way that is creating or modifying objects so the property combinations are invalid or missing Outlook if just trying to fix it for you . Without being able to see the full code your using its hard to tell which properties (you need to post a full sample)

     > I am using outlookSpy to find out the binday/property which might be chnaged by my application, but not succeded yet..

    You should be able to work it out using this eg do a watch and look at which properties are modify when you save the Item in Outlook (make sure you have Outlook in Online mode and not cache mode). You can also use Outlook Spy to compare two items eg created one item using Outlook and then compare it against an Item your code is modifying. You should be able to see missing or which properties have different values this way.

    Cheers
    Glen

    Wednesday, April 11, 2012 5:20 AM