2

Is there any documentation that says what streaming channels are allowed for communities?

(Note that in communities lightning-emp-api methods such as isEmpEnabled never resolve but it is possible to directly load and use CometD JavaScript.)

I'd like to use a StreamingChannel because that includes user id filtering. But using Comet D JavaScript for a "Customer Community Login" licensed user the response is:

{
    "clientId":"1n01i4ijc3vw89e11fi7leljv7xr2",
    "channel":"/meta/subscribe",
    "id":"2",
    "subscription":"/u/CvcpProgress",
    "error":"403::No access on channel",
    "successful":false
}

which is documented to mean:

The generic streaming channel can’t be accessed because the user doesn’t have permissions on the StreamingChannel object.

That object is not present in the profile, and granting rights through a permission set is not allowed:

The user license doesn't allow the permission: Read Streaming Channels

Trying a Platform Event "/event/cvcp__ProgressEvent__c" the subscribe works:

{
    "clientId":"1njst1mjwlem9r8t7qy9p8l9409",
    "channel":"/meta/subscribe",
    "id":"2",
    "subscription":"/event/cvcp__ProgressEvent__e",
    "successful":true
}

and the published values are received, but there is no user id filtering for this case. But perhaps this is my only option?

2
0

look heroku node.js with streaming channels https://developer.salesforce.com/blogs/2021/08/how-to-work-within-platform-events-delivery-limits

New contributor
Claudio Santander is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
2
  • 2
    Welcome to Salesforce SE! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
    – identigral
    2 days ago
  • 1
    I second @identigral 's motion. Plus from the Why and how are some answers deleted? section of the Help Center: 'Answers that do not fundamentally answer the question may be removed. This includes answers that are: ... -barely more than a link to an external site'.
    – Moonpie
    2 days ago

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.