How to convert mail message object to uipath office 365 message object

I’m trying to convert a mail message item inside a for each loop to office 365 message object.

@rnahasnahasuddin

As of now there is no way to fo that… you can try this market place component but not sure if it supports the ltest version again

What is the use case you need this for?may be we can look at an alternative

Cheers

image

currently in “for each activity” all items are mail message objects , we need to use forward mail activity, for that Message property requires “office 365” message type as value

Hi @rnahasnahasuddin

How are you retrieving the initial MailMessage objects? Are you able to switch your processes to either use ;

  1. The Office 365 “Get Mail” activity (which will retrieve an Office365Message object), then forward using the 365 activity too
  2. Use the Outlook “Get Outlook Mail Messages” to retrieve the email in MailMessage format, then use “Forward Email” to forward this MailMessage?

If you consistently use either the Office 365 activities, or Outlook activities, this should mean you can use the same objects.

Feel free to share the XAML file or a screenshot for better understanding if this doesn’t address your issue :slight_smile:

@rnahasnahasuddin

Why are you using both types…As both activities have thier own forward mail options

Alternately you can get the details from those objects and use send mail as well to forward with data

cheers