i have big trouble with simple expression with substring.
My goal is merge two sharepoint list to one excel table. And problem is when value is empty that flow crash.
is possible create expression with If statemant, when value is empty, do nothing ?
String
1980034 - John Wick
expression result:
1980034
{
"id":@{substring(item()?['listItem1'],0,indexOf(item()?['listItem1'],'-'))}
}
Expression works, but when value missing flow crash
idif expression returns empty result?NULLi needifstatement to do nothing, when is not null do substringIDis only name of column in tableif(empty(item()?['listItem1']), '', substring(item()?['listItem1'],0,indexOf(item()?['listItem1'],'-')))if(empty(item()?['listItem1']), null, substring(item()?['listItem1'],0,indexOf(item()?['listItem1'],'-'))). Let me know if this works for you.