Unable to read Follow-Up (FlagDueBy) from Outlook MailMessage headers

I am trying to read the Follow-Up / DueDate (FlagDueBy) value from Outlook emails using UiPath.

I tried two different approaches:

1. Get Outlook Mail Messages → For Each MailMessage

I loop through each mail and try:
mail.Headers(“FlagDueBy”)

But the Headers collection does not contain FlagDueBy at all, even though the email has a Follow-Up set with a Due Date.

2. For Each Outlook MailMessage activity

Same result — the header is always missing.

Questions:

  1. Is FlagDueBy intentionally not exposed in the MailMessage.Headers dictionary by UiPath Outlook activities?
  2. Is there any official way to retrieve Follow-Up metadata without using VBA or Outlook Interop manually?

Extra Info:

  • I am using Desktop Outlook (not Office 365 activity).
  • UiPath Studio
  • Get Outlook Mail Messages
  • All other email properties are readable, only Follow-Up metadata is invisible.

Any official confirmation or workaround would be appreciated.

Thank you!

The FlagDueBy (Follow-Up Due Date) is not exposed in the MailMessage.Headers collection by UiPath’s Outlook activities, as it is part of the Outlook item properties, not the headers.

To retrieve FlagDueBy:

  • Outlook Interop: Use Invoke Method or Invoke Code activities to access Outlook COM objects and retrieve properties like MailItem.FlagDueBy.
  • If you’re using Desktop Outlook, you’ll need to interact with Outlook via Interop (using Microsoft Outlook Object Library).

Unfortunately, there isn’t an official way in UiPath’s default activities to directly access this metadata without using Interop or VBA.

If you want to explore an alternative, EWS (Exchange Web Services) or Office 365 activities can be used for cloud-based setups.

1 Like

Hi @araz.rustamov

Using Outlook does NOT expose follow-up or due date metadata such as FlagStatus, FlagRequest, FlagDueBy, StartDateTime, ReminderTime, etc.

Although if you use O365, You can get it all of them like below

Unfortunately, there is no official way in UiPath’s default activities to directly access this metadata without using Interop or VBA.

Let me know if you need any other help.

If helpful, mark as solution. Happy automation with UiPath

Hi @araz.rustamov

UiPath does not expose the Outlook Follow‑Up metadata (such as FlagDueBy) through the MailMessage.Headers dictionary, so you cannot retrieve it directly with Get Outlook Mail Messages. The only supported way is to use Outlook Interop or VBA to access those properties.

Happy Automation

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.