Hi everyone,
I'm facing an issue with SuiteTax and Vendor Bills created through a RESTlet integration.
The Scenario:
- We have SuiteTax enabled.
- When a Vendor Bill is created manually via the UI, the Tax Engine works perfectly, applying tax rules and calculating taxes automatically upon saving.
- When the same Vendor Bill is created via a RESTlet (developed by a third party), the tax engine does not trigger, and the
taxdetails sublist remains empty.
What we've tried:
- We attempted to expand the deployment of the native SuiteTax Bundle scripts (specifically
ste_ue_transaction_ui.js) to include the RESTlet context. - However, this resulted in the following error:
SSS_INVALID_FORM_ELEMENT_NAME: You have entered an invalid form element name. It must be prefixed with "custpage"... - This confirms the native script relies on
serverWidget and UI components that are not available in a server-side/API context.
The Constraint:
- The RESTlet code is locked (provided by another partner), so we cannot modify the
record.create or record.load parameters (like forcing isDynamic: true).
The Question:Is there a known way to "wake up" the SuiteTax Engine in an integration context without triggering UI-related errors?Specifically:
- Is there a specific field (like
nexus, taxregime, or taxregistrationnumber) that must be explicitly sent via the integration for the engine to recognize the transaction? - Would a custom User Event script in
beforeSubmit (running in RESTLET context) be able to trigger the calculation without colliding with the Bundle's UI scripts?
Any insights or workarounds to ensure SuiteTax rules are applied to integrated transactions would be greatly appreciated.