Create contact in Microsoft 365 People with multiple email addresses

I have a scenario where the input modules supplies the details of a contact including their email addresses.

Where the contact provides more than one email address they are provided as string separated as a comma

“email”: “firstemailaddress@gmail.com, secondemailaddress@gmail.com”,

I cannot seem to get these into an array that will be accepted by Make.com

I have tried using the split function like this

{{split(3.email; “”“,”“”)}}

I keep getting the following error

Does anyone know what format this field should take?

Hey there,

according to the documentation. The array needs to be something like:

  "emailAddresses": [
    {
      "address": "test@test.com",
      "name": "Test Test"
    }
  ]

You can look into using Create a JSON module to structure the array to follow the same format.