Help with Mapping "To Recipients" in Microsoft 365 Email Module

Hello,

I’m encountering an issue when trying to send emails through the Microsoft 365 Email module in my Make.com scenario. I am using the “Create and Send a Message” action to send an email, but I’m getting an error related to the “To Recipients” parameter.

Here’s the error message I’m receiving:

Validation failed for 1 parameter(s).

  • Array of objects expected in parameter ‘toRecipients’.

Steps Taken:

  1. Webhook Setup: I’ve set up a webhook to receive form data from Tally.so.
  2. OpenAI Module: I’m using OpenAI to generate output based on the form input.
  3. JSON Parse Module: I’ve set up a JSON Parse module to extract the form data.
  4. Microsoft 365 Email Module: I am trying to send the generated email using the Microsoft 365 Email module, but I’m facing issues with the “To Recipients” field.

What I’m Trying to Do:

I want to dynamically map the recipient’s email address from the form data that is coming through the webhook. The email field is correctly captured in the form, but the Microsoft 365 module is expecting an array of email objects.

Issue:

When I map the email value directly to the “To Recipients” field (e.g., 1. data.fields[3].value), I receive the error mentioned above.

Request:

Can anyone help me format the “To Recipients” mapping correctly? Should I wrap the email address in an array like this?

[ { “email”: “1. data.fields[3].value” } ]

Or is there another method to make it work? Any help or guidance on how to resolve this would be much appreciated

Thanks in advance!

Hi @ArkZ3R0

  1. Add all possible email values to an Iterator using the add Array function.
  2. Aggregate all emails into an array and specify the target data structure.

  3. Add an array into the To Recipients field of the MS 365 Email module; ensure that you click Map in the field settings.

Thank you for helping me with this, it is greatly appreciated :slight_smile:

1 Like