This topic contains 2 replies, has 0 voices, and was last updated by grantschenck 8 years, 2 months ago.

  • Author
    Posts
  • #2583

    grantschenck

    Hello,

    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.

  • #2584

    david.smith

    If 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.

  • #2585

    grantschenck

    Good 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.

You must be logged in to reply to this topic.