Hi All,
I'm having issues with concat placed with and email send v2.
This works: concat('<b>Gift 2: Alcohol Gift</b><br>',outputs('Home_Address')?['body/r6036d107afcb425faf8518eab85f348f'])
This works: if(equals(substring(outputs('Home_Address')?['body/r59ccb065f2e84f9dac89313e4c80ce66'], 0, indexof(outputs('Home_Address')?['body/r59ccb065f2e84f9dac89313e4c80ce66'],' - ')), 'Alcohol Gift'),concat('<b>Gift 2: Alcohol Gift</b><br>','ab'), '')
But this doesn't: if(equals(substring(outputs('Home_Address')?['body/r59ccb065f2e84f9dac89313e4c80ce66'], 0, indexof(outputs('Home_Address')?['body/r59ccb065f2e84f9dac89313e4c80ce66'],' - ')), 'Alcohol Gift'),concat('<b>Gift 2: Alcohol Gift</b><br>',outputs('Home_Address')?['body/r6036d107afcb425faf8518eab85f348f']), '')
Any ideas why when I run a test on the flow I get the error:
Action 'Send_an_email_(V2)' failed: Unable to process template language expressions in action 'Send_an_email_(V2)' inputs at line '0' and column '0': 'The template language function 'substring' parameters are out of range: 'start index' and 'length' must be non-negative integers and their sum must be no larger than the length of the string. Please see https://aka.ms/logicexpressions#substring for usage details.'.