> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create the file collection section

> Add a Pega file collection section with an AJAX Container bound to pyCaseAttachments so users can attach files to an ABBYY FlexiCapture case in the flow action.

The file collection section gives the user the controls for attaching files to the case. It holds an AJAX Container bound to the standard `pyCaseAttachments` section.

## Configure the Collect flow action

<Steps>
  <Step title="Open the Collect flow action">
    In **Dev Studio**, click **Records → Process → Flow Action → Collect**, and then click the configuration button.

    <Frame>
      <img src="https://mintcdn.com/abbyy/Xgx3EG8BZs5YQjIJ/images/flexi-capture/connectors/Pega190.png?fit=max&auto=format&n=Xgx3EG8BZs5YQjIJ&q=85&s=611b5e7f3f388204cfe12b3e022d1b9e" alt="Screenshot of Pega Dev Studio editing the Collect flow action on the Layout tab, with the section configuration button next to the Collect section highlighted." width="673" height="290" data-path="images/flexi-capture/connectors/Pega190.png" />
    </Frame>
  </Step>

  <Step title="Add an AJAX Container">
    On the **Design** tab, delete the default dynamic layout and add **Layout → AJAX Container**. Specify the following settings in the dialog box that opens:

    | Field            | Value               |
    | ---------------- | ------------------- |
    | **Default view** | Section             |
    | **Page context** | Use other context   |
    | **Section**      | `pyCaseAttachments` |
    | **Context**      | `Work-`             |

    <Frame>
      <img src="https://mintcdn.com/abbyy/Xgx3EG8BZs5YQjIJ/images/flexi-capture/connectors/Pega191.png?fit=max&auto=format&n=Xgx3EG8BZs5YQjIJ&q=85&s=95ac306c08e8b9daeb540a63de536ca1" alt="Screenshot of the Pega AJAX Container Settings dialog with Section selected as the Default view, pyCaseAttachments entered as the Section, and Work- entered as the Context." width="661" height="425" data-path="images/flexi-capture/connectors/Pega191.png" />
    </Frame>
  </Step>

  <Step title="Apply the settings">
    Click **OK**. The **Design** tab now shows the AJAX Container with the `pyCaseAttachments` section inside it.

    <Frame>
      <img src="https://mintcdn.com/abbyy/Xgx3EG8BZs5YQjIJ/images/flexi-capture/connectors/Pega192.png?fit=max&auto=format&n=Xgx3EG8BZs5YQjIJ&q=85&s=d278483f9632742e545f0967d6eae1fa" alt="Screenshot of Pega Dev Studio showing the Collect section Design tab with an AJAX Container that includes the pyCaseAttachments section and pyAttachmentAddButton controls." width="1231" height="630" data-path="images/flexi-capture/connectors/Pega192.png" />
    </Frame>
  </Step>
</Steps>
