You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Pipedream:执行Coda Upsert Rows操作前配置条件

在Pipedream中配置条件触发Coda的Upsert Rows操作

你可以通过两种方式实现仅当指定字段值为add_to_Coda时才运行Upsert Rows步骤:

方法一:使用Condition步骤做分支判断

  • 在触发步骤和Upsert Rows步骤之间添加一个Condition步骤
  • 在Condition的配置面板中,输入判断表达式:
    {{steps.trigger.event.body.references[2].name}} == 'add_to_Coda'
    
  • 将Upsert Rows步骤拖入If true分支下;If false分支可留空,或设置终止工作流的操作

方法二:直接给Upsert Rows步骤添加运行条件

  • 点击Upsert Rows步骤右上角的三个点,选择Settings
  • 在「Run this step」选项中,选择「Only if a condition is met」
  • 输入条件表达式:
    {{steps.trigger.event.body.references[2].name}} === 'add_to_Coda'
    
  • 保存设置后,该步骤只会在条件满足时执行

额外提示

为避免因references[2]不存在导致的报错,建议使用可选链操作符优化表达式:

{{steps.trigger.event.body.references?.[2]?.name === 'add_to_Coda'}}

内容的提问来源于stack exchange,提问作者alyssaeliyah

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.31 11:11:20