Hello there.
I have the following Pipeline
I want to get the property error message from with every test fails, but i am stuck with the following error
The expression
concat(
if(equals(activity('Test1').Error?.message, null), '', 'Test1'),
if(equals(activity('Test2').Error?.message, null), '', 'Test2')
)
cannot be evaluated because property 'Error' cannot be selected.
Basically, if the property (error) does not exist, i want a blank string,
if it does exist, i to return hard coded text, ie whichever task it is failing.
Can this be done?
I have also tried the following but does not work
@concat(
if(contains(string(activity('Test1')), 'Error'), 'Test1',''),
if(contains(string(activity('Test2')), 'Error'), 'Test2','')
)
Is there a way for doing this please
Regards
Rob