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

Notifications

Announcements

No record found.

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
    665 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
    961 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 76

#3
Martin Dráb Profile Picture

Martin Dráb 64 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans