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

# PartyInvitation::GetCreatorEntityId

> Gets the PlayFab Entity ID of the user that created this invitation or nullptr if this invitation was generated as part of a.

Gets the PlayFab Entity ID of the user that created this invitation or nullptr if this invitation was generated as part of a [PartyManager::CreateNewNetwork()](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_createnewnetwork) operation.

## Syntax

```cpp theme={null}
PartyError GetCreatorEntityId(  
    PartyString* entityId  
)  
```

### Parameters

**`entityId`**   [PartyString\*](/services/playfab/multiplayer/networking/reference/typedefs)\
*library-allocated output, may return nullptr*

The output Entity ID of the user that created this invitation, or nullptr.

### Return value

PartyError

`c_partyErrorSuccess` if the call succeeded or an error code otherwise. The human-readable form of the error code can be retrieved via [PartyManager::GetErrorMessage()](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_geterrormessage).

## Requirements

**Header:** Party.h

## See also

[PartyInvitation](/services/playfab/multiplayer/networking/reference/classes/PartyInvitation/partyinvitation)


## Related topics

- [PlayFab Party invitations and the security model](/services/playfab/multiplayer/networking/concepts-invitations-security-model.md)
- [PartyManager::CreateNewNetwork](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_createnewnetwork.md)
- [PartyInvitation](/services/playfab/multiplayer/networking/reference/classes/PartyInvitation/partyinvitation.md)
- [PartyInvitationConfiguration](/services/playfab/multiplayer/networking/reference/structs/partyinvitationconfiguration.md)
- [PartyInvitationRevocability](/services/playfab/multiplayer/networking/reference/enums/partyinvitationrevocability.md)
