Anyone, have experience working with Avalara and a...
# suitescript
m
Anyone, have experience working with Avalara and an automation with Sales Order automatically being invoiced? We have a userevent script that does a record.transform of a sales order to an invoice when an item fulfillment is moved into a shipped status. This doesn't trigger Avalara to run and post a copy of the invoice back to Avalara's system. Any have any tips or advice on getting Avalara to trigger and do what it needs to?
e
I do not have experience with Avalara or access to an Avalara account to confirm, but my guess would be that Avalara's Invoice functionality runs in a User Event script deployed to the Invoice record, and I'll guess your automation is a User Event on the Sales Order and/or Item Fulfillment. The two User Events will not chain as actions in User Event do not trigger subsequent User Events. If that's all true, then whatever process you have which modifies the Invoice and needs to trigger Avalara cannot execute from a User Event. You'll have to move it to a different script type; the usual suspects are a Suitelet or Map/Reduce.
1
m
Thank you for the info, I'll look into sending the process through a suitelet
1
p
We had the same situation and moved the process to a map/reduce script.
and trigger the invoices through a schedule
m
👍