The CreatorCon Call for Content is officially open! Get started here.

Parsing Nested Attachments

JosephW1
Tera Guru

Certain of our sys_emails have attachments that have nested attachments within them. We are needing to parse one of those nested attachments for one of our use cases.

 

How do we parse a nested attachment? Please advise, thanks!

 

Use Case
Emails to/from ServiceNow have "Watermarks" in them - REF numbers at the bottom of the email - that appear in the email. When our ServiceNow sends an email to an undeliverable email address, we get back an email that has another email - some sort of summary page - attachmed which has the original watermarked message as a nested attachment in that attached email; an attachment within an attachment. We know how to parse the sys_email's top-level attachment - which is the summary email - but we don't know how to parse that attachment's nested attachment instead.

1 ACCEPTED SOLUTION

JosephW1
Tera Guru

Apparently GlideSysAttachment was already parsing the nested attachments and so the REF number was already coming across our parser but we just didn't realize it. That was a nice surprise!

View solution in original post

1 REPLY 1

JosephW1
Tera Guru

Apparently GlideSysAttachment was already parsing the nested attachments and so the REF number was already coming across our parser but we just didn't realize it. That was a nice surprise!