本文介绍了Zapier Cli-如何设置计算所得inputField的值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的zapier cli应用程序中有一个资源.在此资源的create规范中,有一些inputFields,其中之一是account_key(computed:true),我在上一次API调用期间获得了该值.我的问题是如何将account_key设置为以前获取的值?

I have a resource in my zapier cli app. In this resource's create specification, there are some inputFields, one of which is account_key (computed:true), the value of which I obtain during previous API call. My question is how can I set the account_key to a value I fetched previously?

create: {
        display: {
            label: 'Create Client',
            description: 'Creates a new client.',
        },
        operation: {
            inputFields: [
                {key: 'user_id', required: true, type: 'integer', label: 'User', dynamic: 'user.id.email'},
                {key: 'account_key', required: true, type: 'string', label: 'Account Key', computed:true},
                {key: 'address1', required: true, type: 'text', label: 'Address 1'}
            ],
            perform: createClient,
            sample: sample
        },
    },

Zapier Platform团队的

推荐答案

David在这里.

David here, from the Zapier Platform team.

计算字段仅用于捕获OAuth的输出和会话输出.身份验证定义中的所有计算字段都将在bundle.authData中可用.您不应在操作中有明确的覆盖范围.

Computed fields are only used to capture output from OAuth and session output. Any computed fields in your auth definition will be available in bundle.authData. You shouldn't have an explicit field for reach in your actions.

让我知道您是否还有其他问题!

​Let me know if you've got any other questions!

这篇关于Zapier Cli-如何设置计算所得inputField的值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-22 20:29