Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Creating an invoice programmatically with SOAP
I'm trying to create an invoice programatically using the web services. I have time entry data for an employee working for a customer, so I want to enter that time then create an invoice. I can create the time entries. I can go into the UI and approve them after I create them programatically. But I get an invalid reference error when I try to save an invoice that refers to those time entries.
In studying the object model, I see that:
Invoice has a "timeList" field that accepts an InvoiceTimeList object.
InvoiceTimeList has a "time" field that accepts an array of InvoiceTime objects.