Hi I am getting a this statement is invalid return from this function. I simply want it to return an X in my initialize variable step if the dynamic content field from my sharepoint item matches a word, in this case housing. What am i doing incorrectly? Thanks
@ca2020 you have a incorrect quote in the end, you have put the double quote, but it should be two single quotes, use below expression
if(equals(triggerOutputs()?['body/Stressor1'],'Housing'),'X','')
after inputting your expression toggle back and forth between expression and dynamic content. Especially if you copy and pasted the expression. If you still have problems, try doing it in a compose action and then pass the compose value as the variable value.
OK I managed to do it by inserting formula with blanks and then adding text after. Thanks