Datatable output from mail

Is there any way to find out if a particular mail contains datatable inside it or not? Like I just want the bot to to read the body of the email and give me a boolean output if it contains a datatable or not?

Hi @shreyaank

You can use item.Header(“HTMLBody”).ToString to convert email to html and check for table tag

it doesnt seem to work. Getting error saying it cannot assign. I am assigning it to a string variable

What is the error you are getting


Value cannot be assigned to a string variable is the error

Here item is the mail item