Salesforce PubSub to EventHub or directly to Blob

UzarPiotr 26 Reputation points
2022-12-28T09:43:47.473+00:00

Hello

Does anyone have any idea how to get the data from Salesforce PubSub service into EvenHub or Directly into Blob?
I have made some research on Azure Web PubSub - but it looks like a server, not a client of PubSub

Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
555 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MartinJaffer-MSFT 26,011 Reputation points
    2022-12-30T18:25:30.08+00:00

    Hello @UzarPiotr ,
    Thanks for the question and using MS Q&A platform.

    As I understand you want to move events from Salesforce to blob storage or event hub.

    From looking at Salesforce PubSub document comparing PubSub and Streaming api:

    Subscription model PubSub: Pull-based—the client requests the number of events to receive as they become available in the event bus. Streaming: Push-based—the server delivers events as they become available in the event bus.

    You probably want the Streaming rather than the PubSub. EventHub is more about the streaming model. As blob storage is a passive component, it has nothing running to reach out and pull from the PubSub.

    If you are set on the PubSub, you need to write an event processor, which will pull from the Salesforce PubSub. You could use Azure Function or Logic app for event processor, I think.

    Another option, if I'm reading the Salesforce docs right, is to on the Salesforce side, write an Apex trigger to call the Azure Storage blob REST API and write the event directly like that.

    Please do let me if you have any queries.

    Thanks
    Martin


    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
      • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators
    0 comments No comments