• Dave Seidman 48
  • NEWBIE
  • 0 Points
  • Member since 2017

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

I have problems using the IsPortalUser flag on the User object in Apex.

 

This line gives the error:

List<User>lstUsers=[select Id, IsActive, IsPortalEnabled from User where IsActive=true and IsPortalEnabled=true];

 

We are on Enterprise Edition with Customer Portal licenses in our org.

 

The select statement works in the Development Console and in the Eclipse Salesforce Schema query interface

 

Any ideas?

 

/Mats

  • November 12, 2013
  • Like
  • 0