You need to sign in to do that
Don't have an account?
Sexman
How to get the Community Name of an Idea in Apex?
"Ideas" is standard object wich has communities. Each idea belongs to one community. I wan't to know how to get the name of that community from the controller of my page.
Thanks :)
You can use SOQL Query in your controller code. Tryout the code given below :
Idea ida = [Select i.Community.Name, i.CommunityId From Idea i where id="idead id"];
Hope this helps.
All Answers
You can use SOQL Query in your controller code. Tryout the code given below :
Idea ida = [Select i.Community.Name, i.CommunityId From Idea i where id="idead id"];
Hope this helps.
Thanks!! It works =D