[英]Zapier scripting without action key
Wondering if there's a catch all for actions pre/post functions, I have a certain function I want to run every action through so instead of:想知道是否有针对操作前/后功能的全部功能,我有一个特定的功能,我想运行每个操作,而不是:
TRIGGERKEY1_pre_custom_trigger_fields: function(bundle) {
function();
}
TRIGGERKEY1_pre_custom_trigger_fields: function(bundle) {
function();
}
TRIGGERKEY1_pre_custom_trigger_fields: function(bundle) {
function();
}
I could have something like:我可以有类似的东西:
pre_custom_trigger_fields: function(bundle) {
function();
}
Searched through the scripting docs and couldn't see anything, tried a few 'guesses' to no avail!搜索脚本文档并没有看到任何内容,尝试了一些“猜测”无济于事! Is this possible?
这可能吗?
Thanks!谢谢!
It's not possible to do it natively - but you could do this:本地无法做到这一点 - 但你可以这样做:
var commonFunc = function(){};
var Zap = {
TRIGGERKEY1_pre_custom_trigger_fields: commonFunc,
TRIGGERKEY2_pre_custom_trigger_fields: commonFunc,
TRIGGERKEY3_pre_custom_trigger_fields: commonFunc
};
Should work fine!应该工作正常!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.