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

# PFDataGetFilesAsync

> Retrieves file metadata from an entity's profile.

Retrieves file metadata from an entity's profile.

## Syntax

```cpp theme={null}
HRESULT PFDataGetFilesAsync(  
    PFEntityHandle entityHandle,  
    const PFDataGetFilesRequest* request,  
    XAsyncBlock* async  
)  
```

### Parameters

**`entityHandle`**   PFEntityHandle

PFEntityHandle to use for authentication.

**`request`**   [PFDataGetFilesRequest\*](/services/playfab/api-references/c/pfdatatypes/structs/pfdatagetfilesrequest)

Populated request object.

**`async`**   XAsyncBlock\*<br />*Inout*

XAsyncBlock for the async operation.

### Return value

Type: HRESULT

Result code for this API operation.

## Remarks

This API is available on all platforms. Returns URLs that may be used to download the files for a profile for a limited length of time. Only returns files that have been successfully uploaded, files that are still pending will either return the old value, if it exists, or nothing. See also FileAbortFileUploadsAsync, FileDeleteFilesAsync, FileFinalizeFileUploadsAsync, FileInitiateFileUploadsAsync. When the asynchronous task is complete, call [PFDataGetFilesGetResultSize](/services/playfab/api-references/c/pfdata/functions/pfdatagetfilesgetresultsize) and [PFDataGetFilesGetResult](/services/playfab/api-references/c/pfdata/functions/pfdatagetfilesgetresult) to get the result.

## Requirements

**Header:** PFData.h

## See also

[PFData members](/services/playfab/api-references/c/pfdata/pfdata_members)


## Related topics

- [PFDataGetFilesGetResult](/services/playfab/api-references/c/pfdata/functions/pfdatagetfilesgetresult.md)
- [Services C API overview - PFData.h](/services/playfab/api-references/c/pfdata/pfdata_members.md)
- [Quickstart iOS](/services/playfab/sdks/c/quickstart-ios.md)
- [Quickstart Linux](/services/playfab/sdks/c/quickstart-linux.md)
- [Quickstart macOS](/services/playfab/sdks/c/quickstart-macos.md)
