使用 SendGrid 从逻辑应用向多个收件人发送电子邮件

Sending emails with SendGrid from a logic app to multiple recipients

是否有一种简单的方法可以使用 SendGrid 从 Azure 逻辑应用向多个收件人发送电子邮件,例如逗号分隔等?

现在是这样的:

       "actions": {
        "Send_email_(V3)": {
          "type": "ApiConnection",
          "inputs": {
            "host": {
              "connection": {
                "name": "@parameters('$connections')['sendgrid']['connectionId']"
              }
            },
            "method": "post",
            "body": {
              "from": "webserver@hotmail.com",
              "to": "firstaddress@somemail.com",
              "subject": "** My subject **",
              "text": "Some text",
              "ishtml": ""
            },
            "path": "/v3/mail/send"
          },

是否可以

"to": "firstaddress@somemail.com, secondaddress@somemail.com"

?

SendGrid V3 连接器文档指出,您可以在 ToCCBCC 字段中用逗号分隔电子邮件地址:

Valid email addresses separated by a semicolon or comma

查看文档:SendGrid Connector