• coinfinder
  • NEWBIE
  • 0 Points
  • Member since 2005

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

Hi,

  I'm trying to retrieve "Standard User" from the Name field of the Profile object with the following query: "select Id, Name from Profile where Name = Standard User"  but that always complains about a malformed query. 

  So I tried "select Id, Name from Profile" and then cast the result into Profile objects, and then scan for a Profile with Name equal to "Standard User".   However, the contents of the Profile names are unexpecting:

PT1
Custom: Marketing Profile
Custom: Sales Profile
Custom: Support Profile 
PT2
PT3
PT4
PT5
PT6

  The Profile names represented by the PT# different for different logins, and so I cannot consistently select Standard User.  Any clues, hints?

Thanks,

Tan

  • April 21, 2004
  • Like
  • 0