Feb 2, 2023 11:19 AM
Sales Rep entered a quote in the UI in this order:
When I pull the Line Items from the API for this Quote
It comes back;
Any idea why the order would be different?
Feb 2, 2023 3:08 PM
Hey @EBirdsall,
Most database order by their unique ID by default. Is there a specific reason for requiring them to be in the same order as the deal's line items?
Maybe we can help out with a solution for your use case here.
Hope that helps!
Feb 2, 2023 3:28 PM
We're using the API to send the line items to another software of ours for invoicing.
So it just looks a bit unprofessional when the Customer signs a Quote in Hubspot that has the items in one order, but then gets an Invoice from us with items in a different order.
To give a bit more background... certain line items on our quotes "go together"
The Quote will look like:
Product A
Product A - Add On
Product A - Implementation Fee
Product B
Product C
But then the API pulls the lines in a different order...
Product C
Product A - Add On
Product B
Product A - Implementation Fee
Product A
It just looks a bit all over the place.
I think I'll just take the Array of Line Items and sort them by name- but that still doesn't really solve the issue- just makes things look a bit cleaner.