title: Push data from Salesforce to Azure Service Bus
body: <p>i am looking for a solution for pushing data from salesforce to a azure service bus.</p>
  
  <p>That's what I found:</p>
  
  <pre><code>PushTopic pushTopic = new PushTopic();
  pushTopic.Name = 'InvoiceStatementUpdates';
  pushTopic.Query = 'SELECT Id, Name, Status__c, Description__c FROM Invoice_Statement__c';
  pushTopic.ApiVersion = 36.0;
  pushTopic.NotifyForOperationCreate = true;
  pushTopic.NotifyForOperationUpdate = true;
  pushTopic.NotifyForOperationUndelete = true;
  pushTopic.NotifyForOperationDelete = true;
  pushTopic.NotifyForFields = 'Referenced';
  insert pushTopic;
  </code></pre>
  
  <p>With this code I can create a PushTopic in Salesforce. If there is any change on <em>Invoice_Statement__c</em>, this topic will send the Id, Name, Status_c and Description_c to all Clients.</p>
  
  <p>The problem is that there is no guarantee that the Client is receiving all messages:</p>
  
  <blockquote>
    <p>Streaming servers don’t maintain any client state and don’t keep track
    of what’s delivered. The client may not receive messages for a variety
    of reasons...                   (<a href="https://developer.salesforce.com/docs/atlas.en-us.api_streaming.meta/api_streaming/using_streaming_api_stateless.htm" rel="nofollow">Source</a>)</p>
  </blockquote>
  
  <p>So I wonder if I could send this information (Id,Name...) to a azure service bus. I found this "Help": <a href="https://developer.salesforce.com/page/Connecting_Force.com_to_Azure_Service_Bus_Part2" rel="nofollow">https://developer.salesforce.com/page/Connecting_Force.com_to_Azure_Service_Bus_Part2</a>
  which did not solve my problem.</p>
  
  <p>I wonder if one of you did have the same problem I do.</p>
  
  <p>Hope someone could provide me (and all other guys and girls ;) ) a solution</p>