Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

How to extract value from XML object

CSLTGUPTAA
Level 2
Level 2

Hi, 

I want to extract email value from email header parameter (which is xml object) from broadLogRcp(deliveries) 

in my workflow. Any insight/sample code would be highly appreciated. 

Example : I want to extract user's email from "email header parameters" from broadLogRcp schema just to know who are all useds were targeted and an email sent out to them. 

Currently user's email in email header parameter is in XML object format so directly we can get the value so I am trying to write one JavaSCript code for the same, so need help to find a solution around this. appreciate your time on this.

Looking forward...

-CSLTgupta

1 Accepted Solution
Sukrity_Wadhwa
Correct answer by
Employee
Employee
3 Replies
Manoj_Kumar_
Community Advisor
Community Advisor

Hello @CSLTGUPTAA ,

 

You can refer to this page for who to parse the XML with javascript.

 

https://www.w3schools.com/xml/xml_parser.asp

 

Thanks,

Manoj

CSLTGUPTAA
Level 2
Level 2
Hi Manoj, thanks. Do you have any example or sample code for the same? If yes that would be really helpful for the same. Appreciate your response..
Sukrity_Wadhwa
Correct answer by
Employee
Employee