Skip to main content
Best answer

Provide a sample data with file.

  • July 11, 2022
  • 1 reply
  • 89 views

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?

 

Best answer by MarinaHBest answer by MarinaH

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! 

View original
Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

1 reply

Forum|alt.badge.img+9
  • Zapier Staff
  • 238 replies
  • Answer
  • July 20, 2022

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!