Hi, I need help creating Quickbooks Online Invoice.
I intend to push the data from my Airtable base to create invoice on QBO.
The Airtable data has information on the client, invoice created/due date, shipping amount, discount, and line items (along with their event date, rate, and amount).
Line Items data is in array format. However, the other data (client, invoice created/due date, shipping amount, discount) is in text. The text data is doable. However, I need help processing the array items into the required format.
This is a snip of my scenario that works creating QBO invoices with variable number of line items. Iām getting the data from SugarCRM, but the principal should be the same.
I first use an Array module to get all of the records that need to be on the invoice.
My invoices have 4 products, but there could be several of each product. Iāve created a data store that collects the product information from SugarCRM (in my case). In my case each product is added to the DB separately, so there are 4 āAdd/replace a recordā modules. Once all of the products are added I use a āArray Aggregatorā module to count how many records there are in the Array module.
I then get the records from the DB and send them to an āarray aggregatorā
the next module is another Array module and Array aggregator pair.
I then get the customer from QBO and set some variables I need for my invoices.
I then create the invoice.
Itās important to delete all the records in the DB at the start and the end and also at any error points. If you donāt start with an empty DB your invoices will be wrong.
Thanks Howard, What does the scenario data start as? (i.e. is it JASON, text, or something else?) Is there a way you can share the scenario or show me how that data turns into the array? I understand you add many fields using switches on top of the it. But Iām trying my best to do something similar to what you have going on with the array converting to line items. So far your scenario is the closest thing to what Iām trying to achieve.