N/commerce/recordView Module

Note:

The content in this help topic pertains to SuiteScript 2.0.

Use the N/commerce/recordView module to provide fast, cached, and public access to the item fields and website settings.

N/commerce/recordView Module Members

Member Type

Name

Return Type / Value Type

Supported Script Types

Description

Method

recordView.viewItems(options)

Object | array

Returns one or more Items with requested items fields as an object with field:value pairs.

See the Returns section.

Client and server scripts

Retrieves one or more Items with requested items fields from an Item Record.

recordView.viewWebsite(options)

Object

Returns website and website fields as an object with field:value pairs.

See the Returns section.

Client and server scripts

Retrieves the website details with requested website fields.

Related Topics

N/commerce Modules
SuiteScript 2.x Modules
SuiteScript 2.x

General Notices