Update clients using the CSV Import automation filter

Plan: Not Available: Intermediate Available: Pro or Elite

Users: Not Available: All users Available: FYI Admins or User Group permissions

Practice Management Source: Available: All sources

This automation process example uses a custom process to update existing clients in FYI from a CSV file. For example, you can update Custom Fields for multiple clients in one process.

This process uses:

For practices on the Pro plan, consider the impact of Xero Practice Manager rate limits when using this feature.

This feature is currently in beta for the FYI Pro Plan. Learn more about beta registrations.

Before you begin

Practices must be on the Elite plan with FYI as the Practice Management Source, or have the FYI as Primary for Client Maintenance setting enabled. Pro practices must also have the CSV Data Import beta enabled.

To run the process, you must be an FYI Admin or belong to a User Group with permission to access Automations.

Creating the CSV file

Create a CSV file with a row for each client you want to update. One column must include details used to match existing clients in FYI, for example the FYI Client ID, or Client Code. Refer to Columns used to match existing clients below. 

The following is an example of a CSV file used to update clients in FYI.

4997_Automation_Process_CSV_Import_Create_Client_CSV.gif

Columns used to match existing clients

Include at least one of the following columns, with details populated for each client. Map the column to the corresponding Type when configuring the CSV Data Import filter.

Column Type
FYI Client ID FYI Client ID
Client Name Client Name
Client Code Client Code
Client Export Code Client Export Code
Business Number Business Number
NZBN String
Company Number Company Number
Tax Number, IRD Number, or VAT Number Client Tax Number

If you configure multiple columns for client matching, the values in those columns must identify the same client. Otherwise, FYI cannot match the row to a client.

To match using a tax number, the full number must be stored in FYI. Tax numbers synchronised from Xero Practice Manager that contain only the last three digits cannot be used for matching.

Additional CSV columns

Add columns for the fields you want to update, using the types below.

Field Notes Type
Group String
Structure String
First Name Used for individuals only. String
Last Name Used for individuals only. String
Other Name String
Salutation String
Addressee String
Email String
Phone Number Ensure the Phone Number in the CSV starts with a 0 String
Mobile Number Ensure the Phone Number in the CSV starts with a 0 String
Manager The value must match the name of an active user in FYI. User
Partner The value must match the name of an active user in FYI. User
Custom Fields Custom Fields must be active in FYI. String, Date, Numeric, or Toggle, depending on the Custom Field.
Custom User Role The value must match the name of an active user in FYI. User
Balance Month Enter the full name of the month, for example, July rather than Jul. String
Prepare AS
Prepare GST
Prepare Tax Form
Signed Tax Authority
GST Registered
Enter True or False. String
GST Period Enter True or False. String
GST Basis Enter True or False. String
Physical Address (all fields)
Postal Address (all fields)
String

Custom Field columns

Add a separate column for each Custom Field, with each row containing the value for that client. Check that the Custom Fields are active in FYI.

4084_CSV_Import_Create_Client_Custom_Fields.gif

When configuring the process filter, select the correct Type for each Custom Field column. In this example, the types are Toggle, String, and Date.

4085_CSV_Import_Create_Client_Custom_Fields_Types.gif

Saving and uploading the CSV file

  1. Save the file in CSV UTF-8 format and upload it to FYI.
  2. Configure a Documents view containing only the CSV files you want the process to import. All CSV files in the selected view are processed. Follow the CSV Data Import view configuration guidance.
  3. Confirm that users referenced in the file exist as active users in FYI.

Creating the custom process

Create a custom process using the CSV Data Import filter and an Update Client step, as shown in the following example.

5007_Automation_Process_CSV_Import_Update_Client_Process.gif

Configure the CSV Data Import filter

Configure the CSV Data Import filter using the Documents view containing your CSV files.

  1. Map each CSV column to the appropriate Type, using the tables in Creating the CSV file.
  2. Enable Match Clients During Validation to match imported rows to existing clients. Ensure the file contains a column used to match clients, with the corresponding column type selected in the filter. 
  3. Enable Run Only Once Per Row to prevent previously processed rows from being processed again. This is particularly important when running additional batches for files containing more than 10,000 rows in total.

Without Match Clients During Validation, the imported data is not matched to existing clients for updates.

3460_CSV_Data_Import_Columns.gif

Add the Update Client step

Add an Update Client step and configure the fields you want to update.

Use Merge Fields to insert values from the CSV file, or enter a value directly. A value entered directly applies to every client processed.

3845_Automation_Step_Update_Client_FYI_Primary.gif

Add Custom Fields

  1. Select a Client Custom Field in the Update Client step. The selected Custom Field is added to the drawer.
  2. Enter a value to apply to every client, or select the Merge Field icon to insert values from the CSV file.

4086_CSV_Import_Create_Client_Add_Custom_Field.gif

The Trigger Data section of the Merge Field Editor displays only columns with a compatible Type. For example, a Date Custom Field displays columns mapped to Date, while a Drop-down Custom Field displays columns mapped to String.

If no CSV columns have a compatible type, the warning "No compatible merge fields available for target field" displays. Check the column types in the process filter.

Managing existing client data

Configure how the step handles existing client values before running the process. You can leave fields unchanged or use imported values to update them. For supported fields, you can also choose what happens when a CSV value is blank.

Setting Outcome
Unchanged The process does not update the field for any client. 
Retained

The process uses the imported value when one is provided. If the CSV value is blank for a client, the existing FYI value remains unchanged.

The Retained option is not available for:

  • Client Group
  • Business Structure
  • Prepare Activity Statement
  • Prepare Tax Form
  • Email
Cleared

The process uses the imported value when one is provided. If the CSV value is blank for a client, the existing FYI value is removed.

The Structure, Client Group, and Include in AutoFile fields cannot be cleared.

When Email is mapped to a CSV Merge Field, a blank imported value removes an existing client email address. If you are not updating email addresses, leave Email as Unchanged. Use a separate CSV file when updating email addresses, containing only the clients whose email addresses you intend to update.

Expand the sections below for instructions on configuring each option.

Select values from the CSV file

Select the Merge Fields icon for the field you want to update.

CSV column headings display in the Trigger Data section. Select the relevant Merge Field, then Save. The selected Merge Field displays in the automation step.

4312_CSV_Import_Update_Client_Partner.gif

For supported fields, select Retained or Cleared to control what happens when an imported value is blank.

4311_CSV_Import_Update_Client_Retain_Data.gif

Leave a field unchanged

To exclude a field from the update, remove its value or Merge Field from the automation step and check that Unchanged displays.

4313_CSV_Import_Update_Client_Email_Unchanged.gif

Retain existing values when CSV values are blank

When selecting a Trigger Data Merge Field, select Retained to keep the existing FYI value when the CSV value is blank for that client. This option is available only for supported fields.

4311_CSV_Import_Update_Client_Retain_Data.gif

Clear existing client values

Where the Eraser icon is available, use it to clear the field when the process runs. For example, you can remove an existing Custom Field value.

4267_Clear_eraser_icon.gif

To clear a field only when its imported value is blank, select Cleared when configuring the Trigger Data Merge Field. The process removes the existing FYI value for clients whose CSV value is blank.

4310_CSV_Import_Update_Client_Clear_Data.gif

Additional field configurations

Review the following details for the fields you want to update.

Updating email addresses

If a client does not have an email address entered in FYI, the Email field defaults to the Primary Contact's email address, indicated by an address book icon. If no Primary Contact is selected, the field remains blank.

3858_Client_Email_Primary_Contact_default.gif

The Email field does not have a Clear Data function. To clear an existing client email address, leave its value blank in the CSV file and select the corresponding Merge Field in the Update Client step.

4314_CSV_Import_Update_Client_Email.gif

When the process runs with a CSV Merge Field selected for Email:

  • If the CSV contains an email address, FYI updates the client's email to that address. This also applies when the client previously defaulted to the Primary Contact's email address.
  • If the CSV value is blank and the client has an email address entered in FYI, the process removes that address.
  • If the CSV value is blank and the client already defaults to the Primary Contact's email address, or has no email address or Primary Contact, there is no change.

Use a separate CSV file containing only the clients whose email addresses you intend to update. For other imports, check that Email displays Unchanged in the Update Client step.

4313_CSV_Import_Update_Client_Email_Unchanged.gif

Creating or updating client groups

In the Update Client step, select the relevant Trigger Data Merge Field to use the client group name from the CSV file.

If the group does not exist in FYI, the process creates it when updating the client. Other clients processed from the CSV file with the same group value are added to that group.

4057_CSV_Import_Create_Client_Client_Group.gif

When updating an existing client's group, the client is removed from the previous group and added to the group specified in the CSV file.

The Client Group field cannot be cleared using the CSV import.

Selecting a default Cabinet

Select the default Cabinet from the drop-down. The selected Cabinet applies to every client processed. When using AutoFile, FYI will apply the default Cabinet where possible.

4788_Automation_Step_Create_Client_select_Cabinet_dropdown.gif

Setting the client Partner and Manager

Use Merge Fields to set the client's Partner and Manager from either:

  • Automation Initiator, the user running the import.
  • Trigger Data, using values from the CSV file.

To assign the same user to every client processed, select that user from the Partner or Manager drop-down.

4059_CSV_Import_Create_Client_Manager_Partner.gif

Previewing and running the process

Test the process using a single CSV row before running the import. The test updates the selected client in FYI.

  1. Configure the Automation Filter and the Update Client process step.
  2. Select Test and review the CSV data. If invalid rows are identified, download the error report, correct the CSV file, and upload the corrected file to FYI before continuing.
  3. Select a row and select Run Test. Follow the detailed instructions for testing a process.
  4. Check the History tab and the updated client details to confirm the process worked as expected.
  5. Select Run to preview the import. Check the number of rows and resolve any validation errors before selecting Run in the preview window. Follow the detailed instructions for running a process.

    The process imports data from all CSV files in the selected Documents view, up to a total of 10,000 rows per run.
    5006_CSV_Data_Import_Run_Update_Client.gif
  6. Select the History tab. Review the process history to check its status and what was processed.
    383 Automation Process History.gif
Was this article helpful?
1 out of 2 found this helpful

Stay Up-To-Date

  • Events

    We host a range of product demos, training webinars, workshops and more.

  • Service Status

    Check for updates on the FYI Platform

  • What's New

    Round-up of new features, fixes, and other important announcements.