You need to sign in to do that
Don't have an account?
zgcharley_09
The problem of activation to my account
Hello,
I received the mail that my account has been activated for Streaming API. I checked the Setup -> Customize -> User Interface and found the "Streaming API" is enable. However, i got error when I executed query string "Select Name From PushTopic" through my client.
Error info:
[ INVALID_TYPE: sObject type 'PushTopic' is not supported. ].
What's the status of my account? Has been activated for Streaming?
Thanks
zg
You can select this information, but you need to make sure you are using version 22.0 of the API.
E.g. when executing the following:
If I execute anonymous from the force.com IDE (eclipse), this is still at version 21.0, so I receive the following error:
However, executing from the system log runs at API 22.0, so I see the following debug output:
All Answers
I don't think YOU can do the select yourself directly.
did you try the samples?
Actually, I didn't select the 'Enable' checkbox by myself. It is in checked status when I opeing the 'User Interface'
no.. you said you did "Select Name From PushTopic".. that is not how this feature works.
you save a soql stmt and some parameters to a PushTopic item. Those are hidden from normal apex code.
when you 'subscribe' to a topic, by name, then salesforce uses the information to do the notification work.
I think you can only Insert or Delete a PushTopic.
You can select this information, but you need to make sure you are using version 22.0 of the API.
E.g. when executing the following:
If I execute anonymous from the force.com IDE (eclipse), this is still at version 21.0, so I receive the following error:
However, executing from the system log runs at API 22.0, so I see the following debug output:
You are right. i forgot to upgrade the API to 22.0. Now, there's no error when I selecting the name from PushTopic with 22.0 API. For I don't create any PushTopic object yet so the result is 0(zero) record. I think it's correct.
Thanks for your reminder
You're also helpful posting and writting. Your can attempt DuplicateFilesDeleter program, straightforward, quick and takes care of the issue.
Thank you