Group: StrataFrame Developers
Posts: 6.6K,
Visits: 6.9K
|
OK...you are getting a NullReferenceException.
I am willing to bet that the login authentication failed. Try calling AuthenticateUser and passing over the SFSUSersBO to this method. The SFSUsersBO doesn't exist or is NULL when it gets to the CreateNew() method. I am not sure how you got there as there is a test around this, but in trying to troubleshoot, call the AuthenticateUser method instead of the SetLoggedInUser method and see if you can authenticate and get a populated SFSUsersBO. You can refer to the help docs for code samples:
Role-Based Security -> Defining Security within the Application -> Programmatic Access -> Login Class
|