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 :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Join values of the array into single string

(3) ShareShare
ReportReport
Posted on by 20
Hi,
 
Would someone be able to find a simple solution to join array values into a single string?


I have an output data that looks like this: 

 
[
  {
    "FirstName""Peter"
  },
  {
    "FirstName""James"
  }
]
 

I am trying to get the output of it that would say 

Peter and James

Any help is much appreciated.
Thanks!
 
I have the same question (0)
  • Verified answer
    Jimmy Passeti Profile Picture
    943 Most Valuable Professional on at
    Hello,
    I think you are trying to do this using Power Automate.
    If this is the case, then you can use the join function.
     
    Regards,
    Jimmy Passeti | Microsoft MVP
    ✅ Please mark as Verified if this answered your question
  • Suggested answer
    Satyam Prakash Profile Picture
    1,135 on at

    Use this expression in a Compose or any text field

     
    join(body('Select'), ' and ')
     

    🔸 Replace Select With the name of your Select action that extracts the FirstName values.

     

    Example Flow Snippet:

     

    1.  

      Select → Extract FirstName

       
      {
      "From": your array,
      "Map": {
      "": item()['FirstName']
      }
      }

    2.  

      Compose (or similar) → Use:

       
      join(body('Select'), ' and ')


    3.  
     

    Output: Peter and James

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 Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Subra Profile Picture

Subra 150

#2
11manish Profile Picture

11manish 102

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 86 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans