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

# PFDataGetObjectsAsync

> Retrieves objects from an entity's profile.

Retrieves objects from an entity's profile.

## Syntax

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

### Parameters

**`entityHandle`**   PFEntityHandle

PFEntityHandle to use for authentication.

**`request`**   [PFDataGetObjectsRequest\*](https://docs.xbox.com/services/playfab/api-references/c/pfdatatypes/structs/pfdatagetobjectsrequest.md)

Populated request object.

**`async`**   XAsyncBlock\*\
*Inout*

XAsyncBlock for the async operation.

### Return value

Type: HRESULT

Result code for this API operation.

## Remarks

This API is available on all platforms. Gets JSON objects from an entity profile and returns it. See also ObjectSetObjectsAsync. When the asynchronous task is complete, call [PFDataGetObjectsGetResultSize](https://docs.xbox.com/services/playfab/api-references/c/pfdata/functions/pfdatagetobjectsgetresultsize.md) and [PFDataGetObjectsGetResult](https://docs.xbox.com/services/playfab/api-references/c/pfdata/functions/pfdatagetobjectsgetresult.md) to get the result.

## Requirements

**Header:** PFData.h

## See also

[PFData members](https://docs.xbox.com/services/playfab/api-references/c/pfdata/pfdata_members.md)


## Related topics

- [PFDataGetObjectsGetResult](https://docs.xbox.com/services/playfab/api-references/c/pfdata/functions/pfdatagetobjectsgetresult.md)
- [Services C API overview - PFData.h](https://docs.xbox.com/services/playfab/api-references/c/pfdata/pfdata_members.md)
- [PFDataSetObjectsAsync](https://docs.xbox.com/services/playfab/api-references/c/pfdata/functions/pfdatasetobjectsasync.md)
- [PFDataSetObjectsGetResult](https://docs.xbox.com/services/playfab/api-references/c/pfdata/functions/pfdatasetobjectsgetresult.md)
- [PFDataGetObjectsGetResultSize](https://docs.xbox.com/services/playfab/api-references/c/pfdata/functions/pfdatagetobjectsgetresultsize.md)
