0

Insert simple table from a select action in power automate

I want to populate a simple table with two columns in word. I followed your manua on https://support.encodian.com/hc/en-gb/articles/360020426438-Tables.

the output of my select actions has the right structure in my option:

{

    "body": [

        {

            "Bezeichnung": "Einwirkung1",

            "Prozess": "Lawine"

        },

        {

            "Bezeichnung": "test 12.01.24",

            "Prozess": "Überschwemmung dynamisch"

        },

        {

            "Bezeichnung": "test CST",

            "Prozess": "Oberflächenabfluss"

        },

        {

            "Bezeichnung": "Test CST - Überschwemmung dyn.",

            "Prozess": "Überschwemmung dynamisch"

        }

    ]

}
 
My compose action for the Input "Document Data" looks like this:
{

    "einwirkungen": "[{\"Bezeichnung\":\"Einwirkung1\",\"Prozess\":\"Lawine\"},{\"Bezeichnung\":\"test 12.01.24\",\"Prozess\":\"Überschwemmung dynamisch\"},{\"Bezeichnung\":\"test CST\",\"Prozess\":\"Oberflächenabfluss\"},{\"Bezeichnung\":\"Test CST - Überschwemmung dyn.\",\"Prozess\":\"Überschwemmung dynamisch\"}]"

}
 
however I get many empty rows...
what am I missing?
 
 

1 comment

  • Avatar
    Jay Goodison Official comment

    Thank you for those details. Your inputs wrap the array in "double quotes" so the inputs are interpreted as a string by the JSON.
    Remove the double quotes in your Populate Word action and try again.
     

Please sign in to leave a comment.