• Franz Anthony Rodríguez Maraví
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
Hi,
I can't find anywhere the list of possible values for the LoginType field in the LoginHistory sobject.
In particularry, I don't understand the meaning of "Remote Access Client" value.
Thanks,
Uri

Hi,

 

I've written a test that creates a new user using the system admin profile. I select the proflie with this query in my test 

 

Profile p = [SELECT Id,Name FROM Profile WHERE Name='System Administrator'];

 

The problem is that if the running user is not english the profile name is different. So if I change my language setting and run the same test I get List has no rows for assignment to SObject because the Name is now 'Administrador del sistema'. So my question is, how can I select the standard System Administrator profile in my test in a way that is language independent? I thought I might be able to use the license key but the key is the same for all standard profile licenses. 

 

Thanks for any help!