The tag has no wiki summary.

learn more… | top users | synonyms

5
votes
0answers
20 views

How do I use Salesforce connector with a Spring component?

I am using Mule standalone 3.4. I am trying to create a flow using the Salesforce connector to perform a query operation and then pass the payload to a spring component. The result is the component ...
2
votes
3answers
44 views

Need to create a button/link to use SSO into ServiceNow

Trying to create button/link to log into ServiceNow using the user's email address: Basically the link has to be crafted to pass 1) the email address of the person already logged in and 2) a ...
4
votes
1answer
54 views

Using Java and Spring to integrate with Salesforce REST APIs

I want to send information from our webapp (using Java and Spring) to the Salesforce REST APIs. I'm looking for an up-to-date example of how to use Spring Security to authenticate with OAuth to the ...
4
votes
1answer
35 views

How to retrieve a value from a parent field with SOQL via partner API in java

I have a parent-child relationship with timesheets relating to users. I am trying to retrieve an Employment ID field from the parent record with SOQL and this is my query, where the UserID is a field ...
2
votes
1answer
27 views

Cannot set value on checkbox using sObject via Partner API using Java

I get an error when I try to set a checkbox with the Salesforce Partner API. I have tried different combinations, but I get the error that an Object is required. Confirmed__c is a checkbox and this ...
5
votes
2answers
53 views

java.sql.SQLException error caused by OpportunityLineItem DML request

In our Salesforce.com organization, we have a trigger on the OpportunityLineItem object (insert/update), automatically generating OpportunityLineItemSchedule. The product is schedule by revenue, ...
6
votes
4answers
130 views

Oauth for Java native app

I have a Java native app I am trying to implement Oauth for. I have gone thru this article by Pat Patterson: http://wiki.developerforce.com/page/Digging_Deeper_into_OAuth_2.0_on_Force.com I am a ...
6
votes
2answers
74 views

Create a record in an object with lookup fields through java soap

I am pretty new with Salesforce and I am doing an integration where I have to update Salesforce with data from a Business System. I have a problem when trying to create new records in an object with ...
5
votes
3answers
311 views

Pass a string variable from controller into the Javascript function

I have a method which returns a Yes or No String depending on it's outcome. The method is inside a standard controller extension. How do I pass the returned String into a function on the page in ...
1
vote
1answer
71 views

Need sample code on bulk api, for beginners [closed]

Can any one plz help me in understanding and implementing Bulk API. Can i get a small sample code which clearly demonstrates how bulk API works. I am totally new to this. (I have initially worked ...
6
votes
1answer
84 views

Updating Profile for Record Types: using Metadata API

So far I'm able to create the Record Type for an object using Java. For the object requiring only 1 Record Type using Java: (the upserts are going fine) - If I'm to create only one record Type per ...
3
votes
1answer
129 views

Using Salesforce Partner API from community portal

I've created a custom button on the opportunity layout which calls out to an external java app. It passes the session id and the partner API URL. The external app then creates a SOAP binding ...
3
votes
1answer
60 views

Force.com IDE for OSX - Where to configure VM settings?

We have one developer that upgraded to mountain lion and it installed jdk 1.7, we installed 1.6, and configured the softlinks, but when force.com ide starts up it has vm set to the Frameworks folder ...
2
votes
1answer
216 views

com.sforce.ws.SoapFaultException: No operation available for request {http://soap.sforce.com/2006/08/apex}executeAnonymous

Hi I am trying to write a simple command line java program to execute anonymous apex. I found a couple of examples that dont quite compile and am trying to put them together. Here is what I have ...
3
votes
2answers
61 views

Moving Salesforce data into Heroku Java app for LDV processing?

I have read a few blog posts about moving parts of an app into a Ruby Heroku app, but no example for moving data between a Salesforce org and a custom Java app on Heroku. Do you know of any in posts ...
0
votes
0answers
86 views

Adding Attacment to an Account in salesforce

I am trying add a attachment to a account in salesforce ,when i specify the path name I am getting invalid escape sequence .File f = new File("C:\Users\SONY\Desktop\map.txt"); this is the code piece ...
2
votes
1answer
56 views

Getting error with Enterprise API: Illegal assignment from list to list?

Integrating salesforce with salesforce using Enterprise wsdl and and it's api's.While doing that I have got an error. I am using records property and assigning to sobject array so that I can loop ...
2
votes
1answer
62 views

Know which objects have “Grant Access Using Hierarchies” enabled via SOAP/METADATA API

Is there a way to know programmatically which objects have role access enabled, i.e "Grant Access Using Hierarchies" enabled in Organization-Wide defaults? I didn't find this information when querying ...
3
votes
1answer
149 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 ...
2
votes
1answer
150 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
70 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
97 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
71 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: ...
0
votes
0answers
166 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
97 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
255 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
70 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 ...
6
votes
1answer
542 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
240 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); ...
2
votes
1answer
311 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 ...