Watcher - Mail ouput : send .csv from input

Hello,

I've created a watcher that sends an email containing a list of items that the Input returns to me. The Watcher sends this list by mail, in the body of the mail. Is it possible to send this list in a .csv file?

Thx !

1 Like

I found a solution :

Make a Discover view > Share > Csv -> copy link.

Inside a Watcher :

 "actions": {
    "send_email": {
      "email": {
        "profile": "standard",
        "attachments": {
          "name.csv": {
            "reporting": {
              "url": "*Discover link*",
              "auth": {
                "basic": {
                  "username": "username",
                  "password": "password"
                }
              }
            }
          }
        },
        "to": [
          "mail@mail.com"
        ],
        "subject": "Subject",
        "body": {
          "text": "body"
        }
      }
    }
  }
1 Like