Create and Manage Data Sources

This topic describes how to add a Data SourceClosed Data sources, also known as "Lookups", are external sources of data that you upload or connect to TrueContext. You can reference this data in a form to populate answers or answer options. Data sources save typing, reduce errors, and make it easy to provide mobile users with only the relevant, most current data. to your FormSpaceClosed FormSpaces are where forms are stored and organized in the TrueContext Web Portal. A TrueContext Team may have multiple FormSpaces, depending on their needs. Admins can set FormSpace permissions to control which users have access to the forms in that FormSpace. and how to view and update the data in the TrueContext system.

Available on all tiers:

Essentials
Advanced
Enterprise

Contents

What are Data Sources?

Data SourcesClosed Data sources, also known as "Lookups", are external sources of data that you upload or connect to TrueContext. You can reference this data in a form to populate answers or answer options. Data sources save typing, reduce errors, and make it easy to provide mobile users with only the relevant, most current data. are external sources of data—such as lookup tables, spreadsheets, or data from integrated systems—that you can upload or connect to TrueContext. We store Data Sources as tables (rows and columns) in the TrueContext system. Once you set up a Data Source, you can use the data for questions in your forms.

For example, you might store equipment data in an online spreadsheet or asset management system. You can use a Data Source to pull that data into TrueContext and then reference it in a Dropdown, Radio Button, or Multiselect question, making it easier for your users to enter data.

View Data Source details

You can navigate to a Data Source in different ways:

Create a Data Source

Info:Data source size limits apply when you upload or fetch a Data Source. The topic Best Practices for Data Source Size describes these limits in more detail. If you’re an Enterprise customer, we recommend that you follow best practices for Data Source size before you request a size limit increase.

  1. Select Manage Forms.

  2. If the team has multiple FormSpaces, confirm that you are in the correct FormSpace, and then select Data Sources.

    Manage Forms menu with "Data Sources" highlighted

  3. Select Create Data Source.

    Create Data Source option

  4. There are different types of Data Sources available. Choose the one that best meets your requirements.

Manage a Data Source

View the Data Source details

  1. Select ​Manage Forms, and then select ​Data Sources.

    Note: If you don’t see the Data Source in the list, confirm that you’re in the correct FormSpace.

  2. Select a Data Source from the list.

    Result: The system displays the Data Source details.

  3. Check the top left of the page for a summary of the Data Source details.

    Data Source Details page that shows Last Update, size limits and usage, number of referencing forms, and partition and analytics info

    • Last Content Update is the date and time that the content from the Data Source changed. This could be by manual upload or a dynamic Data Source “fetch”.

      Note:This is the last time the actual content of the Data Source changed, not the last time someone made changes to the Data Source configuration. For dynamic Data Sources, the update time only changes if there were actual changes to the data, regardless of when a fetch completed.

    • Number of rows and cells in the Data Source, along with the size limits

      Info:Data source size limits apply when you upload or fetch a Data Source. The topic Best Practices for Data Source Size describes these limits in more detail. If you’re an Enterprise customer, we recommend that you follow best practices for Data Source size before you request a size limit increase.

    • Number of forms that reference the Data Source

    • Number of Analytics Projects that reference the Data Source

    • Number of partitions applied (Enterprise-tier only)

  4. Check the bottom left of the page for a list of the column headers from the source data.

    columns.png

    • Columns with a check mark beside them are used in one or more forms.

    • Columns with an “x” beside them are not used in any forms.

  5. If you change the columns in your source data, you can delete or “merge” the columns in TrueContext.

    • To delete an unused column from the list, hover over the column and select the Delete option.

      Note:If the column still exists in your source data, and anything in your source data changes, it’s re-added when you upload or fetch the changed data.

    • To point a used or unused column to a different column in the Data Source, hover over the column and select the Merge option.

      Tip:You can use the Merge option to replace one column with another if your source data changes.

      For example:

      • Your source data has a new column called “Customer Information”.

      • Questions in your forms already use the column “Customer”.

      • You can “merge” the “Customer Information” column with the “Customer” column.

      • Your form questions now reference the new column data, and you don’t have to edit your forms.

Download the Data Source contents

To view the contents of the Data Source, download the Data Source as a CSV or Excel file.

  1. Hover over the arrow next to the Data Source name, and then select one of the download options.

  2. Open the file with a compatible program.

Upload or Fetch new data

To change the content of Data Sources in TrueContext, you upload or fetch data from your source data. You can’t edit the content directly in TrueContext.

Info:Data source size limits apply when you upload or fetch a Data Source. The topic Best Practices for Data Source Size describes these limits in more detail. If you’re an Enterprise customer, we recommend that you follow best practices for Data Source size before you request a size limit increase.

Upload data manually

For Manual Upload Data Sources, upload the changed data to the Data Source within the TrueContext Web PortalClosed The TrueContext Web Portal is a web application used to manage security settings, forms, FormSpaces, other users, Data Sources, and Data Destinations..

  1. Navigate to the Data Source that you want to update.

  2. Select Upload New Data.

  3. On the next page, select the file that you want to upload, and then select Update.

Fetch data from a dynamic Data Source

For dynamic Data Sources, you update the files in your external system. TrueContext connects to the source data and can fetch it on a schedule or on demand from the Web Portal.

Tip:An on-demand Fetch is helpful when you've made changes to the Data Source that you want to test.

  1. Navigate to the Data Source that you want to update.

  2. Select Fetch New Data.

Copy a Data Source

Copying a Data Source creates a duplicate of the Data Source, which you can use to make the same Data Source available to forms across different FormSpaces.

Tip:You can also move a Data Source from one FormSpace to another.

  1. Navigate to the Data Source that you want to duplicate.

  2. Select Copy.

  3. When prompted, enter information in the required fields.

    • Target FormSpace—This is where you want to place the copy.

    • Target Data Source Name—This is what you'd like to name the copy.

Move a Data Source

You can move a Data Source from one FormSpace to another when the Data Source isn’t referenced by any forms.

  1. Navigate to the Data Source that you want to move.

  2. Select Move.

  3. When prompted, enter information in the required fields.

    • Target FormSpace—This is the FormSpace you want to move the Data Source to.

    • Target Data Source Name—This is the new Data Source name in the target FormSpace.

Merge a Data Source

Merge allows you to point forms to a new Data Source without editing the forms. This is useful if you have multiple forms referencing different Data Sources that you have consolidated. You can also use the Merge function to move from one data connection type to another. For example, you could move to a Google Sheets Data Source instead of using manual data-entry.

  1. Navigate to ​Manage Forms > ​Data Sources.

  2. Select the Data Source that you want to merge. This should be the old Data Source, not the target.

    Note: If the desired Data Source is not listed, confirm that you are in the correct FormSpace.

  3. Hover over the down arrow next to the Data Source name, and then select Merge.

    Warning:The selected Data Source will be permanently deleted after the merge in step 6. You can’t undo this action.

    2019-08-30-DataSource-Merge.png

  4. From the Data Source to merge into list, select the target Data Source.

  5. In the Keep the data from section, select the Data Source that contains the data you want to keep.

  6. Select Merge.

    Result: Any forms that pointed to the old Data Source now point to the target.

Delete a Data Source

You can delete a Data Source from a FormSpace when no forms currently reference that Data Source.

Warning: Deleting a Data Source is permanent. You can’t recover the data from the TrueContext server.

  1. Navigate to ​Manage Forms > ​Data Sources.

  2. Select the Data Source that you want to delete.

    Note: If the desired Data Source is not listed, confirm that you are in the correct FormSpace.

  3. Hover over the down arrow next to the Data Source name, and then select Delete.

    2019-08-30-DataSource-Delete.png

  4. Confirm that you want to delete the Data Source.

Related topics