• Nick Becker
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
Is there a way to retrieve last successfully processed replay id from a pushtopic subscription?  The main issue here is that there doesn't appear to be a replay option when subscribing to a stream to say "continue where we last left off," with the closest options being "all events in the last 24 hours" and "continue from _this_ replay id"...

I'm using the streaming API to implement real-time data synchronization between SF and our backend data stores.  If the backend service that subscribes to these pushtopics could be guaranteed to always run forever with no downtime, it might be ok, but reality is things happen, and even if they don't, updated versions of the service require that it be stopped temporarily.  When it resumes, I'd really love a way to avoid having to have stored the last successful replay id to pass to SF, but am curious what that workaround might be.  If I just say "give me everything in the last 24 hours", I'll need to implement something to de-dupe already processed messages, which is also not ideal, but, things seldom are.

Using the 'jsforce' module for a nodejs command line application on this one, using oauth username/password flow.