Search.title

Note:

The content in this help topic pertains to SuiteScript 2.0.

Property Description

Title for a saved search. Use this property to set the title for a search before you save it for the first time.

You can also set the title for a search when you create it with search.create(options).

The Search.title property is required to save a search with Search.save().

Type

string

Supported Script Types

Client and server scripts

For more information, see SuiteScript 2.x Script Types.

Module

N/search Module

Since

2015.2

Syntax
Important:

The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/search Module Script Samples.

          //Add additional code 
...
function createSearch() {
    var mySalesOrderSearch = search.create({
        type: search.Type.SALES_ORDER,
        title: 'My SalesOrder Search',
        id: 'customsearch_my_so_search',
     });
     mySalesOrderSearch.save();
...
//Add additional code 

        

Related Topics

search.Search
N/search Module
SuiteScript 2.x Modules
SuiteScript 2.x

General Notices