Zapier Cli - How to set value of computed inputField?

爷,独闯天下 提交于 2019-12-24 19:12:15

问题


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
        },
    },

回答1:


David here, from the Zapier Platform team.

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!



来源:https://stackoverflow.com/questions/50386771/zapier-cli-how-to-set-value-of-computed-inputfield

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!