listobjects

Lists the SDF custom objects in your NetSuite account.

Syntax

          listobjects [-authid AuthId]
    [-p FolderOrZipFile]
    [-appid QualifiedAppID]
    [-scriptid ScriptID]
    [-type CustomObjectType1 [CustomObjectType2] [...]] 

        

Options

Option

Required / Optional

Description

-authid

Required

References the custom alias you give to a specific account-role combination.

-p

Required when a default project has not been specified by the project command or when you want to specify a project other than the default. For more information, see project.

References the folder or ZIP file with your SuiteCloud project.

-appid

Optional

References the application ID of the SDF SuiteApp.

The application ID is a fully qualified name like <publisherid>.<projectid>. For example, com.netsuite.mysuiteapp or org.mycompany.helloworld are valid app IDs.

If you specify an application ID, only SDF custom objects linked to that app ID are listed. Otherwise, only SDF custom objects not linked to an app ID are listed.

For information about the SuiteApp application ID, see SuiteApp Application ID.

-scriptid

Optional

Lists the SDF custom objects with script IDs that match or contain the string you specify.

If you use this with the -type option, the list is also filtered by the -type criteria.

If you don't use -scriptid or -type, all SDF custom objects are listed.

-type

Optional

Lists the SDF custom objects that are associated with the specified custom NetSuite types.

If you use this with the -scriptid option, the list is also filtered by the -scriptid criteria.

If you don’t use -scriptid or -type, all SDF custom objects are listed.

-h or -help

Optional

Prints the help for this command.

Example

Here's a command that lists the SDF custom objects in your NetSuite account:

sdfcli listobjects -authid AuthId -p c:/project/ -appid org.mycompany.helloworldapp -scriptid 9 -type customlist role savedsearch

When you run the command, it produces an output that is similar to the following:

          SuiteCloud Development Framework CLI (com.netsuite.ide.core_2021.1.0)
customlist:customlist19
customlist:customlist9
role:customrole1009
savedsearch:customsearch39
savedsearch:customsearch49
savedsearch:customsearch9 

        

Related Topics

General Notices