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

# PFEventPipelineEmitEvent

> Adds a event to a pipelines buffer to be uploaded. The API will return synchronously and the event will be uploaded in the background based on the pipeline.

Adds a event to a pipelines buffer to be uploaded. The API will return synchronously and the event will be uploaded in the background based on the pipeline configuration.

## Syntax

```cpp theme={null}
HRESULT PFEventPipelineEmitEvent(  
    PFEventPipelineHandle eventPipelineHandle,  
    PFEvent event  
)  
```

### Parameters

**`eventPipelineHandle`**   PFEventPipelineHandle

The EventPipeline to submit the event to.

**`event`**   [PFEvent](/services/playfab/api-references/c/pfeventpipeline/structs/pfevent)

Event to upload.

### Return value

Type: HRESULT

Result code for this API operation. Possible values are S\_OK, E\_PF\_NOT\_INITIALIZED, or E\_FAIL.

## Requirements

**Header:** PFEventPipeline.h

## See also

[PFEventPipeline members](/services/playfab/api-references/c/pfeventpipeline/pfeventpipeline_members)


## Related topics

- [Event Pipeline Tutorial](/services/playfab/sdks/c/event-pipeline/eventpipeline-tutorial.md)
- [PFEventPipelineBatchUploadFailedEventHandler](/services/playfab/api-references/c/pfeventpipeline/functions/pfeventpipelinebatchuploadfailedeventhandler.md)
- [PlayFab Services SDK - Event Pipeline](/services/playfab/sdks/c/event-pipeline/eventpipeline.md)
- [Services C API overview - PFEventPipeline.h](/services/playfab/api-references/c/pfeventpipeline/pfeventpipeline_members.md)
- [PFEventPipelineConfig](/services/playfab/api-references/c/pfeventpipeline/structs/pfeventpipelineconfig.md)
