# Attach Reports

This workflow shows how to attach GeoDin-generated PDF reports to the corresponding borehole points in ArcGIS Pro, so that each feature carries its geotechnical report as an attachment.

## Step 1: Prepare the feature class

Open ArcGIS Pro and identify the feature class containing the borehole points you want to attach reports to.

![Feature class with borehole points in ArcGIS Pro](/files/1T9Xg4UWUbVirrY2rFfY)

## Step 2: Enable attachments

Navigate to the feature class settings and enable the **Attachments** feature for the dataset. This is required before any files can be attached to features.

![Enabling the attachments feature on the dataset](/files/DqSqAh5LUxSXGigiI4vM)

## Step 3: Review the attribute table

Open the attribute table and locate the borehole name field. This name must match the PDF report filenames exactly for the automated attachment process to work.

![Attribute table showing the borehole name field](/files/eZvrjJTlnzZQS0ol7Xgw)

## Step 4: Handle naming discrepancies

Compare the borehole names in the attribute table with the GeoDin report filenames. If there are discrepancies (e.g., slashes `/` in ArcGIS vs. dashes `-` in filenames), you'll need to create a matching key.

![Comparing borehole names against report filenames](/files/uNiZ2vZbviCyomTpcNot)

## Step 5: Create an attach key field

Add a new field to the attribute table and use a field calculation to replace any problematic characters (e.g., replace slashes with dashes). This **attach key** field must contain values that exactly match the report PDF filenames (without the `.pdf` extension).

![New attach key field with slashes replaced by dashes](/files/tOUsxWXavJlfMIHScxPY)

## Step 6: Verify the attach key

Confirm that the attach key values match the report filenames. Each row should correspond to one PDF report.

![Attach key values matching the report filenames](/files/m3D8wM4mUxTsOqqJfGTS)

## Step 7: Create a match table

Use the **Geoprocessing > Add Table** tool to create a table that maps the attach key to the PDF file paths. Run the process to build the mapping.

![Geoprocessing Add Table tool configuration](/files/awJnlVfPFjfXm81PNRSC)

## Step 8: Add attachments

Use the **Geoprocessing > Add Attachments** tool with the match table you just created. Configure the input table, match field (the attach key), and the folder containing the PDF reports. Click **Run** to execute the attachment process.

![Add Attachments tool with input table and match field](/files/Wv6u68U1t7cBh8mrk3eS)

## Step 9: Verify results

Check the results to confirm that attachments have been added successfully. Click on individual borehole points to verify that their PDF reports are accessible as attachments.

![Feature with attached PDF report visible](/files/SMHPJpO57c3ftS5156nX)

***

**Next step:** [Publish the data with attachments to ArcGIS Online](/integrations/overview/publish-to-arcgis-online.md).

[Watch the full video walkthrough](https://loom.com/share/8c9cb05e6c98430c83c33aa418361704)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.geodin.com/integrations/overview/attach-reports.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
