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 |
|
Since |
2015.2 |
Parameters
The options
parameter is a JavaScript object.
Parameter |
Type |
Required / Optional |
Description |
Since |
---|---|---|---|---|
|
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 |
|
Map |
optional |
The Map object containing name/value pairs to describe the query. |
2015.1 |
Syntax
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.