You need to sign in to do that
Don't have an account?
pranav_sanvatsarkar
Variable does not exist: ConnectApi
Hello there,
I am trying to use ConnectAPI to implement some custom chatter functionality in my developer edition org. However, while trying to save the following code, I am getting the error, "Variable does not exist: ConnectApi"
This is the code that I am trying to deploy in a non-static public method in an Apex class.
I may be missing a very simple piece of prerequisite, however, not able to find the same on internet.
Thanks in advance!
I am trying to use ConnectAPI to implement some custom chatter functionality in my developer edition org. However, while trying to save the following code, I am getting the error, "Variable does not exist: ConnectApi"
This is the code that I am trying to deploy in a non-static public method in an Apex class.
ConnectApi.ChatterGroupInput groupInput = ConnectApi.ChatterGroupInput();
I may be missing a very simple piece of prerequisite, however, not able to find the same on internet.
Thanks in advance!
It looks like you're missing a "new" to the right of the "=".
You might also be interested in the answer to the question below, which has an answer that gives a ConnectApi example:
https://salesforce.stackexchange.com/questions/18666/how-to-dynamically-creating-chatter-groups-in-apex/18668
Good luck!
Beck
All Answers
Where the keyword "new" was missing!
Thanks for looking into this.
It looks like you're missing a "new" to the right of the "=".
You might also be interested in the answer to the question below, which has an answer that gives a ConnectApi example:
https://salesforce.stackexchange.com/questions/18666/how-to-dynamically-creating-chatter-groups-in-apex/18668
Good luck!
Beck