Official Content

Marks the last message received through the Receive method as read.



Type Returned:


Extended Data Types: MAPISession, OutlookSession
Generators: .NET.NET Framework, Java, Ruby (up to GeneXus X Evolution 3), Visual FoxPro (up to GeneXus X Evolution 3)


If the Receive method was not called, or if the last call did not return a message (for instance, due to an error), the call to MarkAsRead results in error 26. 
This property must be configured after performing the Receive.

  • In order to use this property you must set the “Functions” property with the “Allow non-standard functions on saving” value in design, and the prototype/production “Functions” property with the “Allow non-standard functions on specifying” value.
  • This method returns an error code, so it is possible to call it as follows: &Err = &DataType.MarksAsRead()


See Also

Receive Method
Send Method
MAPISession Data Type
OutlookSession Data Type

Last update: November 2023 | © GeneXus. All rights reserved. GeneXus Powered by Globant