• Samir
  • NEWBIE
  • 0 Points
  • Member since 2005

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 5
    Replies
Hi,
 
When we create a new lead manually, the email alert that has been setup gets triggered and sends out emails. But this does not happen when a new lead is created and assigned to the campaign thru code.
 
Has anyone come across this ?
 
Thanks,
Samir.
  • July 11, 2006
  • Like
  • 0
Hi,
 
When we create a new lead manually, the email alert that has been setup gets triggered and sends out emails. But this does not happen when a new lead is created and assigned to the campaign thru code.
 
Has anyone come across this ?
 
Thanks,
Samir.
  • July 11, 2006
  • Like
  • 0
Hello all,
 
We just went live with salesforce and I will be administering the application. We already have requirements for functionality that I believe will require scontrols. Which means I need to quickly learn javascript! Can anyone provide advice on training programs or other resources that I can use?
 
thanks!

I use the Eclipse deveopment environment and was testing a small java app to update a field in the Account object.  In the Eclipse enviornment the login is successful and the update to the Account object works.

I tried to run the app from a dos window using 'java' and I receive the message:

; nested exception is:
        java.lang.NullPointerException

I checked my classpath and the paths looked ok.  I went back and tried the quickstart.class and it is now happening to quickstart as well.  The exception that is being processed is the RemoteException.

The login code is the code from the quickstart sample.  The login code is below.

  private void doLogin() {
  if (userName.length() == 0 || pwd.length() == 0)
   return;
  else {
   try {
    binding = (SoapBindingStub) new SforceServiceLocator()
      .getSoap();
   } catch (ServiceException ex1) {
    System.out.println(ex1.getMessage());
    return;
   }
   try {
    lr = binding.login(userName, pwd);
   } catch (UnexpectedErrorFault ex2) {
    System.out.println(ex2.getExceptionMessage() + "\nUnexpected\n");
    return;
   } catch (LoginFault ex2) {
    System.out.println(ex2.getExceptionMessage() + "\nloginfault\n");
    return;
   } catch (RemoteException ex2) {
    System.out.println(ex2.getMessage() + "\nremote\n");
    return;
   }
   System.out.println("Login was successfull.");
   System.out.print("The returned session id is: ");
   System.out.println(lr.getSessionId());
   System.out.print("Your logged in user id is: ");
   System.out.println(lr.getUserId() + " \n\n");

   //on a successful login, you should always set up your session id
   //and the url for subsequent calls

   //reset the url endpoint property, this will cause subsequent calls
   //to made to the serverURL from the login result
   binding._setProperty(SoapBindingStub.ENDPOINT_ADDRESS_PROPERTY,
    lr.getServerUrl());

   //create a session head object
   _SessionHeader sh = new _SessionHeader();
   //set the sessionId property on the header object using
   //the value from the login result
   sh.setSessionId(lr.getSessionId());
   //add the header to the binding stub
                       String sforceURI = new SforceServiceLocator().getServiceName().getNamespaceURI();
   binding.setHeader(sforceURI, "SessionHeader", sh);
   return;
  }
 }

I thought maybe recompiling in the DOS window would work so I used 'javac' to recompile and still received the error.

What I don't understand is why the app runs correctly through the Eclipse environment but not in the DOS windows.

Any ideas?

Thanks.