Problems going from get outlook mail message to get exchange mail message

Hi everyone.

I am having an issue in my project.

Everything was working just fine when i got mails from outlook, but i am trying to change from “get/send/move outlook mail message” to “get/send/move exchange mail message”.

When i did it, my project begun to show me: “Assign: Object reference not set to an instance of an object.” when i tried to assign bodyHTML=mail.Headers(“HTMLBODY”).ToString.

Curiously, it still fetches the date thru mail.Headers(“Date”).

I only changed get exchange message in my project and send exchange/move exchange are far below in the sequence.

Do you guys have any idea of what might be happening?


Can you send the sequence for further reference!!!



Unfortunately i am a new user and cannot upload files yet.

I can take some screenshots if it helps:


Hi, now i can do it properly. Any idea of what might be happening and why it works in “get outlook” and not “get exchange”?Main.xaml (6.4 KB)

I got it! Thank you @Thilagavathiprincess.

In exchange i can check if the body is in html format and then if i type mail.Body it is already in the propper format.

1 Like

congrats !! :handshake: :handshake: :handshake:

Happy Automation!!!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.