url.resolveTaskLink(options)

Method Description

Returns the internal URL to a NetSuite tasklink.

Returns

The URL as a string

Supported Script Types

Server and client scripts

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

Governance

None

Module

N/url Module

Since

2015.2

Parameters
Note:

The options parameter is a JavaScript object.

Parameter

Type

Required / Optional

Description

Since

options.id

string

required

The task ID for the tasklink.

Note:

Each page in NetSuite has a unique task ID associated with it for a specific record type. For more information about finding the task ID, see Task IDs.

2015.1

options.params

Map

optional

The Map object containing name/value pairs to describe the query.

2015.1

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/url Module Script Samples.

The following code sample returns the mapping url to create a mass update for employees of a company. The optional parameters are used to provide more detail to the path of this url.

          //Add additional code 
...
var output = url.resolveTaskLink({
    id: 'EDIT_BULKOP',
    params: {
        searchtype: 'Employee',
        opcode: 'GENERAL',
        _entryformparams: null
        
    }
});
...
//Add additional code 

        

The returned output expressed as a string is: /app/common/bulk/bulkop.nl?compid=TSTDRV2484080&searchtype=Employee&opcode=GENERAL&_entryformparams=.

The compid is relative to your NetSuite account.

Related Topics

General Notices