Skip to main content

How do I use the When Condition mapping function?

Comments

1 comment

  • David Paras

    Please use below when condition in your data mapping:-

    WHEN CONDITION{($Input_XMLSchema/GetOrders/TYPE = 'BURGER' and string-length($Input_XMLSchema/GetOrders/NUMMER ) =9) or ($Input_XMLSchema/GetOrders/TYPE = 'BURGER' and string-length($Input_XMLSchema/GetOrders/NUMMER ) =0) or ($Input_XMLSchema/GetOrders/TYPE = 'BEDRIJF') } VALUE=[$Input_XMLSchema/GetOrders/NUMMER] OTHERWISE VALUE=[ concat( substring( '000000000', 1, 9 - string-length($Input_XMLSchema/GetOrders/NUMMER )) , $Input_XMLSchema/GetOrders/NUMMER) ]

     

    0

Post is closed for comments.