Send meeting metrics to host via email
@zoom-demo
code:
data:privatelast updated:3 years ago
today
Build integrations remarkably fast!
You're viewing a public workflow template.
Sign up to customize, add steps, modify code and more.
Join 800,000+ developers using the Pipedream platform
steps.
trigger
inactive
last updated:-last event:-
steps.
get_meeting_details
auth
to use OAuth tokens and API keys in code via theauths object
(auths.zoom_admin)
params
Meeting UUID

The unique identifier for the meeting instance

{{event.payload.object.uuid}}
string ·params.meetingUUID
code
Write any Node.jscodeand use anynpm package. You can alsoexport datafor use in later steps via return or this.key = 'value', pass input data to your code viaparams, and maintain state across executions with$checkpoint.
async (event, steps, params, auths) => {
1
2
3
4
5
6
7
}
8
return await require("@pipedreamhq/platform").axios(this, {
  url: `https://api.zoom.us/v2/past_meetings/${params.meetingUUID}`,
  headers: {
    Authorization: `Bearer ${auths.zoom_admin.oauth_access_token}`,
  },
})
steps.
get_meeting_participants
auth
to use OAuth tokens and API keys in code via theauths object
(auths.zoom_admin)
params
Meeting UUID

The unique identifier for the meeting instance

{{event.payload.object.uuid}}
string ·params.meetingUUID
code
Write any Node.jscodeand use anynpm package. You can alsoexport datafor use in later steps via return or this.key = 'value', pass input data to your code viaparams, and maintain state across executions with$checkpoint.
async (event, steps, params, auths) => {
1
2
3
4
5
6
7
}
8
return await require("@pipedreamhq/platform").axios(this, {
  url: `https://api.zoom.us/v2/past_meetings/${params.meetingUUID}/participants`,
  headers: {
    Authorization: `Bearer ${auths.zoom_admin.oauth_access_token}`,
  },
})
steps.
format_email_text
auth
to use OAuth tokens and API keys in code via theauths object
code
Write any Node.jscodeand use anynpm package. You can alsoexport datafor use in later steps via return or this.key = 'value', pass input data to your code viaparams, and maintain state across executions with$checkpoint.
async (event, steps) => {
1
2
}
3
this.msg = `Meeting ${event.payload.object.topic} lasted for ${steps.get_meeting_details.$return_value.total_minutes} minutes and had ${steps.get_meeting_participants.$return_value.participants.length} participants`
steps.
send_email
Send an email to a recipient.
auth
(auths.sendgrid)
params
To email

The email address of the recipient.

{{steps.get_meeting_details.$return_value.user_email}}
string ·params.to_email
Subject

The subject line of your email.

Meeting metrics for meeting {{event.payload.object.topic}}
string ·params.subject
From email

The email address of the sender.

 
string ·params.from_email
Reply to_email

The email address to which responses will be sent.

 
string ·params.reply_to_email
Type

The mime type of the content you are including in your email. For example, text/plain or text/html.

text/plain
string ·params.type
Value

The actual content of the specified mime type that you are including in your email.

{{steps.format_email_text.msg}}
string ·params.value
Optional
code
async (params, auths) => {
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
}
41
const axios = require('axios')

return await require("@pipedreamhq/platform").axios(this, {
  url: `https://api.sendgrid.com/v3/mail/send`,
  headers: {
    Authorization: `Bearer ${auths.sendgrid.api_key}`,
  },
  method: 'POST',
  data: {
    "personalizations": [{
      "to": [{
        "email": params.to_email,
        "name": params.to_name
      }],
      "subject": params.subject,
      "headers": params.headers,
      "substitutions": params.substitutions,
      "custom_args": params.custom_args,
      "send_at": params.send_at
    }],
    "from": {
      "email": params.from_email,
      "name": params.from_name
    },
    "reply_to": {
      "email": params.reply_to_email,
      "name": params.reply_to_name
    },
    "content": [{
      "type": params.type,
      "value": params.value
    }],
    "template_id": params.template_id,
    "sections": params.sections,
    "categories": params.categories,
    "batch_id": params.batch_id,
    "ip_pool_name": params.ip_pool_name
  }
})