Skip to main content

Using Vista with App Xchange

Modified: 29 Oct 2026 App Xchange Workflows Help

There are several key concepts and workflow differences to consider when using Vista with App Xchange.

Attachment Data Objects Architecture

Managing attachments through App Xchange requires a different approach than native Vista because attachment metadata and the actual file bytes are handled as distinct data objects.

Vista stores attachment metadata and file bytes separately. App Xchange mirrors this split across two data objects in the Document Management module.

Table 1. Document Management Objects
ObjectSourceContainsPopulated by
AttachmentsHQATMetadata only (filename, keys, form/table refs)Cache writer service (scheduled)
Attachment FilesHQAT + HQAFDownload handles after bytes are staged in App Xchangecache_file connector action only

The Attachments cache tells you that a file exists. It does not include file bytes or a download URL. To retrieve file content, run the Document Management cache_file connector action on Attachment Files.

For more information about cache writer and action processor services, see Services.

Download Files from Vista

Discover attachment metadata and stage file bytes to download files from Vista using App Xchange.

Vista stores attachment metadata and file bytes separately. To retrieve file content, discover attachment metadata and run the Document Management cache_file connector action on Attachment Files.

  1. Discover attachments.

    Enable a cache writer service for the Document Management Attachments data object so metadata is replicated into the App Xchange cache on a schedule.

    In a flow, use a Lookup flow step against the Vista connector and the Attachments object. Filter or select UniqueAttchID, AttachmentID, or KeyID for the records you need.

    Optionally, use a Cache Event trigger on Attachments so a flow starts when the cache writer adds or updates attachment metadata.

  2. Stage the file.

    Add a Connector Action flow step. Select Vista for the connector and Document Management > Attachment Files - cache_file for the action path.

    Request body example:

    {"Attachments": [ { "UniqueAttchID": "b0101539-b31b-4116-9bce-b8075893ae35" } ]}

    Alternative identifiers (use one per attachment):

    {"Attachments": [ { "__key": { "AttachmentID": 12345 } } ]}

    {"Attachments": [ { "__key": { "KeyID": 6789 } } ]}

    You can map values from the Lookup step into the request body. Keep Wait For Response enabled so the flow continues only after the action completes.

  3. Read the action response.

    Each item in the Attachments array may include:

    • __file_id: App Xchange internal file ID. Build a file URL with appNetwork.fileUrl(), or pass the ID to steps that accept a file ID.
    • filePointer (Preferred): File pointer object (filename, contentType, size, location). Pass the pointer to flow steps that accept file pointers. For more information, see File Pointers.
    • errors[]: Per-file failures. The action can return status Successful even when individual files fail. Always inspect errors[] per attachment.

    Access the response from the Connector Action step with helpers such as flow.step('your-step-id').actionResponse. For more information, see App Xchange Flow Helpers.

    Success response example (simplified):

    {"Attachments": [ { "KeyID": 1881, "AttachmentID": 10, "UniqueAttchID": "b0101539-b31b-4116-9bce-b8075893ae35", "__file_id": "6424dc79-084a-4d86-b5e5-6b86d6a8ade6", "filePointer": { "filename": "invoice.pdf", "contentType": "application/pdf", "size": 245760, "location": "https://..." }, "errors": [] } ]}

    Per-file error example (action may still be Successful):

    {"Attachments": [ { "UniqueAttchID": "b0101539-b31b-4116-9bce-b8075893ae35", "errors": [ { "text": "An error occurred while trying to retrieve attachment's keys (KeyID, AttachmentID and UniqueAttchID).", "source": ["HQAT / HQAF"], "details": "Attachment file bytes were not found for 'invoice.pdf'. Verify the Vista DM attachment store configuration (HQAO) and the Attachment Database Connection String on this connection." } ] } ]}

  4. Use the staged file in later flow steps.

    Pass __file_id or filePointer from the cache_file response into downstream steps (for example, SFTP connector actions, email, parse, or encrypt steps). You can also build an App Xchange file URL with appNetwork.fileUrl('<__file_id>') when a later action expects a URL.

    In Flow Run details, file-based action output includes the full JSON alongside the download icon so you can copy metadata for downstream steps.

    Note: Troubleshooting cache_file:
    Error / SymptomLikely Cause & Diagnosis
    File could not be found in Vista (HQAT)Invalid or unknown UniqueAttchID / AttachmentID / KeyID. Confirm the value from the Attachments Lookup or Cache Explorer.
    Attachment file bytes were not found...

    Cause: The HQAF database is empty in your configured store (metadata was found in Viewpoint, but bytes were read from the wrong store).

    Diagnosis: Run the following SQL on both your primary Viewpoint DB and your configured attachment DB to verify where the bytes are stored:

    SELECT a.AttachmentID, a.OrigFileName, LEN(f.AttachmentData) AS ByteLength FROM HQAT a LEFT JOIN HQAF f ON f.AttachmentID = a.AttachmentID WHERE a.UniqueAttchID = '<UniqueAttchID>'

    Successful but empty AttachmentsFixed in connector >= Apr 2026; upgrade the Xchange agent.
    No __file_id or filePointer in responseFile failed to stage; check per-item errors[], Action Explorer, and job logs.
File bytes move through the cache_file action using __file_id or file pointers inside flows.

Upload Files into Vista

Upload attachment files into Vista using the Document Management Attachments Add action in App Xchange.

Use a Connector Action to add the attachment.

Add a Connector Action flow step. Select Vista for the connector and Document Management > Attachments - Add for the action path (or a module-specific add-attachment action where available).

Set URLToFileBytes to one of the following:

  • A public HTTP(S) URL, or
  • An App Xchange file URL from a prior cache_file result or file-producing step (for example, appNetwork.fileUrl('<__file_id>'))

Request body example:

{"HQCo": 1, "FormName": "AP Invoice Entry", "KeyField": "KeyID = 12345", "TableName": "APHB", "OrigFileName": "invoice.pdf", "DocAttchYN": "Y", "IsEmail": "N", "URLToFileBytes": "https://example.com/files/invoice.pdf"}

The agent downloads those bytes and writes them into Vista per DM attachment options (HQAO):

  • HQAF database storage, or
  • Filesystem path derived from HQAT.DocName
Attachment metadata and file bytes are committed to Vista based on your configured DM attachment options.

Using Vista View Columns for Field Lookups

When working with Vista data in App Xchange, you may need to understand database fields that are not directly referenced in the Vista interface.

Vista provides a supplemental lookup report, Viewpoint View Columns, that lists available columns and their properties.

This lookup page is especially useful when you build database integrations or automate data flows, because it helps you:

  • Identify the technical names and attributes of fields that appear in views and reports.
  • Confirm how fields are stored in the database when the UI does not expose full details.
  • Align App Xchange mappings and connector configurations with Vista's underlying data model.

Use the Viewpoint View Columns page together with in-app field descriptions to validate your assumptions about Vista data and reduce integration errors.

Refresh the User-Defined Table Data Cache

There are many Vista data objects with a large memory footprint. Leverage refresh actions to apply desired filters. A common use case is User-Defined tables.

The Vista user-defined table data refresh cache action enables pulling data from Vista user-defined (UD) tables into the App Xchange cache. The most common way to use this connection action is within a schedule to ensure up-to-date data for other flows that reference the cached data.

Note: Vista custom fields (_custom_fields) will not trigger cache event triggers. To trigger a flow, at least one standard (non-underscored) field must also be updated.
  1. Add a new step to your flow.
  2. Select the Connector Action type.
  3. In the Step Detail section, select Vista for the connector.
  4. Select User Defined Tables > User Defined Tables Data - Refresh Cache v2 for the action path.

When this flow step runs, it refreshes the App Xchange cache with your specified Vista UD table data, enabling other flows referencing the cache data to access up-to-date data.

Submit

Table of Contents