Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Filtered Subscriptions
Specify the filter criteria in an expression you append to the subscription URI, as follows.
/topic/TopicName?<expression>
TopicName is the PushTopic name, and <expression> is the expression containing one or more conditions. Join conditions with the & operator. Only the & operator is supported. Use this syntax for the <expression>.
?fieldA=valueA&fieldB=valueB&...
Include each field used in a filter condition in the PushTopic query. The & operator acts like the logical OR operator, so record events are matched if any condition is true.
Example
This subscription returns event notifications for records whose industry is Energy or shipping city is San Francisco.
The PushTopic query for this subscription includes the Industry and ShippingCity fields.