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

# PFEntityGetTitleId

> Gets the titleId for the PFServiceConfig associated with an entity handle.

Gets the titleId for the PFServiceConfig associated with an entity handle.

## Syntax

```cpp theme={null}
HRESULT PFEntityGetTitleId(  
    PFEntityHandle entityHandle,  
    size_t titleIdSize,  
    char* titleIdBuffer,  
    size_t* titleIdUsed  
)  
```

### Parameters

**`entityHandle`**   PFEntityHandle

PFEntityHandle returned from a auth call.

**`titleIdSize`**   size\_t

Size of the provided buffer. Required size can be obtained via PFEntityGetAPIEndpointSize.

**`titleIdBuffer`**   char\*<br />**Out\_writes*(titleIdSize)*

Buffer the titleId string will be written to.

**`titleIdUsed`**   size\_t\*<br />*optional output*

The number of bytes used in the buffer including the null terminator.

### Return value

Type: HRESULT

Result code for this API operation.

## Requirements

**Header:** PFEntity.h

## See also

[PFEntity members](/services/playfab/api-references/c/pfentity/pfentity_members)
