How to create sharepoint list item from an array with Power Automate

Brass Contributor
I have a flow that gives me an array of variables that I want to add as a SharePoint Item. The output looks something like this: 
{
  "4160": "4000",
  "4310": "",
  "4351": "1500",
  "4353": "",
  "4450": "",
  "4460": "",
  "4512": "",
  "4530": "",
  "4541": "",
  "4550": "",
  "4560": "",
  "4650": "",
  "4651": "",
  "5210": "0",
  "5310": "10",
  "5311": "0",
  "5320": "0",
  "5321": "0",
  "5331": "0",
  "5332": "300",
  "5334": "421",
  "5335": "207,01",
  "5350": "483,94",
  "5354": "0",
  "5356": "3 034,15",
  "5415": "0",
  "5420": "167,72"
}
 
My SharePoint list already exists and has the first variable in each sequence as the headers of the columns. How can I create SP list Item from this array in PowerAutomate? When I add a "Create Item" connector, I see all my columns but I don't see the different outputs from the array to add the right number at the right place.
1 Reply
I'm thinking of a formula using a "If" statement in all the fields for the create item connector. Something like if first variable in the pair equals the title of the column, than put the second variable as the value. I have no idea how to do this though. 😛 I'm learning