2/19/2025 6:59:05 PM
|
|
slxdeveloper.com Community Forums |
|
|
|
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
|
|
|
|
Create a User using a custom page
Posted: 24 Jan 08 4:28 PM
|
I made a custom page in the Lead Capture Portal. It is similar to the default Lead Capture page, but my page asks for the username and password of the lead to create a slx user. I tried to create the user the same way an account is created. But I get a SQL error. This the code I used:
IUser usr = Sage.Platform.EntityFactory.Create(); usr.UserPassword = txtLoginPassword.Text; usr.UserName = txtLogin.Text; usr.Save();
This is the error:
{"The statement has been terminated. : Cannot insert the value NULL into column 'DEFAULTSECCODEID', table 'saleslogix_eval.sysdba.USERSECURITY'; column does not allow nulls. INSERT fails."} {INSERT INTO sysdba.USERSECURITY (USERCODE, USERPW, ISMANAGER, USERID) VALUES (?, ?, 'F', ?)}
I don't know why is asking for the DEFAULTSECCODEID field. And I don't know how to set this value and the others to fulfill the fields require by the insert query.
Does any one know another way to create the user? or Can some one tell me how to make this code work? |
|
|
|
You can
subscribe to receive a daily forum digest in your
user profile. View the site code
of conduct for posting guidelines.
Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
|
|
|
|
|
|
|
|