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
Vivek ManchandaVivek Manchanda 

Problem in Login in Sand Box using Flex?

Hi All

I want to login in Sand box through Flex

But the Problem is I am not able to do that  Do I have to used some thing Else .

The Codes which I am using to login are

"private function login():void
            {
                    SFCON.login( new LoginRequest({
                    server_url:this.parameters.server_url,
                    session_id:this.parameters.session_id,
                    username:'USERNAME',
                    password : 'PASSWORD',
                    callback:new AsyncResponder(query)
                })
               );
            }"

By using this codes I am not able to login .

Plz tell me some other way .

Thanks
Vivek Manchanda


Colin LoretzColin Loretz
I too am having this issue.
 
 
I can login with my standard sf name myLogin@login.com but not myLogin@login.com.mysandbox
 
Am I missing anything?
 
Code:
private function login():void
 { 
  var lr:LoginRequest = new LoginRequest;

  lr.username = myLogin@login.com.mysandbox;
  lr.password = "mypassword";
  lr.server_url = "http://tapp0.salesforce.com/services/Soap/u/9.0";
  
  lr.callback = new AsyncResponder(loginResult, loginFault);
     
  apex.login(lr);     
 }

 Thanks