• tall jerome
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
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?
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?