I'm using streaming API v 29.0 + restforce gem. I created a push topic and subscribed to changes.

If I create a record in Salseforce datebase via Salesforce web interface, I receive message when this record is deleted, if I create a record using REST API I don't receive any messages. But if I update any field of the record before deleting it, I'll receive delete message.

Do you have any ideas why I don't receive messages when delete a record created via API? Is it a sort of a bug?


What you describe does sound odd and perhaps on the face of it a bug, here are few things to consider if you have not done so already...

  • I did reviewed the Message Reliability topic in the docs and it does not say anything about not supporting the creation of events generated via REST API activity, which I'd personally be surprised if it did tbh. It does however state that you may not always get events depending on how often the client reconnects etc. So its worth reviewing what it says from that respect.

  • There is also some situations described in the Security section that may lead to events not being received that are worth checking as well, if your perhaps using a different user between your UI and API tests this could have an impact on things.

  • Finally the way in which the PushTopic events are expressed has changed between v28 and v29, so might be worth reviewing and if felt needed recreate your PushTopic using the new boolean event fields.

As regards raising a case with Salesforce i personally would aim to reproduce via the Workbench tool support for Streaming API they describe here. This approach may in fact yield new observations in respect to isolating the root of the problem.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.