Question

sending schedule to multiple emails with API

  • 27 October 2021
  • 1 reply
  • 213 views

Hi there,

I am trying to create a schedule that sends a dashboard to more than one email address. But I receive an error when I give two email addresses to the “address” param. here is my code:

does anyone know how I can pass multiple recipients to the schedule in python?


This topic has been closed for comments

1 reply

Hey Mehrnaz,

 

I did that using requests, not the SDK, but I guess that it’ll be the same. You need to duplicate all the destination plan configuration changing the email:
 

"scheduled_plan_destination":[{"format":"'+FORMAT+'","apply_formatting":"true","address":"email1@gmail.com","message":"'+MESSAGE+'","type": "email"},{"format":"'+FORMAT+'","apply_formatting":"true","address":"email2@gmail.com","message":"'+MESSAGE+'","type": "email"}]

Best

Pol