---
schema_version: "1"
id: f956b9efa4ad204f1e5a6e31d306755a51aad0437d630d19bb82e15191ad34e3
title: StreamingChannel
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_streamingchannel.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_streamingchannel.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 6d8638918163eb0db1f718126c3e8703984329ab9a16b118db11988363c1c831
description: Represents a channel that is the basis for notifying listeners of generic Streaming API events. This object is available in API version 29.0 and later.
---
# StreamingChannel

Represents a channel that is the basis for notifying listeners of generic Streaming API events. This object is available in API version 29.0 and later.

## Supported Calls

create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), undelete(), update(), upsert()

## Special Access Rules

- This object is available only if Streaming API is enabled for your org.
- Users with the Create permission can create this record.
- You can create a permission set and grant users read and create access to all streaming channels in the org. This access isn’t for a specific channel, like with user sharing.
- You can apply user sharing to StreamingChannel. You can restrict access to receiving or sending events on a channel by sharing channels with specific users or groups. Channels shared with public read-only or read-write access send events only to clients subscribed to the channel that also are using a user session associated with the set of shared users or groups. Only users with read-write access to a shared channel can generate events on the channel, or modify the actual StreamingChannel record.

## Fields

| Field | Details |
| --- | --- |
| Description | 
Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

Description of the StreamingChannel. Limit: 255 characters.

**Label:** Description





 |
| IsDynamic | 

Type

boolean

Properties

Defaulted on create, Filter, Group, Sort

Description

true if the channel gets dynamically created on subscribe if necessary, false otherwise.



 |
| LastReferencedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The timestamp when the current user last interacted with this record, directly or indirectly.



 |
| LastViewedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The timestamp when the current user last viewed this record or list view. If this value is null, it's possible that the user only accessed this record or list view (LastReferencedDate), but not viewed it.



 |
| Name | 

Type

string

Properties

Create, Filter, Group, idLookup, Sort, Update

Description

Required. Descriptive name of the streaming channel. Limit: 80 characters, alphanumeric and “\_”, “/” characters only. Must start with “/u/”. This value identifies the channel and must be unique.

**Label:** Streaming Channel Name





 |
| OwnerId | 

Type

reference

Properties

Create, Defaulted on create, Filter, Group, Sort, Update

Description

The ID of the owner of the streaming channel.

**Label:** Owner Name

This is a polymorphic relationship field.

Relationship Name

Owner

Relationship Type

Lookup

Refers To

Group, User



 |

## Dynamic Streaming Channel

Streaming API generic streaming supports dynamic streaming channel creation, which creates a StreamingChannel when a client first subscribes to the channel. To enable dynamic streaming channels in your org, from Setup, enter User Interface in the Quick Find box, then select **User Interface**. Enable **Enable Dynamic Streaming Channel Creation**. You can also enable dynamic channel creation in Metadata API using EventSettings.

#### See Also

- [_Streaming API Developer Guide_](https://developer.salesforce.com/docs/atlas.en-us.264.0.api_streaming.meta/api_streaming/intro_stream.htm "
    Streaming API Developer Guide
    - HTML (New Window)")