zapier-cli

How to use the post_poll method in Zapier CLI

一曲冷凌霜 提交于 2020-01-30 08:27:27
问题 According to the docs, I should use a post_poll function to add the missing id field in the response. How do I add the post_poll function ? Here's my error: Results must be an array, got: object, ({"totalevents":83,"events":[{"eventid":10266033,"c) - Got a result missing the "id" property (83) Tried following this but it is not clear to me, I'm very new to Zapier-CLI Update - adding code This is the function that returns the data: const listEvents = (z, bundle) => { console.log('listing

How to use the post_poll method in Zapier CLI

老子叫甜甜 提交于 2020-01-30 08:27:24
问题 According to the docs, I should use a post_poll function to add the missing id field in the response. How do I add the post_poll function ? Here's my error: Results must be an array, got: object, ({"totalevents":83,"events":[{"eventid":10266033,"c) - Got a result missing the "id" property (83) Tried following this but it is not clear to me, I'm very new to Zapier-CLI Update - adding code This is the function that returns the data: const listEvents = (z, bundle) => { console.log('listing

Zapier CLI Dynamic Dropdown, how to set multiple values to bundle.inputData

隐身守侯 提交于 2020-01-25 07:58:08
问题 Currently building a Zapier app but running into a blocker when trying to pass information from a dynamic dropdown. Ideally, I want to be able to set an object of data to bundle.inputData whenever someone selects an item. Thedocs only provide a single value solution, but wondering if anybody knows of a solution to this? Example of the problem: //User Data [ {id:1, name: Tommy, email: tom@gmail.com}, {id:2, name: Bill, email: bill@gmail.com}, {id:3, name: Greg, email: greg@gmail.com} ] //Input

Zapier timeout error on test

ⅰ亾dé卋堺 提交于 2020-01-06 07:16:07
问题 I get a timeout error in most but not all the times i run zapier test whether i add --debug or not, here's my code: require('should'); const zapier = require('zapier-platform-core'); // Use this to make test calls into your app: const App = require('../index'); const appTester = zapier.createAppTester(App); describe('Zapier - ON24 CLI Auth App', () => { it('should have Access Tokens pass the authentication from ON24 APIs', (done) => { const bundle = { authData:{ accessTokenKey: 'abc',

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:

How to use the post_poll method in Zapier CLI

拈花ヽ惹草 提交于 2019-12-02 08:03:35
According to the docs , I should use a post_poll function to add the missing id field in the response. How do I add the post_poll function ? Here's my error: Results must be an array, got: object, ({"totalevents":83,"events":[{"eventid":10266033,"c) - Got a result missing the "id" property (83) Tried following this but it is not clear to me, I'm very new to Zapier-CLI Update - adding code This is the function that returns the data: const listEvents = (z, bundle) => { console.log('listing events.. '); let client_id = bundle.inputData.client_id; const requestOpts = { url: `https://wccqa.on24.com