Hi @StijnVerbeeck ,
If I have understood the question correctly, you want to do the following: create a new SharePoint item for each JSON object in an array.
For example

Here is one method you can use to achieve this:
A variable containing the data:

We can use a Select action to transform the data into a new JSON array so that the properties are clear and easy to reference:


The expressions used in the Select action are:
nr:
json(concat('[',replace(slice(string(item()),1,-1),':""',''),']'))?[0]
displayname:
json(concat('[',replace(slice(string(item()),1,-1),':""',''),']'))?[1]
department:
json(concat('[',replace(slice(string(item()),1,-1),':""',''),']'))?[2]
An Apply to each loop is then used to create new items in the SharePoint list using the Output of the Select action:


The expressions used in the Create item action are:
items('Apply_to_each')?['nr']
items('Apply_to_each')?['displayname']
items('Apply_to_each')?['department']
See: 📝Short Notes: Illustrating the Item() and Items(‘Apply_to_each’) function in Power Automate
Ellis
____________________________________
If I have answered your question, please mark the post as ☑️ Solved.
If you like my response, please give it a Thumbs Up.
My Blog Site