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

# PartyCreateInvitationCompletedStateChange

> Information specific to the *CreateInvitationCompleted* type of state change.

Information specific to the *CreateInvitationCompleted* type of state change.

## Syntax

```cpp theme={null}
struct PartyCreateInvitationCompletedStateChange : PartyStateChange {  
    PartyStateChangeResult result;  
    PartyError errorDetail;  
    PartyNetwork* network;  
    PartyLocalUser* localUser;  
    void* asyncIdentifier;  
    PartyInvitation* invitation;  
}  
```

### Members

**`result`**   [PartyStateChangeResult](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/enums/partystatechangeresult.md)

Indicates that the [PartyNetwork::CreateInvitation()](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_createinvitation.md) operation succeeded or provides the reason that it failed.

**`errorDetail`**   PartyError

A diagnostic value providing additional troubleshooting information regarding any potential error condition.

The human-readable form of this error detail can be retrieved via [PartyManager::GetErrorMessage()](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_geterrormessage.md).

**`network`**   [PartyNetwork](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/partynetwork.md)\*

The network used in the call associated with this state change.

**`localUser`**   [PartyLocalUser](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyLocalUser/partylocaluser.md)\*

The local user that created the invitation.

**`asyncIdentifier`**   void\*

The async identifier provided to the call associated with this state change.

**`invitation`**   [PartyInvitation](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyInvitation/partyinvitation.md)\*

The invitation created for the network.

## Requirements

**Header:** Party.h

## See also

[Party members](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/party_members.md)\
[PartyNetwork::CreateInvitation](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_createinvitation.md)


## Related topics

- [PartyNetwork::CreateInvitation](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_createinvitation.md)
- [PlayFab Party invitations and the security model](https://docs.xbox.com/services/playfab/multiplayer/networking/concepts-invitations-security-model.md)
- [PartyStateChangeType](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/enums/partystatechangetype.md)
- [Party C/C++ API overview](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/party_members.md)
- [PartyCreateNewNetworkCompletedStateChange](https://docs.xbox.com/services/playfab/multiplayer/networking/reference/structs/partycreatenewnetworkcompletedstatechange.md)
