function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
JoshGuiJoshGui 

Streaming API with Salesforce Sites

Does anyone know if it is possible to use the new Streaming API with Sites?  I've got a working example going with a logged in user, getting push to a visualforce page.  It doesn't appear there is the ability to give the Sites User's profile read rights to the standard object "Push Topics."  

 

So I'm thinking this might be done using OAuth, and just seeing if anyone had any input on this?  

 

Thanks,

Josh

VinodMVinodM

You will need to create a new custom profile and turn on the READ access on PushTopic. You cannot do the same with standard profiles.

 

Vinod.

JoshGuiJoshGui

Hi Vinod,

 

Every Site created has  a special unauthenticated User with a Profile that cannot be changed, so it doesn't look that will work.  I am looking into using a Customer Portal license / user, that would then have login credentials for use with OAuth, but cannot find any documentation that states whether these users can be subscribed to Push Topics.