Skip to main content
shaikg2747
Known Participant
Apr 25, 2023 5:56 AM UTC
Question

How to read XML output from an integration output..?

Hi, 

I have to read the integration output which will be in XML, how to consider the tags that I need to get from the output...?

Thanks in advance,

Gousi.

6 replies

stefanhelzle0001
Brainy
Apr 25, 2023 6:17 AM UTC

I am not sure I understand your actual question.

You can cast a XML structure to CDT and use xpathsnippet to navigate in the XML structure.

docs.appian.com/.../fnc_scripting_torecord.html

docs.appian.com/.../fnc_scripting_xpathsnippet.html

shaikg2747
Known Participant
Apr 25, 2023 6:20 AM UTC

Actually, we are not using any CDT's and totally working with Records. And I will be getting an integration output in an XML format, and I have to consider some tags from that output to calculate the score which is my requirement.

sanchitg0002
Inspiring
Apr 25, 2023 6:23 AM UTC

Yes that's what Stefan suggested, you can use xpathsnippet() or extract() function to get the required tags from the XML output.