TItems bug?

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

TItems bug?

Posts: 67
Joined: 2016-08-17
in a timer event, i have:

ItemsEvents: TItems; //linked to inbox
Item: IDispatch;
Item := ItemsEvents.Find('[Test] = ''y''');

the procedure retrieves email where i set

FMail.UserProperties.Add('Test', olText, True, True).Value := 'y';

It works perfectly!

Now i have tried the plug in a new computer and the command ItemsEvents.Find crash
i got this error
unknown property "Test"

I have the same problem when I move email to the trash.
In inbox I read the property "Test"
In the trash I got the same error

unknown property "Test"
Posted 14 Sep, 2016 08:05:22 Top
Andrei Smolin

Add-in Express team

Posts: 14094
Joined: 2006-05-11

In Items.Find Method, they write:

If you are trying to use the Find or Restrict methods with user-defined fields, the fields must be defined in the folder, otherwise an error will occur.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 14 Sep, 2016 09:03:34 Top