Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Parsing an XML from email into an incident

Community Alums
Not applicable

I have a requirement to receive an xml via email (either as an attachment or in the body of the email). Once received, it should create a record with the data from the xml (preferably an SIR. Any ideas on the best way to achieve this?

2 REPLIES 2

Tony Chatfield1
Kilo Patron

Hi, you would normally use an inbound action or flow for this requirement.
I think embedding the payload within the message body would be easier for processing than adding as attachment.
If possible using name:value pairs in the message body would also be easier than parsing xml.

Sumanth16
Kilo Patron

Hi @Community Alums ,

 

Please refer to below thread:

https://www.servicenow.com/community/devops-forum/how-to-parse-a-line-from-email-xml-and-assign-to-a-field/m-p/282069

https://www.servicenow.com/community/developer-blog/loading-data-from-an-email-attachment/ba-p/2279728

 

If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!

 

Thanks & Regards,

Sumanth Meda