In a select action I am doing...
addProperty(item(),'ProjectStatusId',xpath(outputs('XMLComments'),concat('//Array[ProjectId/text()="', item()['ReportId'],'"]/StatusId/text()'))?[0])
Right after I am doing another select to append a different property using the same xpath query but a different variable. The previous one appended "StatusId" and this one appends "PercentComplete". They are both referencing the same object where ProjectId value=item() ReportId.
addProperty(item(),'PercentComplete',xpath(outputs('XMLComments'),concat('//Array[ProjectId/text()="', item()['ReportId'],'"]/PercentComplete/text()'))?[0])
Can I combine these into one select ... I don't want to use the standard select where you map each property because I have alot of them - I only care about appending/adding these 2 properties.