Set node, only one output

Hello,
I’m trying an automatic software for the first time.

I’ve create an workflow.
Start > HTTP Request > Set.
The data I’m receiving from the HTTP Request is:

[
    {
      "Items": [
        {
          "Name": "2 Guns",
          "ServerId": "a5fe9r5hxh3suuv6wgpk899eaegqy2jo",
          "Id": "174739",
          "RunTimeTicks": 65553300000,
          "IsFolder": false,
          "Type": "Movie",
          "UserData": {
            "PlaybackPositionTicks": 0,
            "PlayCount": 1,
            "IsFavorite": false,
            "LastPlayedDate": "2016-02-19T16:51:51.0000000Z",
            "Played": true
          },
          "ImageTags": {
            "Primary": "6be9a30a6738b3f05fb9bdeb9d26fdd9",
            "Art": "35f1af09908f9c5b105ce39a5583486b",
            "Banner": "5f1fd6371d967c96e3ed400132bea23a",
            "Disc": "530810d6823a1c42b498393728281708",
            "Logo": "eb7c20c208ec8d87edc47e7b502b550e",
            "Thumb": "ccfb730c790a4412e8ec548238f5fd14"
          },
          "BackdropImageTags": [
            "514443d4191f228ac1ae8e5beb7386f9",
            "07984d7bb46c8859983e45cfbe6f53fc",
            "8c60d80c27979f80e67bb7658c4deef8",
            "149e184caaa7b3d89d169094ced08151",
            "d3e22bd348c9efce83e688b10fce651e"
          ],
          "MediaType": "Video"
        },
        {
          "Name": "3 Days to Kill",
          "ServerId": "a5fe9r5hxh3suuv6wgpk899eaegqy2jo",
          "Id": "174740",
          "RunTimeTicks": 73388370000,
          "IsFolder": false,
          "Type": "Movie",
          "UserData": {
            "PlaybackPositionTicks": 0,
            "PlayCount": 1,
            "IsFavorite": false,
            "LastPlayedDate": "2016-02-19T16:09:43.0000000Z",
            "Played": true
          },
          "ImageTags": {
            "Primary": "146f2faf30e8aa0adb7e35bcaacb750f",
            "Art": "f33b94d96ebd325d972db2464ca18e94",
            "Banner": "ecb2c6519b753442fadb08c9e5a689b1",
            "Disc": "4a0a64a13854e5ec8e6eefe5a9368ce8",
            "Logo": "6089cf9aa26ed512fa5d7e828dfddb34",
            "Thumb": "c19cc99b734cb6a745f587b65b09c1de"
          },
          "BackdropImageTags": [
            "db423762684fdbff60ab4b4aad6af26e",
            "c928a656178687090eacc8cc3d234fb6",
            "c3370229d40ae7d4fc7bf4b84a70d88b",
            "198a7f8c465380094375fa8358d9ca7a",
            "0a686540038ae872e906c02e9afdb956"
          ],
          "MediaType": "Video"
        }
      ],
      "TotalRecordCount": 15
    }
  ]

Then I’m using the Set node, to clean the data.
But, I only get 1 movie.
The expression I’m using is {{$node["HTTP Request"].json["Items"][0]["Name"]}}.
I don’t understand how to change it, so I get all the movies.

I hope someone can help me!

Thanks…

Hi @bernard, welcome to the community!

Check out the Item Lists node, it allows you to split out a single field containing multiple items:

After running this operation you’d have multiple items, each with its own Name field. Is this what you have in mind?

2 Likes

Thank you very much, this works…
This was easy… :grinning:

2 Likes

Glad to hear, thanks so much for confirming!

1 Like