sending schedule to multiple emails with API

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:

72a453bc-a098-42f8-a5e8-da95ed8f5997.png

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

0 1 389
1 REPLY 1

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