NetSuite v2 (Beta) Manage Files and Folders activity in Jitterbit Studio
Introduction
A NetSuite v2 (Beta) Manage Files and Folders activity, using its NetSuite v2 (Beta) connection, manages files and folders in the NetSuite File Cabinet.
This activity is intended to be used as a source or target in an operation. Whether the activity can be used as a source or a target depends on the selected operation: operations that retrieve a file or folder's information or content behave as a source, while operations that create, update, or delete a file or folder behave as a target.
Note
This connector is currently in beta. To provide feedback, contact the Jitterbit Product Team.
Create a NetSuite v2 (Beta) Manage Files and Folders activity
An instance of a NetSuite v2 (Beta) Manage Files and Folders activity is created from a NetSuite v2 (Beta) connection using its Manage Files and Folders activity type.
To create an instance of an activity, drag the activity type to the design canvas or copy the activity type and paste it on the design canvas. For details, see Creating an activity instance in Component reuse.
An existing NetSuite v2 (Beta) Manage Files and Folders activity can be edited from these locations:
- The design canvas (see Component actions menu in Design canvas).
- The project pane's Components tab (see Component actions menu in Project pane Components tab).
Configure a NetSuite v2 (Beta) Manage Files and Folders activity
Follow these steps to configure a NetSuite v2 (Beta) Manage Files and Folders activity:
-
Step 1: Enter a name and select a resource type
Provide a name for the activity, select a resource type, and specify optional settings. -
Step 2: Select an operation
Select an operation to perform for the selected resource type. -
Step 3: Review the data schemas
Any request or response schemas are displayed.
Step 1: Enter a name and select a resource type
In this step, provide a name for the activity, select a resource type, and specify optional settings. Each user interface element of this step is described below.
Tip
Fields with a variable icon support using global variables, project variables, and Jitterbit variables. Begin either by typing an open square bracket [ into the field or by clicking the variable icon to display a menu listing existing variables to choose from.
-
Endpoint menu: If you have multiple endpoints of the same connector type configured, a menu at the top of the screen displays the current endpoint name. Click the menu to switch to a different endpoint. For more information, see Change the assigned endpoint in Configuration screens.
- Edit endpoint: Appears when you hover over the current endpoint name. Click to edit the currently selected endpoint's connection configuration.
-
Name: Enter a name to identify the activity. The name must be unique for each NetSuite v2 (Beta) Manage Files and Folders activity and must not contain forward slashes
/or colons:. -
Select a Resource Type: Browse and select the NetSuite File Cabinet resource type to manage, File or Folder.
-
Selected resource type: After a resource type is selected, it is listed here.
-
Refresh: Click the refresh icon or the word Refresh to reload resource types from the NetSuite v2 (Beta) endpoint. This action refreshes all metadata used to build the table of resource types displayed in the configuration.
-
Selecting a resource type: Within the table, click anywhere on a row to select a resource type. Only one resource type can be selected. The information available for each resource type is fetched from NetSuite:
- Name: The name of the resource type.
Tip
If the table does not populate with available resource types, the NetSuite v2 (Beta) connection may not be successful. Ensure you are connected by reopening the connection and retesting the credentials. If the connection is successful, the role used to connect may be missing the Documents and Files permission required to access the NetSuite File Cabinet; see Grant File Cabinet access.
-
-
Optional settings: Click to expand additional optional settings:
- Continue on error: Select to continue the activity execution if an error is encountered for a dataset in a batch request. If any errors are encountered, they are written to the operation log.
-
Save & Exit: If enabled, click to save the configuration for this step and close the activity configuration.
-
Next: Click to temporarily store the configuration for this step and continue to the next step. The configuration will not be saved until you click the Finished button on the last step.
-
Discard changes: After making changes, click to close the configuration without saving changes made to any step. A message asks you to confirm that you want to discard changes.
Step 2: Select an operation
In this step, select an operation to perform for the selected resource type. Each user interface element of this step is described below.
-
Select an Operation: Browse and select which operation to perform for the selected resource type. Operations are fetched live from NetSuite and span retrieving, creating, updating, and deleting both a resource's information and its content. Each resource type also lists an upsert operation that creates the resource if it does not exist or updates it if it does: Create/update file by externalId (idempotent; accepts JSON or multipart) for the File resource type and Create/update folder by externalId (idempotent) for the Folder resource type. These operations identify the resource by its external ID, which you enter prefixed with
eid:in theidpath parameter. Operations that act on a single file or folder require its identifier in theparams>path>idfield of the request schema, because NetSuite uses this value to build the request URL. The request fails without it. To check whether an operation requires this field, review the request schema in Step 3. For more information about how this field differs from identifier fields in the request body, see Single record and multiple records upserts.-
Selected operation: After an operation is selected, it is listed here.
-
Refresh: Click the refresh icon or the word Refresh to reload operations from the NetSuite v2 (Beta) endpoint. This may be useful if operations have changed for the selected resource type. This action refreshes all metadata used to build the table of operations displayed in the configuration.
-
Selecting an operation: Within the table, click anywhere on a row to select an operation. Only one operation can be selected. The information available for each operation is fetched from NetSuite:
- Name: The name of the operation.
Tip
If the table does not populate with available operations, the NetSuite v2 (Beta) connection may not be successful. Ensure you are connected by reopening the connection and retesting the credentials.
-
-
Back: Click to temporarily store the configuration for this step and return to the previous step.
-
Next: Click to temporarily store the configuration for this step and continue to the next step. The configuration will not be saved until you click the Finished button on the last step.
-
Discard changes: After making changes, click to close the configuration without saving changes made to any step. A message asks you to confirm that you want to discard changes.
Step 3: Review the data schemas
Any request or response schemas are displayed. Each user interface element of this step is described below.
-
Data schema: These data schemas are inherited by adjacent transformations and are displayed again during transformation mapping.
Note
Data supplied in a transformation takes precedence over the activity configuration.
The request and response schemas are generated from NetSuite for the selected resource type and operation, so they differ between the File and Folder resource types. The request schema groups its parameters under
paramsaspath,query, andheader. Parameters left empty are not sent to NetSuite.The
idpath parameter is a string that identifies the file or folder. It is required for every operation that acts on a single file or folder. For the Create/update file by externalId and Create/update folder by externalId operations, enter the resource's external ID prefixed witheid:(for example,eid:external1234).The two resource types differ as follows:
-
File: Operations that create, update, or upsert a file add a
filefield to the request schema, next toparams, for the file's content. Content operations (downloading, uploading, or replacing only a file's content) are available for files only.Parameter Group Type Required Description fileBase64ContentfileString Yes, for Create a new file The file's content, base64-encoded. For update and upsert operations, leave this empty to change only the file's other fields, which the activity sends to NetSuite as JSON. contentTypefileString No The file's content type. If empty, application/octet-streamis used.fileNamefileString No The name of the uploaded file. If empty, fileis used.When
fileBase64Contentis provided, the activity sends the request body fields and the file content to NetSuite together as a multipart request.For the operations that upload or replace only a file's content, the request schema has just the
idpath parameter and thesefilefields:Parameter Group Type Required Description fileBase64ContentfileString Yes The file's content, base64-encoded. contentTypefileString No The file's content type. If empty, application/octet-streamis used. -
Folder: The request schema has no
filefield and no content operations are available. A folder is described entirely by the body fields that NetSuite defines for the selected operation, such as when creating or updating a folder.
For an operation that retrieves a file's content, the response schema instead returns these fixed fields:
isSuccess: Whether the call succeeded.id: The file's ID.base64Content: The file's content, base64-encoded.contentType: The file's content type.fileName: The file's name.errors: Any errors returned by the call, withcauseanddetailedMessagefields.
Note
If you are using NetSuite's
externalIdfield to manage your files and folders, theidfield must contain the same value asexternalId.The NetSuite v2 (Beta) connector uses NetSuite's SuiteTalk REST Web Services. Refer to the API documentation for additional information.
-
-
Refresh: Click the refresh icon or the word Refresh to regenerate schemas from the NetSuite v2 (Beta) endpoint. This action also regenerates a schema in other locations throughout the project where the same schema is referenced, such as in an adjacent transformation.
-
Back: Click to temporarily store the configuration for this step and return to the previous step.
-
Finished: Click to save the configuration for all steps and close the activity configuration.
-
Discard changes: After making changes, click to close the configuration without saving changes made to any step. A message asks you to confirm that you want to discard changes.
Next steps
After configuring a NetSuite v2 (Beta) Manage Files and Folders activity, complete the configuration of the operation by adding and configuring other activities, transformations, or scripts as operation steps. You can also configure the operation settings, which include the ability to chain operations together that are in the same or different workflows.
Menu actions for an activity are accessible from the project pane and the design canvas. For details, see Activity actions menu in Connector basics.
Whether a NetSuite v2 (Beta) Manage Files and Folders activity is used as a source or a target depends on the selected operation; see which operation patterns apply to a source or a target in Operation validity.
To use the activity with scripting functions, write the data to a temporary location and then use that temporary location in the scripting function.
When ready, deploy and run the operation and validate behavior by checking the operation logs.