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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
How to enter a rate as a percentage (e.g. discount) with SuiteScript
Hi all,
I have searched the internet and found a few suggestions for this, none of which are working for me, so maybe someone here can help.
If I try setCurrentSublistText(), it accepts '(100%)' as an entry in the field, I get "Please enter a value for amount." because the Amount field doesn't update, even with forceSyncSourcing set to true.
If I try setCurrentSublistValue(), I get "You have entered an Invalid Field Value (100%) for the following field: rate" or "You have entered an Invalid Field Value -100% for the following field: rate", depending on what I try.
There's got to be a way that both accepts the value and updates related fields, hasn't there?
Tagged:
0