when item()[]ParentPosition] is 1.1 below works:
xpath(outputs('Compose-XML'),concat('//array[Item = ',item()['ParentPosition'],']/PartNumber/text()'))?[0]
when item()[]ParentPosition] is is 1.1.1 it does not. I think 1.1.1 requires ". e.g "1.1.1"
Tried below:
concat('//array[Item/text() = ','"', item()['ParentPosition'] ,'"', ']/PartNumber/text()')
returns
//array[Item/text() = \"1.1.1\"]/PartNumber/text()
how do I remove the \ from \"1.1.1\" so that I have "1.1.1".
wrapping with replace does not work e.g. replace( above, '\','')