Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Wednesday, February 19, 2025 
 
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!
 Web Forums - SalesLogix Web Platform & Application Architect
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.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: Create a User using a custom page
Claudia
Posts: 23
 
Create a User using a custom pageYour last visit to this thread was on 1/1/1970 12:00:00 AM
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?
[Reply][Quote]
 Page 1 of 1 
  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!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 2/19/2025 7:43:03 PM