Question

Input designer object

  • 31 August 2021
  • 3 replies
  • 166 views

Hi,

My software syncs orders from one database to another. Here is our object:

Order Number

Order Details

  SKU

  Quantity

 

An order can have multiple details. How do I set up order details in the input designer? Do I use dictionary as the object type? How do users map SKU and quantity from Zapier?


This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

3 replies

Userlevel 7
Badge +9

That looks like a “Line Item”: https://platform.zapier.com/docs/input-designer#how-to-add-a-line-item-group

Your action will expect the trigger (or previous action step) to return an object that has an array of objects that contain your order details, and Zapier will map that data into an array to send to your API.

 

Hi,

 

What is the difference between triggers and actions? I notice your doc says action. Do triggers only support flat level data?

 

Userlevel 7
Badge +9

Triggers define events that a user can use to start workflows (Zaps).

Actions define things that the user wants to do with data from triggers, or prior action results.

Line items are only relevant to actions. For a trigger, it’s always the first step in the process - there’s no way to map an array input from another step into it. Trigger inputs are really just about allowing the user to narrow down the events they are interested in using to start workflows.

If your trigger is returning an array, no problem, that’s not something that has to be configured in the input designer.