How to get the most recent email body text and ignoring the previous threads when we reply to email in

Atul Kumar2
Giga Guru

Hi Team,

I followed community thread on this requirement to get the most recent email body text and ignoring the previous thread when replying email for inbound action but got no luck. can anyone guide me on this or help me on this.?

Regards,

Atul Kumar

5 REPLIES 5

vinothkumar
Tera Guru

Hi Atul,



This is how we have configured to take the latest reply from the inbound email action



var messageContent = email.body_text;


if (messageContent.indexOf("From")!=-1)


    {


  messageContent = messageContent.substring(0, messageContent.indexOf("From")).trim();


    }


    else


    {


  messageContent = messageContent.trim();


    }


Thanks Vinod, Let me check and i will come back.



Regards,


Atul


Hi Atul



I need your help in snow application developer training , can u share ur email with me to discuss more if possible.


Thanks


Pranav


Hi.  Just double checking on this.  Since I'm not savvy about the code you provided for the inbound action, does it strip all but the actual top level response?

Thanks,

~Paul