I haven't had to Outlook for a few years now, so I'm running from memory here, but try
...
$items->Find( "[EntryID] = \"$entryID\"" );
Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller
If I understand your problem, I can solve it! Of course, the same can be said for you.
| [reply] [d/l] |
It seems nice to activate in my code, Unfortunately doesn't work properly. It seems a problem in filter string
"[EntryID] = \"$entryID\"".
I want to do it with multiple properties such as Subject, SenderName, etc.
If you have further clarification or anyone else...?
| [reply] [d/l] |
...
$items->Find(
'[Subject] = ' . $subject1
. ' or [Subject] = ' . $subject2
. ' and [SenderName] = ' . $sender
);
You'll need to look up the MS docs for the list of available categories and the full syntax. My memory isn't what it once was:)
Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller
If I understand your problem, I can solve it! Of course, the same can be said for you.
| [reply] [d/l] |
Not sure why you want to use Find. If you have the EntryID, no other criteria are necessary (or, indeed, usable). You can get the item directly from the Namespace (i.e. Session) object:
$item = $outlook->GetNamespace('MAPI')->GetItemFromID( $entry_id );
jdporter The 6th Rule of Perl Club is -- There is no Rule #6. | [reply] [d/l] [select] |
You're quite right, I hadn't seen that option. Thanks so much for the tip, it works beautifully now.
Heureux qui, comme Ulysse, a fait un beau voyage
Ou comme celui-là qui conquit la Toison,
Et puis est retourné plein d'usage et raison,
Vivre entre ses parents le reste de son âge!
J. du Bellay, poète angevin
| [reply] |