Hi,
I’m looking for ideas on how to accomplish the following:
1. I have a Salesforce custom object called “Reservation”. The Reservation object is related to the Lead object. The Reservation object has a Date field and Rate field. A Lead record will have many (typically 60-120) Reservation records, for example May 15, 2024 - July 10th, 2024.
- I want to use Zapier to create a Quickbooks invoice for each month in the range of reservation records. Each invoice month would have a line item for each date of reservation record. In the above example, an invoice for May would be created with a line item from May 15th - May 31st. Then a new invoice would be created for June for the entire month. The last invoice would be created for July but line items would only be for July 1st - July 9th.
Currently, my Zap can get all reservation records from the lead, create an invoice in quickbooks with line item pricing for every date retrieved from the reservation records.
Any guidance on how I could achieve the above outcome? Some ideas I had were loop function and potentially needing to use Javascript code to work with the dates.