Dear Glen, thank you gain for your answer.
I'm confuse about one thing:
If I "flag" an email, I can see that email inside the tasks list (outlook desktop and web), and if I debug the email details I can see 2 properties: 0x1090 (flagstatus) and 0x1095 (followup). And this it's perfect.
But if I "play" with this email inside the tasks list (outlook desktop and web), in same cases the 1090 and 1095 properties disappear...
So... if I don't have these properties, obviously I can not see that email inside my tasks list (script) because the "filter" is gone, but I can see that email inside the tasks list (outlook desktop and web).
Why???? Doesn't make any sense. Why the email stay in the list without the "flag" properties? I compared the email before and after... and the result it's only about these 2 fields. My only answer is: Outlook don't use a "flagstatus"
to understand if an email is a task or not. But I don't know which another property use.
Dear Glen can you help me about that?
Thanks you so much.
Regards,
Christian