---
schema_version: "1"
id: a575b34609e59a86dce0d2b4884e53377b3157bcde80ae6d7b46971addee435a
title: Fetch Files
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/service-cloud/field-service-dev/guides/field-service/source-files/schedulingoperation/business-apis/connect-responses-fetch-files.md
canonical_url: https://developer.salesforce.com/docs/service/field-service-dev/guide/connect-responses-fetch-files.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 729f72fa2e0d070dc3c94829153f233ee1994123129f62b82772219b756dce69
products:
  - Field Service Developer Guide
  - Service Cloud Developer Content
---

# Fetch Files

Output representation for a fetch optimization files operation. Contains a map of the files created in the org for the specified optimization request.

## JSON Example

```nolang
{
  "createdFiles": {
    "property1": {
      "contentVersionId": "string",
      "success": true
    },
    "property2": {
      "contentVersionId": "string",
      "success": true
    }
  }
}
```

## Properties

|Property Name|Type|Description|Filter Group and Version|Available Version|
|-------------|----|-----------|------------------------|-----------------|
|`createdFiles`|Map\<String, [Created File](https://developer.salesforce.com/docs/service/field-service-dev/guide/connect-responses-created-file.md)>|Map of file names to their corresponding file creation details. Each key is the name of a file associated with the optimization request. Each value contains the Content Version ID and a success indicator.|Small, 66.0|66.0|

