没有操作键的 Zapier 脚本
Zapier scripting without action key
想知道操作 pre/post 函数是否有一个包罗万象的功能,我有一个特定的函数,我想 运行 每个操作都通过 so 而不是:
TRIGGERKEY1_pre_custom_trigger_fields: function(bundle) {
function();
}
TRIGGERKEY1_pre_custom_trigger_fields: function(bundle) {
function();
}
TRIGGERKEY1_pre_custom_trigger_fields: function(bundle) {
function();
}
我可以有类似的东西:
pre_custom_trigger_fields: function(bundle) {
function();
}
搜索了脚本文档但没有看到任何内容,尝试了几次 'guesses' 无济于事!这可能吗?
谢谢!
本机无法执行此操作 - 但您可以这样做:
var commonFunc = function(){};
var Zap = {
TRIGGERKEY1_pre_custom_trigger_fields: commonFunc,
TRIGGERKEY2_pre_custom_trigger_fields: commonFunc,
TRIGGERKEY3_pre_custom_trigger_fields: commonFunc
};
应该可以正常工作!
想知道操作 pre/post 函数是否有一个包罗万象的功能,我有一个特定的函数,我想 运行 每个操作都通过 so 而不是:
TRIGGERKEY1_pre_custom_trigger_fields: function(bundle) {
function();
}
TRIGGERKEY1_pre_custom_trigger_fields: function(bundle) {
function();
}
TRIGGERKEY1_pre_custom_trigger_fields: function(bundle) {
function();
}
我可以有类似的东西:
pre_custom_trigger_fields: function(bundle) {
function();
}
搜索了脚本文档但没有看到任何内容,尝试了几次 'guesses' 无济于事!这可能吗?
谢谢!
本机无法执行此操作 - 但您可以这样做:
var commonFunc = function(){};
var Zap = {
TRIGGERKEY1_pre_custom_trigger_fields: commonFunc,
TRIGGERKEY2_pre_custom_trigger_fields: commonFunc,
TRIGGERKEY3_pre_custom_trigger_fields: commonFunc
};
应该可以正常工作!