zapier-platform icon indicating copy to clipboard operation
zapier-platform copied to clipboard

Hooks: list.perform is executed for sample data, but hook.outputFields is used instead of list.outputFields

Open nitwhiz opened this issue 3 years ago • 2 comments

Current Behavior

When defining a resource with a hook action and a list action, the Zapier frontend executes list.perform to get sample data for further configuration. The output fields used to specify "what-is-what" are used from the hook definition, without falling back to the outputFields of the list operation.

Desired Behavior

If hook.ouputFields is undefined, fall back to list.outputFields or maybe don't even consider hook.outputFields if hook.performList is not defined. This makes sense because list.perform is executed anyways.

nitwhiz avatar Mar 23 '21 08:03 nitwhiz