Getting an Error, in Mail.Subject

The following errors were encountered while processing the workflow tree:
‘VisualBasicValue’: Compiler error(s) encountered processing expression “mail.Subject”.(2) : error BC30456: ‘Subject’ is not a member of ‘Mail’.

Can anyone help me with this?

Hi @Chethana_J_Murthy

What you have given in the expression, could you share the expression and flow what you developed.

Hi @Chethana_J_Murthy

mail is of DataType List(System.Net.Mail.MailMessage).

Run a For Each loop for mail variable and inside that give currentMailMessage.Subject.

Regards

I have given it in loop. I am extracting mailList and looping it and item i have named it as Mail.
I am trying to check in if else, mail.Subject.Equals(in_Config(“InputEmailSubject”).ToString)

This used to work before but today saw that error

Looping Maillist to get mail.
and checking mail.Subject.Equals(in_Config(“InputEmailSubject”).ToString)

Can you share the properties of For Each @Chethana_J_Murthy

Regards

image

Are you using Microsoft 365 activities @Chethana_J_Murthy

Regards

Yes!

Regards,
Chethana

Hi @Chethana_J_Murthy

Check what is there in Item Name and give like that

Regards

“contains(subject, '”+Config(“InvoiceMailKeyWord”).ToString+“')”
try writing this query in getmail

@Chethana_J_Murthy,

Try using For each email O365 activity.

Thanks,
Ashok :slight_smile: