NetSuite Get Server Time

In this article

Overview

You can use this Snap to get the NetSuite server time in GMT, regardless of the user's time zone.

netsuite-gst-overview.png

Snap Type

The NetSuite Get Server Time Snap is a Read-type Snap.

Prerequisites

  • Valid token ID, token secret, and account ID.

  • A valid account with the required permissions.

Support for Ultra Pipelines

Works in Ultra Pipelines. 

Limitations and Known Issues

None.

Snap Views

Type

Format

Number of Views

Examples of Upstream and Downstream Snaps

Description

Type

Format

Number of Views

Examples of Upstream and Downstream Snaps

Description

Input 

Document

 

  • Min: 0

  • Max: 1

  • Mapper

  • Copy

Does not require any specific input.

Output

Document

 

  • Min: 1

  • Max: 1

  • Union

  • Mapper

  • Copy

Returns NetSuite server time using the getServerTime function.

Error

Error handling is a generic way to handle errors without losing data or failing the Snap execution. You can handle the errors that the Snap might encounter when running the pipeline by choosing one of the following options from the When errors occur list under the Views tab:

  • Stop Pipeline Execution: Stops the current pipeline execution if the Snap encounters an error.

  • Discard Error Data and Continue: Ignores the error, discards that record, and continues with the remaining records.

  • Route Error Data to Error View: Routes the error data to an error view without stopping the Snap execution.

Learn more about Error handling in Pipelines.

Snap Settings

  • Asterisk ( * ): Indicates a mandatory field.

  • Suggestion icon (): Indicates a list that is dynamically populated based on the configuration.

  • Expression icon ( ): Indicates the value is an expression (if enabled) or a static value (if disabled). Learn more about Using Expressions in SnapLogic.

  • Add icon ( ): Indicates that you can add fields in the fieldset.

  • Remove icon ( ): Indicates that you can remove fields from the fieldset.

  • Upload icon ( ): Indicates that you can upload files.

Field Name

Field Type

Description

Field Name

Field Type

Description

Label*

 

Default Value: NetSuite Get Server Time
Example: Get Server Time Operation

String

Specify the name for the Snap. You can modify this to be more specific, especially if you have more than one of the same Snap in your pipeline.

 

Request timeout (seconds)*

 

Default Value: 0
Example: 5

Integer

Specify the timeout for the web service call in seconds. '0' indicates no timeout.

Maximum attempts*

 

Default Value: 3
Example: 5

Integer

Specify the maximum number of requests to attempt when a request fails.

Retry interval (seconds)*

 

Default Value: 2
Example: 5

Integer

Specify the number of seconds to wait before you retry a failed request.

Snap execution

Default Value: 
Example: Validate & Execute

Dropdown list

Select one of the following three modes in which the Snap executes:

  • Validate & Execute: Performs limited execution of the Snap and generates a data preview during pipeline validation. Subsequently, performs full execution of the Snap (unlimited records) during pipeline runtime.

  • Execute only: Performs full execution of the Snap during pipeline execution without generating preview data.

  • Disabled: Disables the Snap and all Snaps that are downstream from it.

Troubleshooting

Error

Reason

Resolution

Error

Reason

Resolution

Invalid login attempt

The specified credentials are incorrect.

Provide the correct credentials and retry.

Examples

Get NetSuite Server Time in GMT

The following example pipeline demonstrates how to get the NetSuite Server time in GMT, irrespective of the user’s time zone.

netsuite-gst-example.png

Configure the NetSuite Get Server Time Snap with the default values.

On validation, the Snap displays the exact NetSuite Server time in GMT in the output preview.

 

 

 

Â