> ## 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.

# PFDataSetObjectsAsync

> Sets objects on an entity's profile.

Sets objects on an entity's profile.

## Syntax

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

### Parameters

**`entityHandle`**   PFEntityHandle

PFEntityHandle to use for authentication.

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

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. Sets JSON objects on the requested entity profile. May include a version number to be used to perform optimistic concurrency operations during update. If the current version differs from the version in the request the request will be ignored. If no version is set on the request then the value will always be updated if the values differ. Using the version value does not guarantee a write though, ConcurrentEditError may still occur if multiple clients are attempting to update the same profile. See also ObjectGetObjectsAsync. When the asynchronous task is complete, call [PFDataSetObjectsGetResultSize](/services/playfab/api-references/c/pfdata/functions/pfdatasetobjectsgetresultsize) and [PFDataSetObjectsGetResult](/services/playfab/api-references/c/pfdata/functions/pfdatasetobjectsgetresult) to get the result.

## Requirements

**Header:** PFData.h

## See also

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


## Related topics

- [PFDataSetObjectsGetResult](/services/playfab/api-references/c/pfdata/functions/pfdatasetobjectsgetresult.md)
- [Services C API overview - PFData.h](/services/playfab/api-references/c/pfdata/pfdata_members.md)
- [PFDataGetObjectsAsync](/services/playfab/api-references/c/pfdata/functions/pfdatagetobjectsasync.md)
- [PFDataSetObjectsGetResultSize](/services/playfab/api-references/c/pfdata/functions/pfdatasetobjectsgetresultsize.md)
- [PFDataSetObject](/services/playfab/api-references/c/pfdatatypes/structs/pfdatasetobject.md)
