I am trying to extract columns of type Number from sharepoint list to a csv file. One of the Columns has a default value of 1 and another one with no default blank. My flow is using Get item, xml, create csv table and create file ACTIONS. I tried with the following expressions
if(equals(xpath(item(), 'string(//Field_6/text())'), ''), 1, number(xpath(item(), 'string(//Field_6/text())'))) and
if(not(empty(xpath(item(), 'string(//Field_6/text())'))), number(xpath(item(), 'string(//Field_6/text())')), 1)
But this is setting field_6 value to 1 and not reading the actual value !
Can anyone suggest me what is wrong with this expression and provide the correct syntax please.