Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
https.post.promise “.then” not called
Hello – I hope someone could provide some advise or feedback.
Summary: I am trying to create a custom button (UE script) on Sales Order record. That custom button executes a function from a client side script. The function (snippet below) uses https.post.promise. It calls a Suitelet that I will be using to process some backend logic.
Problem: The “.then” portion is not called/executed.
Notes:
- Everything is working expect for .then part. The suitelet is called by the post
- When I tried to call the same function on pageInit, the .then part is executing
- I have used chrome’s javascript profiler as well and tried to compare both executions (by clicking button and pageInit). I can see that
1