Hi @MiM-Zap
Good question.
To help us have true context, please post screenshots with how the data is returned from Gravity Forms.
Hello,
I’ve attached 3 screen shots, I hope they are what you are looking for. One is of the actual gravity form (GF) and includes a sample “donation” item (personalized gold leaf...). There are 7 of these types of donation items that all work the same. The other two attachments are of my Line Itemizer Zap step where I concatenate the data from the 7 to create the line items. There are 3 components to each donation line item:
- the “Ornament Info”, includes GF fields and some text labels
- the “Subtotals”, fields pulled directly from GF
- the “Appeal Hard Coded”, all custom text
Since I do not know what donation items have been selected, I automatically pull them all into Bloomerang where 7 different payment “splits” are created. I would like to eliminate all splits where the subtotal is 0.
My original idea was to test the value of each subtotal and create text “snippets” to eventually create line items. If subtotal is 0, snippet would be “” (essentially blank). If not 0, something like “125, ”. I would concatenate all these snippets to create my line items.
What do you think? Other options?? Thank you so much!
@MiM-Zap
With the way the data is coming thru from Gravity Forms, it would be best to handle this logic with 1 Code step, altho that is an advanced approach.
I’ll do some “learning”. I used to be a programmer way back when so maybe it won’t be so bad?
Hi there, @MiM-Zap! 👋
Just wanted to pop by and mention that our Code by Zapier actions have a Generate with AI (beta) feature that you could use to help you generate the necessary code:

As it’s a beta feature, it may not be 100% perfect code but hopefully it will give you enough of a starting point at least. You can learn more about using that feature here: Generate a Code step using AI (Beta)
Hope that helps. Would love to know how you get on with this so please do keep us updated with your progress! 😁