• sfDeveloper
  • NEWBIE
  • 0 Points
  • Member since 2003

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 10
    Questions
  • 13
    Replies

Hello,

Is there any way to make a report of Notes in salesforce ??

 

sfDeveloper

Hello,

I have this code for the logout call:

If I call this methode I get this error:

 

XmlRpcException : unknown method name logout code : 1113

 

Kan anybody helps me ??

 

Kind regards,

sfDeveloper

 

 

public void logOutSalesforce()

      {

            Hashtable param=new Hashtable();

            param.put("version",this.getVersion());

           

            Vector params=new Vector();

            params.add(param);

            try

            {

                  this.xmlRpcClient.setSessionId(this.getSessionId());

                  this.xmlRpcLogin.execute("sfdc.logout", params);

                  this.setConnected(false);

            }

            catch(XmlRpcException ex)

            {

                  String fout = " XmlRpcException : " + ex.getMessage() + " code : " + String.valueOf(ex.code);

                  MyLogger.Log(fout);

            }

            catch(IOException ex)

            {

                  String fout = " IOException : " + ex.getMessage();

                  MyLogger.Log(fout);

            }

      } // end of logout method

 

Hi,

I have 2 questions:

 

(1) Is there any way to disable the Delete button on the user interface ??

 

(2) The accounts in my Salesforce have "Public/Read" access rule. This access is assigned to the creator of the account. So when another user wants to view the account it only has read-access. However when a user wants to insert Notes, he can only do this when he is the creator of the account. When he is not, he can not edit anything. I'd like to make an exception for this concerning inserting Notes. But I'd like to do this without changing the access rule. How can I do this?

 

Thank you,

sfDeveloper

 

Hello all,

 

Now I have an other issue :

 

The first time I got started with sForce I've received java samples with the helma.xmlrpc from the support of sForce. It works perfectly. After a while I found out that the helma is out of date and there is a new version on <http://ws.apache.org/xmlrpc/>. The new xmlrpc classes are now called "org.apache.xmlrpc".


So I've downloaded the new version and I replaced the import form (import elma.xmlrpc.*) into (import org.apache.xmlrpc.*).

After that al my sForce code fails, because the new xmlrpcClient class doesn't have the method:
instanceOfxmlrpcClient.setSessionId(
"the returned session_id from login call");

And as you know before every call in sForce the xmlrpcClient needs the session_id except the login call.

I wish to use the new version of xmlrpc, but how should I solve the session_id problem. I'm sure there is some way to let the xmlrpcClient know what the sessionId is.

Would somebody help me with a code example (Java wil xmlrpc)?

 

Thank you.
sfDeveloper

Hi all,

 

As you know, the login call returnes "session_id", "server_url" and "userID". After executing this login call, the server_url is always empty (has a null value).

My first question is:  Why is the returned server_url empty ??

I read in one of the messages in the community that the server_url is needed for all Api calls except the login call.

My second question is : How do I assign the server_url to an other call? (Note: describe/query and insert calls do not require any server-url).  

Thank you, sfDeveloper

****************************************************** this is my code

public static void main(String arg [])

throws MalformedURLException

{

  ...

 

  XmlRpcClient rpcClient=new XmlRpcClient("https://emea.salesforce.com/servlet/servlet.Api");

  Hashtable param=new Hashtable();

  param.put("username","MyUserName");

  param.put("password", "MyPassword");

  param.put("version", "2.0");

  java.lang.Boolean secure=new Boolean(true);

  param.put("secure", secure);

  Vector params=new Vector();

  params.add(param);

 

Object result=null;

Hashtable hashResult=null;

try

{

  result= rpcClient.execute("sfdc.login",params);

  hashResult=(Hashtable)result;

  Enumeration enu = hashResult.keys();

  while(enu.hasMoreElements())

  {

    String key=(String)enu.nextElement();

    printMsg("\t" + key + " = " + hashResult.get(key));

  }

}

 

catch(XmlRpcException ex)

{

  printMsg("FATAL : "+ex.toString());

  printMsg("FATAL Exception code: "+ex.code);

  ex.printStackTrace();

}

catch(IOException ex)

{

  printMsg("FATAL Exception : "+ex.toString());

  ex.printStackTrace();

}

....

}

Hello,

I'm trying to insert an opportunity via the API. The amount field has a double data type. In my code I have a double variable with the value 1000, just like this:  

double a=1000;

When I excute the insert call with the parameter above, I get this error:

XMLException: helma.xmlrpc.XmlRpcException: Value 1000.0 not of required type double on field amountcode: 1212

I don't why, my parameter "a" has the right data type, so why is my code not working ??

Regards,

sfDeveloper

 

Hello,

Is it possible to excute this query call ??

SELECT name, id FROM account WHERE lastModifiedDate > createdDate;

U can see that I don't give a specified value for lastModifiedDate but I compair it with createdDate filed. If I excute this call, I get an error !!

sfDeveloper

 

Hi,

I use at this moment API 2.0. In the documentation I read that it is possible to query records that modified since a given date. (scope = updated, ifModifiedSince= "a date",  no filter, no select, no idList, no maxRows and no useCaseSafeIDs).

Well, if I run my program, I get t error number "1213" and it means Functionality is currently disabled.

I wonder Why ?? and How can I get this functionality back ??

Regards,

sfDeveleoper

 

 

 

 

Hi,

I've added a new field in the Account table and it is called "Account Updated". 

I want this field to get a value when any account is updated by a salesforce user using the userinterface.

I wonder if I can do this using the API ? !  !

Do I have access to this event (after clicking on the Save button) ???

Thank you

sfDeveloper

Hi,

Could anybody find where I can download the xml-rpc implementation? 

Can I use Eclipse as a tool kit instead of the Java toolkit? Are there any requirements?

 

sfDeveloper

 

Hello,

I have this code for the logout call:

If I call this methode I get this error:

 

XmlRpcException : unknown method name logout code : 1113

 

Kan anybody helps me ??

 

Kind regards,

sfDeveloper

 

 

public void logOutSalesforce()

      {

            Hashtable param=new Hashtable();

            param.put("version",this.getVersion());

           

            Vector params=new Vector();

            params.add(param);

            try

            {

                  this.xmlRpcClient.setSessionId(this.getSessionId());

                  this.xmlRpcLogin.execute("sfdc.logout", params);

                  this.setConnected(false);

            }

            catch(XmlRpcException ex)

            {

                  String fout = " XmlRpcException : " + ex.getMessage() + " code : " + String.valueOf(ex.code);

                  MyLogger.Log(fout);

            }

            catch(IOException ex)

            {

                  String fout = " IOException : " + ex.getMessage();

                  MyLogger.Log(fout);

            }

      } // end of logout method

 

Hello all,

 

Now I have an other issue :

 

The first time I got started with sForce I've received java samples with the helma.xmlrpc from the support of sForce. It works perfectly. After a while I found out that the helma is out of date and there is a new version on <http://ws.apache.org/xmlrpc/>. The new xmlrpc classes are now called "org.apache.xmlrpc".


So I've downloaded the new version and I replaced the import form (import elma.xmlrpc.*) into (import org.apache.xmlrpc.*).

After that al my sForce code fails, because the new xmlrpcClient class doesn't have the method:
instanceOfxmlrpcClient.setSessionId(
"the returned session_id from login call");

And as you know before every call in sForce the xmlrpcClient needs the session_id except the login call.

I wish to use the new version of xmlrpc, but how should I solve the session_id problem. I'm sure there is some way to let the xmlrpcClient know what the sessionId is.

Would somebody help me with a code example (Java wil xmlrpc)?

 

Thank you.
sfDeveloper

Hi all,

 

As you know, the login call returnes "session_id", "server_url" and "userID". After executing this login call, the server_url is always empty (has a null value).

My first question is:  Why is the returned server_url empty ??

I read in one of the messages in the community that the server_url is needed for all Api calls except the login call.

My second question is : How do I assign the server_url to an other call? (Note: describe/query and insert calls do not require any server-url).  

Thank you, sfDeveloper

****************************************************** this is my code

public static void main(String arg [])

throws MalformedURLException

{

  ...

 

  XmlRpcClient rpcClient=new XmlRpcClient("https://emea.salesforce.com/servlet/servlet.Api");

  Hashtable param=new Hashtable();

  param.put("username","MyUserName");

  param.put("password", "MyPassword");

  param.put("version", "2.0");

  java.lang.Boolean secure=new Boolean(true);

  param.put("secure", secure);

  Vector params=new Vector();

  params.add(param);

 

Object result=null;

Hashtable hashResult=null;

try

{

  result= rpcClient.execute("sfdc.login",params);

  hashResult=(Hashtable)result;

  Enumeration enu = hashResult.keys();

  while(enu.hasMoreElements())

  {

    String key=(String)enu.nextElement();

    printMsg("\t" + key + " = " + hashResult.get(key));

  }

}

 

catch(XmlRpcException ex)

{

  printMsg("FATAL : "+ex.toString());

  printMsg("FATAL Exception code: "+ex.code);

  ex.printStackTrace();

}

catch(IOException ex)

{

  printMsg("FATAL Exception : "+ex.toString());

  ex.printStackTrace();

}

....

}

Hello,

I'm trying to insert an opportunity via the API. The amount field has a double data type. In my code I have a double variable with the value 1000, just like this:  

double a=1000;

When I excute the insert call with the parameter above, I get this error:

XMLException: helma.xmlrpc.XmlRpcException: Value 1000.0 not of required type double on field amountcode: 1212

I don't why, my parameter "a" has the right data type, so why is my code not working ??

Regards,

sfDeveloper

 

Hi,

I use at this moment API 2.0. In the documentation I read that it is possible to query records that modified since a given date. (scope = updated, ifModifiedSince= "a date",  no filter, no select, no idList, no maxRows and no useCaseSafeIDs).

Well, if I run my program, I get t error number "1213" and it means Functionality is currently disabled.

I wonder Why ?? and How can I get this functionality back ??

Regards,

sfDeveleoper

 

 

 

Hi,

Could anybody find where I can download the xml-rpc implementation? 

Can I use Eclipse as a tool kit instead of the Java toolkit? Are there any requirements?

 

sfDeveloper

 

perhaps the most exciting feature of S3 for our support team, but I cannot find the link ?

from the help:

Installing Outlook Edition

To download and install Outlook Edition:

  1. Shut down Outlook before beginning the installation.
  2. Click My Setup | Personal Setup | Outlook Edition.
  3. Click Install Now.


I'm not able to find the link "Outlook Edition" in my presonal setup??

i've opened a case in self serv...