Use Cases
- Enable file uploads using the eXtendFiles
inline upload feature.
Summary
Configuration
eXtendFiles Setup Page
- Navigate to the eXtendFiles Setup page:
- Go to eXtendTech → eXtendFiles → Setup.
- Access Inline Links & Uploads:
- Go to the Inline Links & Uploads subtab.
- Select the FileUpload on Record Settings sublist.
- Configure record types:
- For each record type where the inline upload feature is to be enabled, configure an entry in the sublist using the details below:
Fields | Description |
Record Type | The
record type where the
inline upload feature
will
be
enabled. For a list of valid
native NetSuite
record types, please click on this link to refer to
the
NetSuite records browser. |
eXtendFiles Reference
FieldID | The custom field on the
eXtendFiles record which
refers to the record on which
you are configuring the inline
upload feature. This field
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. Ensure the Inline
HTML field is visible on the
custom forms for the target
record type. |
Folder Information Record Field
ID | Specify the field
value, based on
the eXtendFiles - Folder
Information custom record
type, which will be used for
selecting 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 | Enable this preference to show the
inline upload feature when the
record is in View Mode. By
default, inline uploads are only
enabled in Edit Mode. |
Upload iFrame Height (Pixel) | Adjust the height (in pixels) for
the height of the drag-and-drop
file upload area. |
Do Not Use JS Script For
Iframe | Required for
some specific record types
which do not allow client
scripts to load iframe
content. Examples include
Project/Job, Job Task,
Project Task, and
Timesheet. |
Upload Query Param Data Set (JSON
Stringified) | Specify any fieldIDs and
field values to be applied to
eXtendFiles records uploaded
via the inline upload feature
using JSON Stringified
format. 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
field IDs along with the
source
list and the label
you want to show in 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. |
Additional Custom
eXtendFiles
Attribute
details:
Example custom attribute configuration: [{ "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
eXtendFiles
Record FileUpload User
Event
- Go to Customization → Scripting → Scripts.
- Open the script file titled eXtendFiles Record FileUpload User Event in view mode.
- Deploy the script on each record type where the inline upload feature will be used.
- This script will need to be
deployed on each record type
where the inline upload
feature will be
used.
- Click Deploy Script and deploy it on each target record type with a Status of Released, for All Roles as the Audience.
eXtendFiles Client
Script
- Go to Customization → Scripting → Scripts.
- Open the script file titled eXtendFiles Client Script in view mode.
- Deploy the script on each record type where the inline upload feature will be used.
- This script will need to be
deployed on each record type
where the inline upload
feature will be
used.
- Click Deploy Script and deploy it on each target record type with a Status of Released, for All Roles as the Audience.
Additional Configuration
If using the "Attaching line item information on eXtendFiles record" feature on your transaction records, use the eXtendFiles Update Line Attach glom [B] workflow provided with the eXtendFiles bundle. This workflow updates line item information attached to the eXtendFiles record when the line items on your transaction record are updated.
This workflow is configured for Estimate (Quote), Sales Order, and Work Order transaction types. Add other transaction types if needed in a copy of the workflow.