function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
wylieatworknzwylieatworknz 

Create new user from contact

Hi there,
 
We have all of our employees as contacts in SFDC.  What we would like to do is create a custom link that will create a new user record and prepopulate the user fields with fields from the employee. 
 
Can anyone tell me please what the field ids are for the user object - or suggest another way to do this?
 
Thanks!
wylieatworknzwylieatworknz

It's OK - I found them (and listed them below if anyone else is interested)

 

First Namename_firstName
Last Namename_lastName
Rolerole
Profile License TypeProfileLicenseType
AliasAlias
ProfileProfile
EmailEmail
ActiveActive
UsernameUsername
Marketing UserUserPermissions_0
Delegated Approverworkflow_proxy_lkid
workflow_proxy_lkold
workflow_proxy_lktp
workflow_proxy_lspf
workflow_proxy_mod
workflow_proxy
workflow_proxy_lkwgt
Offline UserUserPermissions_1
TitleTitle
Sales Anywhere UserUserPermissions_4
CompanyCompanyName
Accessibility Modeaccessible_mode
DepartmentDepartment
Allow forecastingforecast_enabled
DivisionDivision
PhonePhone
ExtensionExtension
FaxFax
Mobile PhoneMobilePhone
Email EncodingEmailEncodingKey
Employee NumberEmployeeNumber
StreetAddressstreet
CityAddresscity
State/ProvinceAddressstate
Zip/Postal CodeAddresszip
CountryAddresscountry
Time ZoneTimeZoneSidKey
LocaleLocaleSidKey
LanguageLanguageLocaleKey
Receive the Salesforce newsletterinfo_email
Receive the Salesforce administrator newsletterinfo_email_admin
Generate new password and notify usernew_password

GergGerg
I'd be interested in the exact same link.  Did you follow through with creating this?  Care to share what you learned?
rtuttlertuttle

After finding this I played around with it a bit so I could use this info later.  Here is an example of how to use the parameters:

 

https://cs1.salesforce.com/005/e?name_firstName=Steve&name_lastName=Stevenson

 

You can see that you can just append &fieldname=value for any other values you want to add.  If you're not familiar with passing GET parameters, it's simple, just remember after the page (https://cs1.salesforce.com/005/e) you add a question mark to indicate you're passing params.  Then you pass the param=value.  To add more you then use the ampersand for each additional param.

 

Hope it helps someone.

 

 

-Richard