# Service files, email and integrations

Source: https://govform.com/resources/documentation/article/21-06-service-files-email-and-integrations
Topic: Service Settings

These service settings connect a journey to file storage, messages and operational alerting. They should be configured with the library owner and tested in QA using representative, non-sensitive data. Keep credentials and connection details in protected library configuration, not in page content or templates.

## Use the library connection, not an ad-hoc destination

The service selects from storage connections configured at library level. The underlying storage type and site link are system-managed choices: do not edit their internal values through an API or workaround unless directed by product support. Instead, create or update the named connection in library settings, then select it in the service or relevant action.

For file uploads, agree these decisions before building the action:

| Decision | What to define |
| --- | --- |
| Destination | Which approved QA and production connection receives files. |
| Folder structure | A stable, non-sensitive parent path that supports retrieval and retention. |
| File types and limits | What people may upload and how invalid files are handled. |
| Permissions | Who can read, edit or remove stored files. |
| Retention | How long files are needed and who is responsible for disposal. |

Test a successful upload, rejected file, unavailable destination, repeat submission and authorised retrieval path. The person should receive a clear next step when an upload cannot complete.

## Choose storage and protection together

Use Govform-managed storage or your organisation’s SharePoint, AWS S3, Google Cloud Storage or Azure Blob Storage. This lets evidence remain in the store used by your operational team, with separate QA and Production connections.

-   **Govform storage:** configured antivirus scans files in place.
-   **Own supported store:** choose Govform scan-first, parallel scanning or no Govform AV where your destination supplies the agreed controls. Parallel transfer can reach the destination before the scan completes.
-   **CDR:** supported documents always scan first before reconstruction; single-file components only, with a 50 MB default cap or a lower configured limit.

Standard uploads have a 20 GB per-file ceiling and a 10 MB default. Current external-store Govform scanning transfers are limited to 5 GB. The component limit, store policy and processing capacity may reduce the usable size. [Compare all upload and security limits](<https://govform.com/resources/documentation/article/23-09-component-file>).

## Deliver large files and bulk returns

Upload files actions stream stored evidence and confirmed Bulk Data CSV files to the configured destination. Authenticated APIs also stream files for external processors, avoiding the 25 MiB combined raw-file allowance for Base64 API bodies. Provider and execution limits still apply.

Bulk Data validates up to five million cells and 200 configured columns, with retained source evidence and optional correction before confirmation. [Configure the file transfer action](<https://govform.com/resources/documentation/article/25-09-action-site-upload>) and [select the correct bulk evidence version](<https://govform.com/resources/documentation/article/33-14-api-bulk-data-files>).

## Configure emails for the right environment

Service-level email provider and address overrides are most useful for controlled testing and exceptional service requirements. An **Email to address override** can direct all messages to a safe test mailbox; an **Email from address override** must be verified by the chosen provider; an **Email reply-to address override** must reach a monitored support route.

Never leave a QA override in place when deploying a production version. Keep addresses purpose-led and make it clear who responds to replies. Check that emails are understandable without the context of the browser page and that they do not expose unnecessary personal information.

```
flowchart TD
    A["Action needs to send a message or upload a file"] --> B["Select approved library connection"]
    B --> C["Configure service or action setting"]
    C --> D["Use safe QA destination or mailbox"]
    D --> E["Test success and failure paths"]
    E --> F["Review production settings before deployment"]
```

## Alert on action failures without exposing data

**Action failure alert emails** can be configured to alert on every failed action or only selected action IDs. Use selected alerts for high-impact operations such as a critical data update, document transfer or message dispatch. Name actions clearly so an alert immediately tells the team what failed.

Including the full payload in alert emails can help diagnose an issue, but it can also expose answers, uploaded-file metadata or sensitive operational data. Leave payload details out unless there is an approved need, a protected recipient group and a documented handling process. An alert should contain enough context to begin investigation without becoming another uncontrolled data store.

| Alert test | Expected result |
| --- | --- |
| Selected action fails | The appropriate operational mailbox receives a useful alert. |
| Unselected action fails | No alert is sent when selective alerting is intended. |
| Action succeeds | No failure alert is generated. |
| QA failure | The alert and any payload go only to authorised test recipients. |
| Production failure | The responder can identify the service, action and next investigation step. |

## Keep external actions dependable

The action itself controls how a file is uploaded, a list is read or updated, an external endpoint is called, or a message is sent. Service settings establish the shared configuration around it. Sequence dependent actions carefully and use conditions to avoid an unnecessary call. For a list update, look up the target item before an upsert so the service can identify it correctly.

External systems can be slow, reject data or be unavailable. Give people a recoverable route, set realistic timeouts, test malformed and missing responses, and ensure a retry cannot create unwanted duplicate records or messages.

## Pre-deployment review

1.  Confirm the library connection and target environment.
2.  Check that QA and production destinations are different where required.
3.  Verify sender and reply-to addresses.
4.  Check action IDs selected for alerting and authorised recipients.
5.  Test a representative message or upload from a fresh QA journey.
6.  Confirm no temporary override, credential or sample personal data remains.

## Connectors, AI and accepted payments

Use [Connector settings](<https://govform.com/resources/documentation/article/25-23-action-connector>) for managed recipes and named OAuth connections, or the [API action connection mode](<https://govform.com/resources/documentation/article/25-08-action-api>) for an approved API path. [AI actions](<https://govform.com/resources/documentation/article/25-24-action-ai-summarise>) and [saved results](<https://govform.com/resources/documentation/article/25-26-save-action-results>) use normal action timing.

For [service fees](<https://govform.com/resources/documentation/article/service-payment-settings>), accepted answers lock before checkout and submission/completion work waits for the confirmed payment outcome. Do not use a page action to collect card details or reopen a paid response.

## Related guides

-   [Connect data files and SharePoint](<https://govform.com/resources/documentation/article/10-connect-data-files-and-sharepoint>)
-   [Add actions and workflows](<https://govform.com/resources/documentation/article/08-add-actions-and-workflows>)
-   [Write Liquid templates](<https://govform.com/resources/documentation/article/11-write-liquid-templates>)
-   [Library settings](<https://govform.com/resources/documentation/article/20-library-settings>)
-   [Library integrations and data](<https://govform.com/resources/documentation/article/20-10-library-integrations-and-data>)
-   [Library email configuration](<https://govform.com/resources/documentation/article/20-08-library-email-configuration>)
-   [Library cloud storage connections](<https://govform.com/resources/documentation/article/20-06-library-cloud-storage-connections>)
