Newer Version Available
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.
1/topic/MyTopic?Industry='Energy'&ShippingCity='San Francisco'The PushTopic query for this subscription includes the Industry and ShippingCity fields.