• DuDu
  • NEWBIE
  • 0 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies

Hello,

 

I have this simple query:

 

public List<AccountShare> getAccountShares (){
        return [SELECT Account.Name, id, AccountAccessLevel, AccountId, RowCause, UserOrGroupId FROM AccountShare WHERE RowCause != 'Owner'];
    }

 However I'm not sure how to acess the related User/Queue name from the UserOrGroupId field. Do I need a wrapper class?

 

Thanks