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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Word Template remove c...
Power Automate
Unanswered

Word Template remove curly bracers etc.

(0) ShareShare
ReportReport
Posted on by 2

hey, I have the following problem, I wanted to get a Word template from a large Sharepoint list. First I use GetItems with a Jquery filter to sort my entries by a specific title field, then I used a corresponding number of select operators to filter the individual columns and then in my Word template I addressed the individual rows of the columns with "array(body('Select1')[1]) etc. The transfer to the template works without any problems, but the template now contains the curly brackets etc from the array entries. Since the template is relatively large, I wanted to ask if there is a way to revise the Word document afterwards and remove the curly brackets etc.? The manual way of replacing in Word is not an option. greetings

Categories:
I have the same question (0)
  • grantjenkins Profile Picture
    11,063 Moderator on at

    Any chance we could see some of the raw output from your Select to see if you can change your expression to exclude the curly braces when writing to Word?

  • phil1804 Profile Picture
    2 on at

    So I managed to remove the curly braces, however in the Word document (2nd image) the other brackets "[" , "]" and the quotation marks at the outputs are still there. In the Word document the outputs of the selects are labeled with 1-4, the outputs where neither the quotes nor the braces are visible are addressed with "first" and correspond to my expectation of the output, but as soon as I address via array("....")[1] the output takes the braces again, how can I fix this ?

    And first thanks for the answer!

     

    SelectOutput.PNG

     

    wordoutput.PNG

  • grantjenkins Profile Picture
    11,063 Moderator on at

    It's still difficult to see how to resolve this without seeing the raw data that you are passing into the Select actions and what expressions you are using in them to extract the data. Plus, what output you are after as an end result.

     

    If you're just trying to extract values from an array of objects and have them as values in a single array, then you can do the following.

     

    Example array of objects:

    [
     {
     "Color": "Red"
     },
     {
     "Color": "Green"
     },
     {
     "Color": "Blue"
     }
    ]

     

    Output you are trying to achieve:

    [
     "Red",
     "Green",
     "Blue"
    ]

     

    How to achieve this - using the following expression in the Map of the Select:

    item()?['Color']

    grantjenkins_0-1667386507114.png

     

    If you then wanted to join the values in the array you could use a Join as so:

    grantjenkins_1-1667386764319.png

     

    This would give you:

    Red,Green,Blue

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard