This topic contains 3 replies, has 0 voices, and was last updated by marcusd 7 years, 2 months ago.
-
AuthorPosts
-
September 12, 2016 at 2:19 pm #23541
grantschenckHello,
We have an application where we want to open NetSuite forms (for example a new Company form) and pre-populate fields? We are using the NS Web Service to do various things including in some cases, creating new Company records and then opening the record in a form. However, in this case we don't want to create the record, we just want to open the form and set some of the fields.
I tried using the web standard query parms to pass some of the fields. So, for example, we have a company form accessed with this URL:
https://system.sandbox.netsuite.com/…ity/custjob.nl
So, in theory, appending a “query parameter” as shown here should load up the form and also set the Name field to “test” but in my testing it doesn’t.
https://system.sandbox.netsuite.com/…?lastname=test
So, what, if any, facilities does NetSuite provide for opening a form and pre-populating one or more fields on the form?
Thanks!
This is a cached copy. Click here to see the original post. -
September 12, 2016 at 4:12 pm #23542
david.smithIf the record you're trying to open doesn't already have data it will be blank. NetSuite doesn't have (that I know of) a way to do as you ask. However, it would be fairly simple to write a client script to do this. Just loop the parameters and if the param matches a field ID then set it.
-
September 13, 2016 at 5:44 am #23543
grantschenckGood news. In case anyone else is looking I discovered how to get it to work. NetSuite does support this but requires a "record." prefix on the field name. So, in my example above, this works:
https://system.sandbox.netsuite.com/….lastname=test
david.smith replied on 09/13/2016, 08:41 AM: Very cool.
-
August 23, 2017 at 10:43 am #23544
marcusdThanks for coming back and posting the solution. This has been valuable to me.
-
AuthorPosts
You must be logged in to reply to this topic.