【问题标题】:Using Zapier Digests to send Airtable Data in a Table Format Via Gmail使用 Zapier Digests 通过 Gmail 以表格格式发送 Airtable 数据
【发布时间】:2020-01-03 04:28:08
【问题描述】:

我正在尝试使用 Zapier 通过 Gmail 发送摘要,使用 (1) Digest zap 聚合数据和 (2) Schedule zap 触发发送摘要。我希望在我的 Zap 中提取的数据以表格的格式输出。

我尝试过的事情 -

1) 尝试 1:在摘要 zap 中包含整个电子邮件和表格(标题和行)的 html 代码,并使用计划电子邮件仅发送摘要 问题:它将所有格式添加到它收集的每个数据点(因此,如果我有表头或任何类似的东西,我会为它收集的每一位数据获得一个新的表头行)。

2) 尝试 2:创建两个 html 表 - 一个在 Digest zap 中仅包含数据行(因此没有表标题、其他电子邮件文本等),另一个在 Schedule zap 中包含电子邮件文本和行标题。 问题:摘要 zap 行 html 和计划 zap 电子邮件 html 之间的列宽不对齐(即使在 html 中内置了列宽)。

3) 尝试 3(代码如下):仅在 Digest zap 中包含行的 html 编码,然后将其包装在 Schedule zap 中的 table html 中 问题:输出是一个很长的单行

<tr>
    <td width="150">{{65510999__fields__Title (W Deals)}}</td>
    <td width="150">{{65510999__fields__Option Type (W)}}</td>
    <td width="150">{{65510999__fields__Option Status (W)}}</td>
    <td width="150">TBD</td>
    <td width="150">{{65510999__fields__Option Link (W)}}</td>
    <td width="150">{{65510999__fields__Deal Link (W)}}</td>
<tr>
<!DOCTYPE html>
<html>
<head>
<style>
table {
  font-family: arial, sans-serif;
  border-collapse: collapse;
}

td, th {
  border: 1px solid #dddddd;
  text-align: left;
  padding: 8px;
}

tr:nth-child(even) {
  background-color: #dddddd;
}
</style>
</head>
<body>

<h2>OA Options - TBD Deadlines</h2>

<table>
  <tr>
      <th width="200">Title</th>
      <th width="200">Option Type</th>
      <th width="200">Option Status</th>
      <th width="200">Deadline</th>
      <th width="200">Option Link</th>
      <th width="200">Deal Link</th></tr>

 [DIGEST]


</table>
</body>
</html>

【问题讨论】:

  • 我不确定是拼写错误还是问题的根源,但您的 &lt;tr&gt; 标签缺少匹配的 &lt;/tr&gt; 标签,这对于分隔行至关重要。你能确认是不是笔误吗?如果没有,我可以发布更完整的答案
  • 我错过了!我添加了它,它按预期工作!我花了几个小时看着这个,不敢相信这是一件让我失望的小事!谢谢!
  • 没问题!我会将其添加为答案,以便您选择正确。

标签: html zapier airtable


【解决方案1】:

如上所述,您的&lt;tr&gt; 标签缺少匹配的结束标签。试试这个:

摘要:

<tr>
    <td width="150">{{65510999__fields__Title (W Deals)}}</td>
    <td width="150">{{65510999__fields__Option Type (W)}}</td>
    <td width="150">{{65510999__fields__Option Status (W)}}</td>
    <td width="150">TBD</td>
    <td width="150">{{65510999__fields__Option Link (W)}}</td>
    <td width="150">{{65510999__fields__Deal Link (W)}}</td>
</tr>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-07-19
    • 2014-10-10
    • 1970-01-01
    • 2018-02-03
    • 1970-01-01
    • 2016-07-17
    • 2020-11-08
    • 2016-11-25
    相关资源
    最近更新 更多