You need to sign in to do that
Don't have an account?
tall jerome
Is the Community ID available in Apex?
We have an app that posts to Chatter when it performs a certain function and we're porting this to work in Communities. The one thing we're stuck on is how to set the FeedItem.NetworkScope for the Community from which the FeedItem is being posted.
Is there a way to obtain the Community ID in Apex so that we can set it as the NetworkScope?
Is there a way to obtain the Community ID in Apex so that we can set it as the NetworkScope?
I'd suggest you post your code so a developer can help you.
Documentation:
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_System_Network_getNetworkId.htm
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_network.htm#apex_classes_network