How to get Email body from Imap node in function

Hi guys,

Hope you are doing well.

I know how to get attachments from imap node in function node, but now, i want to get the body of email to extract URLS.
I want to know how can i have a similar function like
var data = Object.entries(getBinaryData()); to get attachments in binary format to get the body.

The data is located in the below path.

Thanks in advance

Hey @hermanmaleiane,

Have you tried just clicking on where it says text? That will add the value you can use to get the data to the expression on the right. It is probably something like {{$json["text"]}} or {{$node["email-node-name"].json["text"]}}

2 Likes

Thanks!!that works perfectly

1 Like