We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [java]

Java is a computer programming language that is concurrent, class-based, object-oriented, and specifically designed to have as few implementation dependencies as possible.

Filter by
Sorted by
Tagged with
6
votes
1answer
4k views

Multi threading in SOAP API java client

Is it possible to do the multi-threading in java application while talking to Salesforce using SOAP APIs? I tried it myself and it seemed to work fine. But according to http://boards.developerforce....
2
votes
1answer
990 views

Making a request with permanent token within the SOAP header

I need to get some info via SOAP calls and I stick with one error. Right now I need to support two ways of sending SOAP calls: making a call with username-password params making a request with ...
3
votes
2answers
185 views

Why (referenceTos[0] != null) check is being performed in following code?

I was going through a salesforce.com developer documentation code // Iterate through the list of describe sObject results for (int i=0;i < describeSObjectResults.length; i++) { ...
4
votes
1answer
456 views

Is there a way to tell if a HTML hex colour is light or dark in Apex

I have a Visualforce Colorpicker that allows users to set a background-color. I have access to this in Apex as a string, e.g. '#FF0000'. I want to know if this String is a dark color or a light ...
2
votes
0answers
212 views

Placing external data onto Salesforce.com platform?

I've been trying to follow the link shown below to upload data via the bulk API tutorial from my external website onto the Salesforce.com platform: http://www.salesforce.com/us/developer/docs/...
0
votes
0answers
545 views

unable to create user with REST api email

Hi I am using REST API to create new USER, when i am extracting the meta data using the /services/data/v20.0/sobjects/User/describe the label for 'Email' field is shown as 'E-mail' whereas on ...
2
votes
1answer
667 views

How do I set an Account object's type with the Partner API?

I'm trying to use the partner API to upsert Account objects: SObject account = new SObject(); account.setType("Account"); // set some fields account.setField("Name", "Spacely Sprockets"); // write ...
1
vote
2answers
1k views

Rest API Session ID SOAP Partner Connection

I have a REST access token and would like to use that access token in my PartnerConnection ConnectionConfig to make a Bulk API call. It does not seem to work as I get an message to set my Service ...
4
votes
1answer
168 views

How expensive is isDone() in java metadata api

I found the following code example online: long waitTimeMilliSecs = ONE_SECOND; // After the create() call completes, we must poll the results of the checkStatus() // call until it ...
8
votes
1answer
4k views

REST API: How to update active values for picklist?

I need to update the Picklist values for a custom field on a custom object. I have already populated the Available Values via the Enterprise and Metadata Java APIs, but now I need to move the newly ...
0
votes
2answers
1k views

Creation of Batches from CSV resulting in erroneous state

I'm trying to make batches from a CSV file written using CSVWriter of opencsv as: CSVWriter writer = new CSVWriter(new FileWriter(filePath+createFileName), ',', CSVWriter.DEFAULT_QUOTE_CHARACTER); ...
3
votes
2answers
5k views

How to add a field using the SOAP or other API

I am using the SOAP API to load data for multiple SObject types into a completely new Developer sandbox. I have manually added external ids to many of the objects through the native interface so that ...