Expand my Community achievements bar.

SOLVED

How to extract value from XML object

Avatar

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

Avatar

Correct answer by
Administrator
3 Replies

Avatar

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


     Manoj
     Find me on LinkedIn

Avatar

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..

Avatar

Correct answer by
Administrator

Please refer to this thread for the solution: https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-classic-questions/how-to-extract-val...

 

Thanks!



Sukrity Wadhwa