Unable to get outlook mail message activity?

Unable to get outlook mail message activity?
I want to read mail body of a specific email.
attached screen shot here.


otMailData.Count always zero why ?

Please help

@Smruti_Smita_Samal1

check the thread provide some expression for get mail follow the instructions

Hi @Smruti_Smita_Samal1

No need to use the both Use Outlook application activity and Get Outlook Mail Message activity.
→ Use the Get Outlook Mail Message activity and you can use the filter option to filter the mails by subject or Sender Mail address.
→ Create a variable in the Get Outlook Mail Message activity it is a collection of Mail Message datatype.
→ Use For each activity to iterate the Output Variable. Output of for each is CurrentItem.
→ Inside for each insert an assign activity and create a variable called MailBody. Give the below expression in assign activity.

- Assign -> MailBody = CurrentItem.Body.tostring

Body of the Mail is stored in MailBody Variable.

Hope it helps!!

1 Like