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

# PFInventoryGetInventoryCollectionIdsAsync

> Get Inventory Collection Ids. Up to 50 Ids can be returned at once (or 250 with response compression enabled). You can use continuation tokens to paginate.

Get Inventory Collection Ids. Up to 50 Ids can be returned at once (or 250 with response compression enabled). You can use continuation tokens to paginate through results that return greater than the limit. It can take a few seconds for new collection Ids to show up.

## Syntax

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

### Parameters

**`entityHandle`**   PFEntityHandle

PFEntityHandle to use for authentication.

**`request`**   [PFInventoryGetInventoryCollectionIdsRequest\*](/services/playfab/api-references/c/pfinventorytypes/structs/pfinventorygetinventorycollectionidsrequest)

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. Get a list of Inventory Collection Ids for the specified Entity. When the asynchronous task is complete, call [PFInventoryGetInventoryCollectionIdsGetResultSize](/services/playfab/api-references/c/pfinventory/functions/pfinventorygetinventorycollectionidsgetresultsize) and [PFInventoryGetInventoryCollectionIdsGetResult](/services/playfab/api-references/c/pfinventory/functions/pfinventorygetinventorycollectionidsgetresult) to get the result.

## Requirements

**Header:** PFInventory.h

## See also

[PFInventory members](/services/playfab/api-references/c/pfinventory/pfinventory_members)


## Related topics

- [PFInventoryGetInventoryCollectionIdsGetResult](/services/playfab/api-references/c/pfinventory/functions/pfinventorygetinventorycollectionidsgetresult.md)
- [Services C API overview - PFInventory.h](/services/playfab/api-references/c/pfinventory/pfinventory_members.md)
- [Inventory Collections](/services/playfab/economy-monetization/economy-v2/inventory/collections.md)
- [PFInventoryGetInventoryCollectionIdsRequest](/services/playfab/api-references/c/pfinventorytypes/structs/pfinventorygetinventorycollectionidsrequest.md)
- [PFInventoryGetInventoryCollectionIdsGetResultSize](/services/playfab/api-references/c/pfinventory/functions/pfinventorygetinventorycollectionidsgetresultsize.md)
