+ Start a Discussion
moorecatsmoorecats 

Pushtopics - Streaming API

Hi 

 

I am playing around with the streaming api and am looking for some documentation on how to update a pushtopic and delete a pushtopic. I am having a little difficulty finding the right info. Any info would be appreciated. 

 

Thanks

Best Answer chosen by Admin (Salesforce Developers) 
Mohith Kumar ShrivastavaMohith Kumar Shrivastava

http://www.salesforce.com/us/developer/docs/api_streaming/index_Left.htm

 

Please refer the above link to find the complete guide 

 

To start use the following video

 

http://www.youtube.com/watch?v=B9embuc-xvM

 

 

 

 

All Answers

Mohith Kumar ShrivastavaMohith Kumar Shrivastava

http://www.salesforce.com/us/developer/docs/api_streaming/index_Left.htm

 

Please refer the above link to find the complete guide 

 

To start use the following video

 

http://www.youtube.com/watch?v=B9embuc-xvM

 

 

 

 

This was selected as the best answer
moorecatsmoorecats

I have been using the reference that you have, but I am missing the part where it talks about how to update a pushtopic.

Mohith Kumar ShrivastavaMohith Kumar Shrivastava

you can use update statement to update pushtopic.its like simple record insertion

moorecatsmoorecats

Sorry about being dense. I tried using update and it kept asking for an id. Do you have a code snippet? It would be much appreciated. 

Mohith Kumar ShrivastavaMohith Kumar Shrivastava
PushTopic pt = new PushTopic(Id='0IFD0000000008jOAA', IsActive = false);
update(pt);

 This i had used to inactivate.So you need ID for sure.Just get the ID of the Pushtopic from eclipse .I am sure its stored inside push topic table .