I have a trial account in Salesforce. I want to know if it is possible to create a user account in Salesforce programitically using the trial account. If yes, please share the link for the same.

Regards, Shelly

  • Do you mean can we create a User using Apex? Commented Feb 16, 2017 at 8:44
  • When you say a trial account do you mean an trial edition, if so which Salesforce edition is it on - enterprise. professional, etc
    – Dave Humm
    Commented Feb 16, 2017 at 8:50

1 Answer 1


we can create user through apex. here is the code.

User u = new user();
u.LastName = 'Test Code';
u.Email = '[email protected]';
u.Alias = 'Tcode';
u.Username = '[email protected]';
u.CommunityNickname = 'test12';
u.LocaleSidKey = 'en_US';
u.TimeZoneSidKey = 'GMT';
u.ProfileID = '00e90000000oyi5';
u.LanguageLocaleKey = 'en_US';
u.EmailEncodingKey = 'UTF-8';
insert u;

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .