Question

Provide a sample data with file.

  • 11 July 2022
  • 1 reply
  • 11 views

Userlevel 1

Hey,

I am developing a new Integration using the Zapier Platform. I am getting the following warnings in the Publishing Tasks:

Static Sample Is Required
When a user sets up a trigger, they need sample data to be returned in order to have fields available to map in the subsequent steps. If testing the trigger returns no live results, we use static sample data as a fallback.

It's very important that the structure of an object from the actual trigger and in the sample data are identical. Otherwise, users could map fields that don't exist in the live results, which results in a broken Zap.

See Sample Data for more details on this.

Error code D012

But my Action just returns a hydrated file. How do I include a file in my sample data?

 


1 reply

Userlevel 3
Badge +5

Hey @masterAkayMOE 👋

I suggest you check out the example app for files to see how triggers and actions include samples with file objects: https://platform.zapier.com/cli_docs/docs#stashing-files and example app here: https://github.com/zapier/zapier-platform/tree/master/example-apps/files

Hope that helps get you unstuck here! 

Reply