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
相关产品推荐
相关产品推荐

