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 or upvote 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