• bbs3
  • NEWBIE
  • 5 Points
  • Member since 2005

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 11
    Replies
Hi,

sforce Explorer is written in C#.
Are there plans to port it to Java?

thanks
  • April 07, 2005
  • Like
  • 0

Hi,

I created a new field in Accounts entity and want to set it to 'Y/N' if LastModifiedDate is changed. 
How can I do it?

I don't see LastModifiedDate in the drop-down list when I am trying to create a new workflow rule. I do see LastModifiedById though. 
Also I am not sure if there is a way via workflow to set some values on some fields?

So I am wondering how can I create this trigger and whether it's possible to do it via salesforce UI through some customization? 
Is there any on-line documention on this subject?

Regards

 

  • March 04, 2005
  • Like
  • 0

Hi,

I downloaded and unzipped java_quickstart.zip and QuickStart5_0.zip.
And whenever I run quickstart.bat file (out of the box, from the command line), I get the following exception.

================================================

C:\sforce\quickstart>quickstart
1. Login
2. Get Accounts
3. Update Accounts
Enter a menu option: 1
User name: XXX
Password: XXX
; nested exception is:
        javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found

Here is my path and I didn't need to set classpath

C:\sforce\quickstart>echo %path%
C:\Program Files\Java\j2re1.4.2\bin;C:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\jikes\jikes-1.18\bin

=================================================

 

So I looked into SforceServiceLocator.java (line 14, 15) and it looks like (by default) the bind is happening from this url

// Use to get a proxy class for Soap
    private final java.lang.String Soap_address = "https://www.salesforce.com/services/Soap/c/5.0";
So I edited quickstart.java and in doLogin() method I do the following:

String userName = getUserInput("User name: ");
String pwd = getUserInput("Password: ");
  if (userName.length() == 0 || pwd.length() == 0)
   return;
  else {
   try {
                        java.lang.String Soap_address = "https//www.salesforce.com/services/Soap/c/5.0";
                        java.net.URL endpoint = new java.net.URL(Soap_address);
    binding = (SoapBindingStub) new SforceServiceLocator()
      .getSoap(endpoint);

   } catch (java.net.MalformedURLException e) {
                         System.out.println("MalformedURLException = "
                                            + e.getMessage());
                                e.printStackTrace();
                        return;
 
But now I get MalformedURLException

MalformedURLException = no protocol: https//www.salesforce.com/services/Soap/c/5.0
java.net.MalformedURLException: no protocol: https//www.salesforce.com/services/Soap/c/5.0
        at java.net.URL.(Unknown Source)
        at java.net.URL.(Unknown Source)
        at java.net.URL.(Unknown Source)
        at com.salesforce.quickstart.quickstart.doLogin(quickstart.java:187)
        at com.salesforce.quickstart.quickstart.mainLoop(quickstart.java:61)
        at com.salesforce.quickstart.quickstart.(quickstart.java:34)
        at com.salesforce.quickstart.quickstart.main(quickstart.java:30)

Any ideas what's going on?

Regards

  • February 28, 2005
  • Like
  • 0
I am unable to login using the APEX Explorer program because of the security token issue.  My IP is in the trusted network addresses.  I can login normally to SalesForce from my PC.  Why is the problem occuring thru APEX Explorer? 
 
Any ideas how to correct this?
I apoligize if this is a redundant post but I could not find a related topic. Is there a way (or planned to be a way in the future) to edit the Contract History for a Contract?

We are currently using an sforce Control so that we can assign multiple contacts to multiple contracts and would like to modify the Contract History (via API with the sforce Control) whenever a user is added/removed from this custom assignment.

Many thanks -

Don

Hi

I have at last managed to download sforce explorer but I am not an IT developer and would like to know if there are some layman's instructions. I use Sforce connector a great deal but need to expand it's functionality.  If someone could help it would be great.

Thanks

Liz

  • March 21, 2005
  • Like
  • 0

Hi

I m really trying this from many weeks but cant fing any way please help me !

I am trying to import -import com.sforce.soap.enterprise.SforceServiceLocator; along with the other API's of sforce

import javax.xml.rpc.ServiceException;

import org.w3c.dom.Element;

import com.sforce.soap.enterprise.DescribeGlobalResult;
import com.sforce.soap.enterprise.DescribeSObjectResult;
import com.sforce.soap.enterprise.Field;
import com.sforce.soap.enterprise.FieldType;
import com.sforce.soap.enterprise.GetUserInfoResult;
import com.sforce.soap.enterprise.ID;
import com.sforce.soap.enterprise.LoginResult;
import com.sforce.soap.enterprise.PicklistEntry;
import com.sforce.soap.enterprise.QueryResult;
import com.sforce.soap.enterprise.ResetPasswordResult;
import com.sforce.soap.enterprise.SaveResult;
import com.sforce.soap.enterprise.SetPasswordResult;
import com.sforce.soap.enterprise.SforceServiceLocator;
import com.sforce.soap.enterprise.SoapBindingStub;
import com.sforce.soap.enterprise._QueryOptions;
import com.sforce.soap.enterprise._SessionHeader;
import com.sforce.soap.enterprise.fault.ExceptionCode;
import com.sforce.soap.enterprise.fault.LoginFault;
import com.sforce.soap.enterprise.sobject.Account;
import com.sforce.soap.enterprise.sobject.Contact;
import com.sforce.soap.enterprise.sobject.SObject;
import com.sforce.soap.enterprise.sobject.Task;
import com.sforce.soap.enterprise.sobject.User;

 

and in one of my scripts i have written a function saying

String l1=getString(find("textfield3"),"text");
String l2=getString(find("textfield4"),"text");

//setString(find("textfield5"),"text","Loginm");
 SoapBindingStub binding = (SoapBindingStub) new SforceServiceLocator().getSoap();String ENDPOINT_ADDRESS_POINT="";
LoginResult loginResult = binding.login(l1,l2);
binding = (SoapBindingStub) new SforceServiceLocator().getSoap(new java.net. URL(loginResult.getServerUrl()));

binding._setProperty(ENDPOINT_ADDRESS_POINT,loginResult.getServerUrl());

setString(find("textfield5"),"text","Logine");

the problem that i m having is whenever i build it ..it builds successfully but on my application it displays loginm(on the textfield5 in my application) but not logine(on the textfield5 in my application) which means its not reconising the soapbinding but its going inside the file ....

  • March 18, 2005
  • Like
  • 0
Is there any other documentation on sforce development except API documentation? Thanks
  • March 18, 2005
  • Like
  • 0

Hi,

I created a new field in Accounts entity and want to set it to 'Y/N' if LastModifiedDate is changed. 
How can I do it?

I don't see LastModifiedDate in the drop-down list when I am trying to create a new workflow rule. I do see LastModifiedById though. 
Also I am not sure if there is a way via workflow to set some values on some fields?

So I am wondering how can I create this trigger and whether it's possible to do it via salesforce UI through some customization? 
Is there any on-line documention on this subject?

Regards

 

  • March 04, 2005
  • Like
  • 0

Hi,

   I am sorry i am new to salesforce.com and according to the instructions given in the quickstrat, I used wsdl2java to get all the source code files. My question is how do complie the source code files stored in the com directory. Can you pls help I will really appreciate..

Thank You,

Komal.

 

  • March 01, 2005
  • Like
  • 0

Hi,

I downloaded and unzipped java_quickstart.zip and QuickStart5_0.zip.
And whenever I run quickstart.bat file (out of the box, from the command line), I get the following exception.

================================================

C:\sforce\quickstart>quickstart
1. Login
2. Get Accounts
3. Update Accounts
Enter a menu option: 1
User name: XXX
Password: XXX
; nested exception is:
        javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found

Here is my path and I didn't need to set classpath

C:\sforce\quickstart>echo %path%
C:\Program Files\Java\j2re1.4.2\bin;C:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\jikes\jikes-1.18\bin

=================================================

 

So I looked into SforceServiceLocator.java (line 14, 15) and it looks like (by default) the bind is happening from this url

// Use to get a proxy class for Soap
    private final java.lang.String Soap_address = "https://www.salesforce.com/services/Soap/c/5.0";
So I edited quickstart.java and in doLogin() method I do the following:

String userName = getUserInput("User name: ");
String pwd = getUserInput("Password: ");
  if (userName.length() == 0 || pwd.length() == 0)
   return;
  else {
   try {
                        java.lang.String Soap_address = "https//www.salesforce.com/services/Soap/c/5.0";
                        java.net.URL endpoint = new java.net.URL(Soap_address);
    binding = (SoapBindingStub) new SforceServiceLocator()
      .getSoap(endpoint);

   } catch (java.net.MalformedURLException e) {
                         System.out.println("MalformedURLException = "
                                            + e.getMessage());
                                e.printStackTrace();
                        return;
 
But now I get MalformedURLException

MalformedURLException = no protocol: https//www.salesforce.com/services/Soap/c/5.0
java.net.MalformedURLException: no protocol: https//www.salesforce.com/services/Soap/c/5.0
        at java.net.URL.(Unknown Source)
        at java.net.URL.(Unknown Source)
        at java.net.URL.(Unknown Source)
        at com.salesforce.quickstart.quickstart.doLogin(quickstart.java:187)
        at com.salesforce.quickstart.quickstart.mainLoop(quickstart.java:61)
        at com.salesforce.quickstart.quickstart.(quickstart.java:34)
        at com.salesforce.quickstart.quickstart.main(quickstart.java:30)

Any ideas what's going on?

Regards

  • February 28, 2005
  • Like
  • 0