web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / can output of join be ...
Copilot Studio
Answered

can output of join be concatenated with additional text in single expression?

(0) ShareShare
ReportReport
Posted on by 189

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.

  • Verified answer
    kgreen8790 Profile Picture
    189 on at

    I swear, at this point I'm just posting on here to jump start my own problem solving abilities. The last three posts I've done have led to me figuring out the solution just a few moments after posting the question. Something about putting it on here for the world to see makes me look at my code/process more critically and then I end up solving it. I'll leave this here along with the solution in case anyone else runs into this problem. 

    My issue was the double closing parenthesis on at the end of the first join function and I had to use select function to grab emails from array first. Totally spaced there I guess. Here is the correct code for this solution.

     

     

    if(equals(outputs('Get_user_profile_(V2)')?['body/mail'], 'Kevin.Green@convergint.com'), join(body('Select'), ';'), concat(join(body('Select'), ';'), ';', outputs('Get_user_profile_(V2)')?['body/mail'][0]))

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Mohsin Ali Profile Picture

Mohsin Ali 308

#2
Valantis Profile Picture

Valantis 154 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 133 Super User 2026 Season 2

Last 30 days Overall leaderboard