Forum Discussion

sithgecko's avatar
sithgecko
New Contributor
5 years ago
Solved

Strip Property Transfer

Hello I have one Question I want wo use Property Transfer to Transfer Id from XML Response to Request.

 

In the Source Response I read the XML Value like:

 

//*:xxx/*:ID

 

The result is for example: item#13,3,8

 

For the Target I select //*:ID where The ID is transfered to.

 

But from the result.id I only want the second number behind the first comma, in my example: item#13,3,8

 

Is there a solution to do it?

  • I have to change your solution to:

     

    substring-before(substring-after(//*:xxx/*:ID, ','), ',')

    This works!

     

    Thank you!

2 Replies

  • JHunt's avatar
    JHunt
    Community Hero

    Hi,

    Give this a try:

    substring-before(substring-after(//*:xxx/*:ID, '#'), ',')

     

    • sithgecko's avatar
      sithgecko
      New Contributor

      I have to change your solution to:

       

      substring-before(substring-after(//*:xxx/*:ID, ','), ',')

      This works!

       

      Thank you!