Hi All, I am integrating the NetSuite to Paypal an...
# suitescript
s
Hi All, I am integrating the NetSuite to Paypal and using the SOVOS sales tax software. We send the request to PayPal on before submit event but the script is not getting the tax amount in the total amount. If I click on on 'Preview tax' button then it works means tax added to the total amount. I used the executeMacro but didn't work. Please help
c
You most likely want to do this on afterSubmit as beforeSubmit the record creation could potentially fail still. I've also seen it where certain fields weren't available so you have to load the record to get the fields.
I'd try loading the record to get the fields as a test and move it to afterSubmit
s
Yes, we can get it on after submit but is there any way to get on before submit? Is it possible by using executeMacro?
c
You could look at the script order and make your script run after the sovos script runs and give that a try
beforeSubmit though is the incorrect place to do this. You want to make sure that whatever you are doing is saved first and THEN do an operation.
s
I have changed the script order but it didn't work