Need help on xpathdocument and torecord functions

Hi All,

I am trying to read one xml data into CDT fields.

I am able to it in expression using

torecord(xpathdocument(cons!FF_XML_TEST2,"PersonName"),
'type!{urn:com:appian:types;XML}FF_Xml_CDT'())

and output:

Type FF_Xml_CDT

Value
Formatted
Raw
Expression
  • FF_Xml_CDT
      • first"Faisal"(Text)
        • last"Faridi"(Text)

      But when I am doing it in Process model CDT variable is getting updated.

      I have attached full steps with my codes.

      Could someone please help where I am going wrong?

      XML Lines:

      <PersonName>
      <first>Faisal</first>
      <last>Faridi</last>
      </PersonName>


      All Print Screens.docx

      Thanks

      Faisal

        Discussion posts and replies are publicly visible