Skip to Content

Filter a list inside NWBPM

Hi,

i have an xml response from a web service like this:

<xml>
<Attachment>
<documentType> F </node>

</Attachment>
<Attachment>
<documentType> B </node>
</Attachment>
<Attachment>
<documentType> D </node>

</Attachment>
</xml>

Is it possible to check if the node "documentType" contains the value F?

I tried the function CONTAINS but it is used only for strings not for list of strings, any suggestions?

Thanks,

Antonello

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jan 08 at 05:34 PM

    Hi Antonello;

    You can use filter function.

    filter(Attachment,"documentType=F")


    Regards
    Hasan

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 11 at 03:53 PM

    Ok, but if there isn't a document type F the return of the function is?

    Add comment
    10|10000 characters needed characters exceeded