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.
Programmatically call/execute "submit" button on Suitelet
I'm needing to be able to generate GUID's in NetSuite programmatically. It seems like the only ways to generate a GUID is with either the addCredentialField() form field or the addSecretKeyField() form field from the N/ui/serverWidget module. Since I need to have a GUID created everytime a custom record is created, I'm trying to figure out how to call a Suitelet from server script (say a user event script or map/reduce script), pass a parameter to it, set the addSecretKey field on the form to be defaulted as the parameter value, and then submit the form programmatically to generate
0