Hi There,
I am trying to follow the first
excel.test.xaml (29.0 KB)
tutorial to extract body of unread outlook email to a message box .
i Have change the type argument to system collection and the variable type but i still kept getting error. Can you help pls ?
Error message
" Cannot convert method group ‘ToString’ to non-delegate type ‘object’. Did you intend to invoke the method?
Cannot convert lambda expression to intended delegate type because some of the return types in the block are not implicitly convertible to the delegate return type".
@Ang_Weng_Fook you can use email.Headers(“Plain Text)” by doing this you can get mail body
or go through the documentation
hey
try the following please
remove the .ToString. Its not necesary now.
Regards!
Hi,
- In For Each loop select System.Net.Mail.MailMessage argument
- Type email.Headers(“PlainText”) in Message Box to print mail body text.
Follow the above steps. It should work.
RPA Use Case
Regards,
Rohit
Thanks for your reply.I tried your method but I have the following error
excel.test.xaml: Unexpected character ‘“’
Unexpected character ‘”’
The name ‘PlainText’ does not exist in the current context
Non-invocable member ‘MailMessage.Headers’ cannot be used like a method.
Great,
Remember to mark as solution to help other people. Happy automation!
Regards