Using Email Separators and reading the reply only

Yvan1
Tera Contributor

Has anyone had any luck with OOB at all with using an Email Reply Seperators?

Following along with the documentation around Email Reply Separators I haven't found how to actually utilize them in an Inbound Email Flow or an Inbound Email Action.

I've seen some community posts that don't seem to go anywhere, and one that gets specific about using a method (extractReplyText) that doesn't seem to exist OOB in the Script Include specified (EmailUtil()) or anywhere that Studio would show me on a global search
How to use email reply separators? - ServiceNow Community

 

Dot walking per the Parsing Inbound Email documentation (email.body.comments) only seems to result in the full body being returned

Parsing Inbound Email | ServiceNow Developer

 

 

2 REPLIES 2

Its_Azar
Tera Guru

Hi there @Yvan1 

 

No OOB doesn’t actually trim the email body based on reply separators — it just stores the full body. The "Email reply separator" property mainly helps in rendering replies in activity streams, but it won’t automatically work in Inbound Email Actions or Flows.  If you want to process only the new reply portion, you’ll need a custom script in your Inbound Email Action   so no the OOB won’t cut it for Inbound processing, you’ll need to handle reply parsing yourself.

 

 

☑️ If this helped, please mark it as Helpful or Accept Solution so others can find the answer too.




Kind Regards,

Mohamed Azarudeen Z

Developer @ KPMG

 Microsoft MVP (AI Services), India

Yvan1
Tera Contributor

Thats what I've read, and thats why I'm exploring the other options mentioned in the links I provided.

 

Does the email.body.comments dot-walk not do what the Parsing Inbound Emails documentation implies?