In my chatbot the user can request assistance with a technical issue. The bot gathers input from the user and calls an action where the users input is checked against a couple of conditions to return results from a skills matrix to pair them with help in their region and with the desired skillset. All of this works fine. The current bug I'm working through with this is getting the flow to remove my email from the list of emails if I happen to be the user (since I get added to every chat the bot creates due to my profile being used to create the chats). I think I have the solution but when I try to add it as an expression I continue to get "the expression is invalid" error. Here is my expression:
if(equals(outputs('Get_user_profile_(V2)')?['body/mail'], 'bot.me@email.com'), join(body('Filter_array_Equip_Type')?['Email'], ';')), concat(join(body('Filter_array_Equip_Type')?['Email'], ';'), ';', outputs('Get_user_profile_(V2)')?['body/mail']))
My only guess is concat may not be compatible with join somehow? I tried searching the interwebs but found no mention of if these two functions play nicely together. So, I'm bringing it to the forums to see if anyone here knows if these two are compatible or if I need to find a different expression.