Forum Discussion

Sirisha2020's avatar
Sirisha2020
Contributor
4 years ago

getting error while parsing the href in the property transfer editor

Hi,

 

I am trying to parse the href value using the below expression in property transfer editor

 

_links.item[0].href.split('/')[1] 

 

but getting error as "Failed to access the property split". Any idea on this error.

 

Thanks 

  • richie's avatar
    richie
    Community Hero
    Hey Sirisha2020,

    Im probably mistaken, but it looks like youre trying to usr the split method in your xpath. Ami mistaken?

    If you are then i think thatswhy youre getting that error.

    Or have i completely misunderstood?

    Ta

    Rich
    • Sirisha2020's avatar
      Sirisha2020
      Contributor

      Hi Richie,

       

      I selected the Path Language as "JSON Path", Still getting the same error.

       

      Thanks.

      • richie's avatar
        richie
        Community Hero

        Hey Sirisha2020,

         

        I think we're misunderstanding each other.

         

        Can you answer the following questions please?

         

        Is the payload json or xml?

        Have you created a transfer in your property transfer window? 

        Could you please provide a screenshot of the property transfer window?

        Can you please provide the payload? (can have example data in there, but need to understand the structure/hierarchy)

         

        ta

         

        Rich

  • nmrao's avatar
    nmrao
    Champion Level 3
    Sample response respective to your question please?
    • Sirisha2020's avatar
      Sirisha2020
      Contributor

      Hi Rao,

       

      Sorry for the late reply. Please find the sample JSON response for your reference. I tried property transfer and inside tried with split function. nothing worked. I want to retrieve the href value the last string(highlighted).