Add line item group field to actions
Input fields in Zapier add one item each time the Zap runs. But, if you want users to be able to add multiple items in a single Zap run, then this can be achieved by using a line item group. This group takes line items, which are comma-separated values, and adds each instance of the values to the app in a single Zap run.
Tip: Learn more about line items from Zapier’s guide and help documentation.
Line items can be challenging for users to work with as a concept, so make sure to consider what a user would be inputting and do not add line item group fields unless there is a clear use case for them.
Before adding a line item group
Before adding a line item group to an action:
- You should have already added an action where this line item group would be added.
- Your app’s API should be able to accept and work with line item values.
Add a line item group
To add line item group to an action:
- Log into the Platform UI.
- Select your integration.
- In the Build section in the left sidebar, click the name of your action.
- Click the Input Designer tab
- Click **Add
dropdown menu and select Line Item Group. 6. In the Line Item Group Label field, add a name for the Line Item Group. This should be something users would recognize as being a set of values where each one would be added individually. 7. In the Line Item Group Key add a key for the Line Item Group. This will let Zapier identify this group internally. 8. Click the Add Line Item button. 9. Add in the relevant fields as you would for a input field. Each field that you add here will be received as line item values. Note the Allows Multiples and Alters Dynamic Field options will not appear as those options cannot be used in line item fields as they are mutually exclusive. 10. After adding all the line item fields, click Save.
Your new Line Item groups will show up in the Zap editor as a separate block with the different line item input fields within:
Users will need to map line item values from earlier steps in their Zap into the fields within the line item group. They would be sent to your API as an array of individual objects. Users cannot input comma separated values into a line item field, they need to be provided from the trigger or a prior action in line item format for them to be sent this way.
Need help? Tell us about your problem and we’ll connect you with the right resource or contact support.