Version: eXtendFiles 1.9 and
above
Overview
Configurable Files Flow lets you define custom
parent-child relationships so eXtendFiles can
automatically propagate file references
between record types. Use this when you need
file flow for record types outside the
built-in Linked
Transaction File
Flow in eXtendFiles
relationships.
In your configuration, you define the parent
and
child record types, the eXtendFiles reference
fields used to link files to those records,
the parent reference field on the child
record, an optional field map, and whether
files should also flow from parent to
child.
Files Flow runs in two ways:
- Real time: When an eXtendFiles
record is created, or when one of its
Files Flow reference fields changes, the
released Files Flow workflow links the
file to related records that already
exist.
- Scheduled: An optional scheduled
copy of the workflow links files whose
related records were created later, such
as an Item Fulfillment created after a
file was uploaded to the Sales
Order.

Prerequisites
- The parent and child record types already
have eXtendFiles reference fields. If a
record type isn't set up yet, see Add
eXtendFiles to a New Record
Type.
- A released copy of the eXtendFiles
Record Ref Files Flow[B] workflow
exists. See Release the Files
Flow workflow.
- Optional: A scheduled copy of the workflow
exists, if files are often uploaded before
the related records are created. See Set up the
scheduled Files Flow
workflow.
Release the Files Flow workflow
Files Flow needs a released copy of the
built-in eXtendFiles Record Ref Files
Flow[B] workflow (ID customworkflow_extend_files_rec_ref_2).
You only need to do this once. If your account
already has a released copy, skip to Configuration.
eXtendFiles installs the [B] (Bundle) workflow,
but it doesn't create a released copy. Until
you release a [L] (Live) copy, your
Files Flow
configuration has no effect.
- Go to Customization → Workflow →
Workflows.
- Look for the eXtendFiles Record
Ref Files
Flow[B] workflow, click on that
workflow name to open the Workflow
Manager.
- In the Workflow Manager, click More on the right side of the
page, then select Make
Copy.
- After a copy is made, edit that copy's
workflow properties.
Change the Name to eXtendFiles
Record Ref Files Flow[L] so you
can designate it as Live to tell it apart
from the base
workflow included during bundle
installation.
- Set Release Status to Released.
- Click Save.
Configuration
Go to eXtendTech → eXtendFiles → eXtendFiles Configuration.
Select Files Flow from the menu.

In the configuration table, click a row and select Add to create a new entry.
Complete the fields for the relationship:
Child record-type: Select the child record type involved in the files flow.
Parent record-type: Select the parent record type involved in the files flow.
Child reference field on eXtendFiles: Select the list/reference field on the eXtendFiles record that links files to the child record.
Parent reference field on eXtendFiles: Select the list/reference field on the eXtendFiles record that links files to the parent record.
Parent record reference field on child: Select the field on the child record that references the parent record.
For example, if the child record is an Estimate and the parent record is an Opportunity, select the field on the Estimate that lists the related Opportunity.
Enable Parent to Child files flow?: Optionally enable file reference synchronization from the parent record to the child record.
Field Map: Map reference fields on the parent and child record types to eXtendFiles reference fields.
For example, on an Opportunity you may map the customer field so the related customer is written to the customer reference field on the eXtendFiles record when files flow.
Click Save to save the configuration.
How configurable files flow works
When files flow in real time
The released workflow runs when:
- An eXtendFiles record is created
- A Files Flow reference field on an
eXtendFiles record changes, such as when
you add a Sales Order reference by
hand
Editing other fields, such as the file type,
doesn't run Files Flow.
For each row in your configuration, the
workflow:
- Links a file on a child record to the
child's parent record. Child-to-parent
flow is always on.
- Links a file on a parent record to its
child record, if Enable Parent to Child
files flow? is on and the child
record already exists.
- Fills in the eXtendFiles reference fields
set in Field Map.
Files Flow only fills in empty reference
fields. It doesn't replace a reference that's
already set.
Files only flow to records that exist when the
workflow runs. If a related record is created
later, the file doesn't flow to it until the
scheduled workflow runs.
Note: Files Flow only links at the
record (body) level.
Chaining relationships
When you configure more than one row, Files
Flow runs the rows together, so a file can
flow through several records at once. For
example, you set up one row with Opportunity as the parent of Estimate, and another row with Estimate as the parent of Sales
Order. A file uploaded to a Sales
Order flows up to the Estimate and then to the
Opportunity.
One-to-one record linking
Configurable Files Flow has the same 1:1
limitation as Linked
Transaction File Flow in eXtendFiles.
Each eXtendFiles reference field holds only
one record, so each file links to one parent
record and one child record for each
relationship.
When a parent record has more than one child
record, such as a Sales Order with three Item
Fulfillments:
- A file uploaded to the parent record flows
only to the first child record, which is
the earliest child record that exists when
the workflow runs.
- A file uploaded to a specific child record
flows up to the parent record.
- A file uploaded to one child record
doesn't flow to the other child
records.
Set up the scheduled Files Flow workflow
The real-time workflow can't link a file to a
record that doesn't exist yet. For example,
you upload a file to a Sales Order and create
the Item Fulfillment the next day. The
scheduled workflow finds files like this and
links them on a schedule. It can also process
files that were uploaded before you released
the Files Flow workflow.
The scheduled workflow runs the same Files Flow
logic as the real-time workflow, so it also
fills in only empty reference fields.
Step 1: Create the eXtendFiles saved
search
The scheduled workflow processes every
eXtendFiles record that this saved search
returns. Keep the search narrow so that each
run only picks up files that still need to
flow.
- Go to Lists → Search → Saved Searches →
New, and select eXtendFiles.
- On the Criteria subtab, add a Date Created filter that limits how
far back to look, such as within the
last 10 days. Choose a range that
covers how long your related records
usually take to be created.
- Check Use Expressions to allow
for more efficient criteria definition.
For each row in your Files Flow
configuration, add criteria for files
where one reference field is set and the
other is still empty.
- Optional: Add status filters on the parent
transaction so the search skips orders
that are already fully processed and no
longer needing Files Flow.
- Click Save.
Example: For Purchase Order → Item
Receipt and Sales Order → Item Fulfillment
flows, the criteria could look like this.
Field names depend on your account.
(eXtendFiles - Purchase Order is not empty AND eXtendFiles - Item Receipt is empty AND Purchase Order : Status is any of Pending Receipt, Pending Billing/Partially Received) OR (eXtendFiles - Item Receipt is not empty AND eXtendFiles - Purchase Order is empty) OR (eXtendFiles - Sales Order is not empty AND eXtendFiles - Item Fulfillment is empty AND Sales Order : Status is any of Pending Fulfillment, Pending Billing/Partially Fulfilled) OR (eXtendFiles - Item Fulfillment is not empty AND eXtendFiles - Sales Order is empty)
Note: NetSuite requires at least one
filter on the Criteria subtab. If the
search returns too many records, the scheduled
workflow might not run as expected.
Step 2: Create the scheduled workflow
- Go to Customization → Workflow →
Workflows.
- View eXtendFiles Record Ref Files
Flow[B]
- Hover over More, then select Make Copy.
- In the copy's properties, change the Name to eXtendFiles Record Ref
Files Flow[SCH].
- Set Release Status to Released.
- Under Initiation, select Scheduled. On the Schedule subtab, select your saved search in Saved Search Filter, check Repeat, and choose a Frequency.
- Click Save.
Tip: Choose the least frequent schedule
that works for your process, such as once a
day. Each run adds processing load in
NetSuite, and NetSuite can't run scheduled
workflows more often than every 30
minutes.
Step 3: Test the scheduled workflow
- Scheduled workflows don't run in Testing mode. To test, keep the
workflow Released and narrow the
saved search to a few test files.
- To run the workflow without waiting for
the schedule, open it in view mode and
click Execute Now. Execute Now only
processes the first 20 records that the
saved search returns.
- Check the related records to confirm the
files flowed. Then, change the saved
search back to its normal criteria.
Example
Scenario: Flow eXtendFiles between a
Sales Order (parent) and an Item Fulfillment
(child).
- Set Child record-type to Item
Fulfillment.
- Set Parent record-type to Sales
Order.
- Set Child reference field on
eXtendFiles to the eXtendFiles
field that references the Item
Fulfillment.
- Set Parent reference field on
eXtendFiles to the eXtendFiles
field that references the Sales
Order.
- Set Parent record reference field on
child to the Item Fulfillment
field that points to the Sales
Order.
- Optionally enable Enable Parent to
Child files flow? if files on the
Sales Order should also flow to the Item
Fulfillment.
- Use Field Map if additional
reference values (such as customer) should
be copied onto the eXtendFiles record
during flow.
- Click Save.
What happens and when
This table assumes the Sales Order and Item
Fulfillment row above has Enable Parent to
Child files flow? turned on, and that
you've set up the scheduled workflow.
| What you do | What happens |
|---|---|
| Upload a file to Sales Order
SO100, which already has Item
Fulfillment IF200. | The file flows to IF200 right
away. |
| Upload a file to SO100, then
create IF200 later. | The file stays on SO100. The next
scheduled run links it to
IF200. |
| Upload a file to IF200. | The file flows up to SO100 right
away. |
| Upload a file to SO100 when it
already has IF200 and IF201. | The file flows only to IF200, the
first Item Fulfillment. |
| Upload a file to IF201. | The file flows up to SO100, but
not to IF200. |
| Upload a file to SO100 with Enable Parent to Child files
flow? turned off. | The file stays on SO100. |
| The file's Date Created is outside
the saved search's range. | The scheduled workflow skips the
file. |
Frequently Asked Questions (FAQs)
Q: When should I use Configurable Files
Flow instead of Linked Transaction
File Flow?
A: Use Configurable Files Flow when you
need file reference flow between record
types outside the built-in linked
transaction relationships. Use Linked
Transaction File Flow for the
standard supported transaction
chain.
Q: What does the parent record reference
field on the child record
do?
A: It tells eXtendFiles which field on the
child record identifies the related parent
record. Without this field, eXtendFiles
cannot determine the parent-child link
used for file flow.
Q: What is the field map used
for?
A: The field map defines how reference
fields on the parent and child records map
to reference fields on the eXtendFiles
record. For example, you can map a
customer field from an Opportunity to the
customer reference field on
eXtendFiles.
Q: Is parent-to-child files flow
required?
A: No. Parent-to-child files flow is
optional. Enable it only when you also
want file references to synchronize from
the parent record to the child record.
Child-to-parent files flow is always
on.
Q: How quickly are file references
linked when using Configurable Files
Flow?
A: When the related record already exists,
the file is linked as soon as the
eXtendFiles record is saved. When the
related record is created later, the file
is linked on the next run of the scheduled
workflow. NetSuite runs scheduled
workflows at most every 30 minutes, so
this takes at least that long. This
differs from Linked
Transaction File Flow, which links
files when a linked transaction is created
and uses a scheduled script for files
uploaded afterward.
Q: Do both record types need eXtendFiles
reference fields before
configuration?
A: Yes. The child and parent reference
fields selected in the configuration must
already exist on the eXtendFiles record
for those record types.
Q: Why didn't files flow to a record I
created after uploading the
file?
A: The real-time workflow only links
records that exist when the eXtendFiles
record is saved. To link records created
later, set up the scheduled Files Flow
workflow. See Set up the
scheduled Files Flow
workflow.
Q: Does Files Flow apply to existing
files?
A: Yes, through the scheduled workflow. Set
the saved search's Date Created range to include the older files, and test
on a small set of files first.
Q: I saved my Files Flow configuration,
but no files are flowing.
Why?
A: Check that a released copy of eXtendFiles Record Ref Files
Flow[B] exists. eXtendFiles
doesn't create one during installation,
and the configuration has no effect
without it. See Release the Files
Flow workflow.
Q: Does editing an existing eXtendFiles
record run Files Flow?
A: Only when you change one of its Files
Flow reference fields. Editing other
fields, such as the file type or
description, doesn't run Files Flow.
Q: What happens when a parent record has
more than one child record?
A: Files uploaded to the parent record flow
only to the first child record that exists
when the workflow runs. Files uploaded to
a specific child record flow up to the
parent record only. See One-to-one record
linking.
Q: Will the scheduled workflow link the
same file again or overwrite a
link?
A: No. Files Flow only fills in empty
reference fields and never replaces one
that's already set. Files that are already
linked still add to each run's processing,
so limit the saved search to files that
still need to flow.
Q: Can I use Configurable Files Flow for
Sales Order → Work Order or Sales
Order → Purchase Order?
A: Yes, but files only flow to the first
Work Order or Purchase Order. Flowing
line-level files to the specific Work
Orders that contain those items requires a
custom implementation project with
associated development costs.
Q: Why didn't a file on a child record
flow up to the parent
record?
A: Files Flow checks that the child
record's parent reference field points to
the parent record type in your
configuration. For example, if an Item
Fulfillment was created from a Transfer
Order instead of a Sales Order, a file on
that Item Fulfillment doesn't flow to a
Sales Order.
Q: Does Files Flow work with line-level
uploads?
A: File flow will process for line-level
uploads, but they will be linked at the
body (record) level.