Skip to content

RenoFi/salesforce-pub-sub-api-rb

Repository files navigation

Pub/Sub API Ruby - CDC Salesforce example

This is a Pub/Sub API example made entirely in Ruby.

It provides the necessary to communicate with the Pub/Sub Salesforce API (Change Data Capture)

Setup

This section provides the necessary instructions to run the project as well as subscribe to a topic

The custom object that we are going to listen should already be set and created in SF.

You should perform actions like: create, edit, etc... through this created Custom Object in SF's UI

Commands

  1. cd to the cloned repo
  2. bundle install
  3. bin/console
irb:001 > example = Example::App.new
irb:002 > example.run

Subscribed to .... (topic name)

# events will appear here as soon as you perform any operations on the UI

Don't forget to add your own configurations in a new .env.local file. It's required to have it set with your SF configs/credentials

Useful documentation

  1. Change Data Capture docs
  2. How to create a subscription
  3. Pub/Sub API GitHub Repo
  4. Demo video on how Pub/Sub API works
  5. What is gRPC?
  6. Pub/Sub API developer documentation

About

POC pub/sub CDC for ruby

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages