You need to sign in to do that
Don't have an account?

How should a Streaming API PushTopic be created so that updates to individual fields in the query result in a notification
I have created a PushTopic as below:
{
"Name" : "contact_with_notify",
"Query" : "SELECT Id, LastName, FirstName, Phone from Contact",
"ApiVersion" : 32.0,
"NotifyForOperationCreate" : true,
"NotifyForOperationUpdate" : true,
"NotifyForOperationUndelete" : true,
"NotifyForOperationDelete" : true,
"NotifyForFields" : "SELECT"
}
but no matter what value I set for 'NotifyForFields', subscriptions to this topic only receive notifications when every field in the topic query is changed. How do I modify query so that a notification is sent when ONE field in query changes? Or do I need a topic per field?
{
"Name" : "contact_with_notify",
"Query" : "SELECT Id, LastName, FirstName, Phone from Contact",
"ApiVersion" : 32.0,
"NotifyForOperationCreate" : true,
"NotifyForOperationUpdate" : true,
"NotifyForOperationUndelete" : true,
"NotifyForOperationDelete" : true,
"NotifyForFields" : "SELECT"
}
but no matter what value I set for 'NotifyForFields', subscriptions to this topic only receive notifications when every field in the topic query is changed. How do I modify query so that a notification is sent when ONE field in query changes? Or do I need a topic per field?
you should not use 'All' as it will cause the notification to trigger for other field changes that are not in select clause. you can try not setting the "NotifyForFields" itself, which will default it to 'Referenced', or you can try using case sensitive 'Select'. I don't think you need to create topic per field
https://success.salesforce.com/ideaView?id=08730000000DgpVAAS (https://success.salesforce.com/ideaView?id=08730000000DgpVAAS" target="_blank)