Version: eXtendFiles 1.6.4 and
above
Audience: Administrator
Use Cases
- Enable file uploads using the drag and drop feature.
Summary
The eXtendFiles Inline
Upload feature allows you to
upload files directly from your NetSuite records using a drag and drop area on the record's form. Additionally, the inline upload
feature also facilitates requiring attributes
that you want to set on the uploaded
file.
Without attributes:
![Image Placeholder](/desk/file/11086464/2020-01-07_10-08-57.gif)
With attributes:
![Image Placeholder](/desk/file/11086520/2020-01-07_10-30-18.gif)
Note: The inline upload feature is available in View mode and Edit mode for existing records. Create mode is not supported at this
time.
The following sections walk through the
configuration of the eXtendFiles Inline
Upload feature.
Setup Configuration
The eXtendFiles
Setup needs to be
configured to enable this
feature.
- Go to eXtendTech → eXtendFiles → Setup.
- Go to the Inline Links & Uploads subtab and select the FileUpload on Record Settings sublist.
- Configure the record types where the inline upload feature should be enabled.
Fields | Description |
Record Type | The record type where the inline upload feature will be
enabled. |
eXtendFiles Reference
FieldID | The custom field on the
eXtendFiles record which refers to the record on which you are
configuring inline upload
feature. This field is a
custom field on the eXtendFile record and it stores the record reference to
which the eXtendFile is being attached. |
Inline Field on Record | An Inline
HTML body field present on the record type being configured which will be used for displaying the inline upload drag and drop interface. You'll need to make the Inline HTML field visible on the custom forms for the target record type on which you want to use the Inline Upload feature. |
Folder Information Record Field
ID | Specify
the field value, based
on
the eXtendFiles
- Folder
Information custom
record type, which
will be used
for the
selection of
folders when
uploading
files using the public upload feature. This
field is
applicable
only for
Amazon S3,
Oracle Object
Cloud, and
Microsoft
Azure. eXtendFiles includes the following field for
native
NetSuite
transaction
types: Note: the
field must be of the
List/Record field type and the
sourcing record should be eXtendFiles - Folder
information. |
Enable In View Mode | To show the inline upload feature
when the record is in View Mode,
enable this field. By default, inline uploads are only enabled in Edit Mode. |
Upload iFrame Height (Pixel) | Adjust the height (in pixels) for
the drag and drop file upload
area. |
Do Not Use JS Script For Iframe | This checkbox is required for some specific record types which do not allow client scripts to load iframe content. Record types which need this preference enabled for showing inline upload section are: Project/Job Job Task Project Task Timesheet |
Upload Query Param Data Set (JSON
Stringified) | Using JSON
Stringified format,
specify any fieldIDs and field
values which you would like
applied to eXtendFiles records
uploaded via the inline upload
feature. Example
code for setting the File Type
(Custom) field: {"custrecord_extfile_type_custlist":5} |
Custom eXtendFiles Attribute | Using JSON
Stringified format,
specify any eXtendFiles Record
fieldIDs along with the source
list and the label
you want to show on the inline file upload section. This
feature allows the selection
of eXtendFiles attributes on
your record and
which will be applied to the
uploaded
file. Format for
specifying the
fields: [{
"fieldId": "eXtendFiles Field ID",
// required only in case of select and multiselect
"source": "Source List/Record's ID",
// label which will be shown on the file upload section
"label": "Label name",
// determines if this field is required for upload or not. If true then file upload section will be disabled unless any value is specified under this field.
"required": true,
// determines to use native NetSuite styling or custom styling to show fields
"native": false,
// data type of the field used - presently supports text, select & multi-select
"type": "select"
}] Example
code to configure the File Type
(Custom) drop down
field as required to prompt the user: [{"fieldId":"custrecord_extfile_type_custlist", "source": "customlist_extend_s3fr_record_type", "label": "File Type","native":false,"required": true}] Example code to configure the File Type
(Custom) drop down
field as required to prompt the user AND filter the list of available file type options by internal ID: [{"fieldId":"custrecord_extfile_type_custlist", "source": "customlist_extend_s3fr_record_type", "label": "File Type","required": true, "native": false,"filterExpression": ["internalid","anyof",[1,2,3,4]] }] See Working with Custom eXtendFiles Attributes for more details. |
Notes:
- When copying and pasting field IDs in NetSuite, be careful to avoid any leading or trailing whitespace that may be unintentionally inserted when specifying field values.
- For a list of valid native NetSuite record types, please refer to the NetSuite record browser: https://system.netsuite.com/help/helpcenter/en_US/srbrowser/Browser2023_2/script/record/account.html
Additional Custom eXtendFiles
Attribute details:
Example: [{ "fieldId" : "custrecord_extfile_type_custlist", "source" : "customlist_extend_s3fr_recordtype", "label" : "File Type", "required" : true, "native" : false, "type" : "select", "filterExpression" : ["internalid","anyof",[139]] }] |
Script Deployments
For the inline upload feature to operate, script deployments need to be
created so that the necessary scripts
are available and
running.
- eXtendFiles
Record FileUpload User
Event
- Navigate to Customization → Scripting → Scripts.
- Find the script file titled eXtendFiles
Record FileUpload User
Event and open it in view mode.
- This script will need to be
deployed on each record type
where the inline upload
feature will be
used.
- Click the Deploy Script button and deploy the script on the Applies To record type, with a Status of Released, and for All Roles as the Audience. Repeat these steps for each inline upload-enabled record.
- eXtendFiles Client
Script
- Navigate
to Customization → Scripting → Scripts.
- Find the script file titled eXtendFiles Client Script and open it in view mode.
- This script will need to be
deployed on each record type
where the inline upload feature will be
used.
- Click the Deploy Script button and deploy the script on the Applies To record type, with a Status of Released, and All Roles as the Audience. Repeat these steps for each inline upload-enabled record.
Additional Configuration
If you are using the "Attaching
line
item information on eXtendFiles record" feature on
your transaction records, you will need
to use the eXtendFiles
Update Line Attach
glom
[B] workflow
provided with the
eXtendFiles
bundle.
The purpose
of this Workflow is to update
the line item information
attached to the eXtendFiles
record when the line
items on your transaction
record are
updated.
This workflow is pre-configured on
the transaction types:
Estimate, Sales Order, and Work Order. If you are using
this feature on other
transaction types, you
will need to add those
transaction types in the workflow.
It is
recommended to make a copy of
the bundled workflow and
mark the bundled workflow in the non-initiating
or suspended
state.
Next Steps
You may want to configure line
item level drag and
drop.