"The reminder for will not appear..." warning in Outlook

Add-in Express™ Support Service
That's what is more important than anything else

"The reminder for will not appear..." warning in Outlook
 
BluePosition


Guest


Hi,

I have an Outlook plugin that UserProperties to a given AppointmentItem before calling appointment.Save().

The problem is, that when the plugin is active and a user creates an appointment, Outlook (2016, 2013) displays the following dialog:
"The reminder for will not appear because the item is in a folder that doesn't support reminders. Is this OK?"

I am suspecting that the call to appointment.Save causes the trouble - can you shed some light on what happens when an appointment is saved?

Thanks!
Posted 18 Apr, 2016 04:35:51 Top
Andrei Smolin


Add-in Express team


Posts: 18829
Joined: 2006-05-11
Hello (BTW, what's your name?)

The issue may relate to the Outlook account used (see your other topic). What Outlook account does the user use?


Andrei Smolin
Add-in Express Team Leader
Posted 18 Apr, 2016 05:24:27 Top
BluePosition


Guest


Hi Andrei,

I am not sure what other topic you are referring to..?

The user uses an Exchange account.

Thanks,
Nicklas
Posted 18 Apr, 2016 05:50:06 Top
Andrei Smolin


Add-in Express team


Posts: 18829
Joined: 2006-05-11
Ah, that's my fault; I meant a post published by someone else, not by you.

What Outlook version are you using? Does the target folder belongs to that Exchange account or you create it in e.g. PST or IMAP Folder?


Andrei Smolin
Add-in Express Team Leader
Posted 18 Apr, 2016 07:40:10 Top
BluePosition


Guest


Do you have a link to the other post? I have tried searching but didn't find anything relevant.

The problem is in both Outlook 2010, 2013 and 2016, 32-bit versions.
The target folder is the users default calendar folder.
Posted 18 Apr, 2016 07:55:49 Top
Andrei Smolin


Add-in Express team


Posts: 18829
Joined: 2006-05-11
Mentioning the other post was my mistake; there's no post related to this problem.

Could you please provide some code for testing? If this is possible, send it to the support email address; see {Add-in Express installation fodler}\readme.txt. Please make sure your email contains a link to this topic.


Andrei Smolin
Add-in Express Team Leader
Posted 18 Apr, 2016 08:32:04 Top
Andrei Smolin


Add-in Express team


Posts: 18829
Joined: 2006-05-11
Hello Nicklas,

Since you invoke this when intercepting the SaveAndClose built-in button, saving is unnecessary - the built-in action will save the item. Also note that you need to release the UserProperties object.

        private void SaveAndCloseRibCommand_OnAction(object sender, IRibbonControl control, bool pressed, ADXCancelEventArgs e)
        {
            var appointment = GetCurrentAppointmentItemFromInspector();
            Outlook.UserProperties userProperties = appointment.UserProperties;
            var testProp = userProperties.Add("Test prop", Outlook.OlUserPropertyType.olText, Type.Missing, Type.Missing);
            testProp.Value = "TestValue";
            Marshal.ReleaseComObject(userProperties);
            Marshal.ReleaseComObject(testProp);
            //appointment.Save();
            Marshal.ReleaseComObject(appointment);            
        }



Andrei Smolin
Add-in Express Team Leader
Posted 19 Apr, 2016 05:19:38 Top
BluePosition


Guest


Hi Andrei,

Thank you for the clarification - your solution seems to solve the problem :)

Best regards,
Nicklas
Posted 19 Apr, 2016 05:45:31 Top
Andrei Smolin


Add-in Express team


Posts: 18829
Joined: 2006-05-11
You are welcome!


Andrei Smolin
Add-in Express Team Leader
Posted 19 Apr, 2016 05:49:22 Top