#weretaco-multiple-invoiceitems

1 messages · Page 1 of 1 (latest)

pliant cedar
#

hello, one sec

quartz sleet
#

sure

#

right now it's really painful from a user pov to have to wait on the backend to do this

#

await service.CreateAsync(invoiceLineOptions, requestOptions: requestOptions);

#

especially when we can end up with 30 + lines

pliant cedar
#

yeah afaik there isn't a way to batch this

quartz sleet
#

any better way to do it? or just stuck waiting on the calls?

pliant cedar
#

yeah you have to do it serially

quartz sleet
#

wondering i can fire off multiples at once and just await all of them returning before proceeding to create the invoice

pliant cedar
#

I wouldn't recommend that since all your parallel calls will wait on each other due to holding locks (internally) on the Customer object etc

quartz sleet
#

ah ok

#

thanks