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

learn more… | top users | synonyms

1
vote
1answer
25 views

Is there a way to Get all variable names in a class programatically using APEX?

If i have a class as shown below- public class ClassName{ String field1{get;set;} String field2{get;set;} } Is there a way to get the fieldname of the above class in apex code. I ...
0
votes
0answers
18 views

Streaming API subscribe from external application server

I am developing an appexchange managed package intended for multiple organizations. I also have external java application server which wants to subscribe for record update events for every subscribed ...
0
votes
0answers
51 views

salesforce integration with java using REST API

help me out to go forward in salesforce integration with java using REST API. These are the steps i came across and unable to find the way. Post a request to login.salesforce.com through REST ...
1
vote
0answers
32 views

In Java how can I insert additional data on subscriber profile attributes?

In Java, using FuelSDK, how can I insert/update and delete a subscriber + insert some additional data on profile attributes? There is something like insert/or update?
1
vote
1answer
61 views

How do I insert a Date and Boolean columns into a DataExtension in ExactTarget using FuelSdk in Java?

I have my Java based FuelSdk working for String column types. But as soon as I try to insert a date or a boolean, the application blows up. It looks like I need to specify the data type for the ...
1
vote
1answer
46 views

“The requested resource does not exist” - simple GET query

I've created an account. How to get access to its data via REST? For example for the database or my custom objects? Also I don't understand why when I do request with this query SELECT Name, Id, ...
1
vote
1answer
21 views

Email FTP - Tracking file data delivery

We are using FTP mechanism for mass email sending out i.e. we send file contianing list of the email Ids to whom email to be sent, email template to be used, dynamic data points. What is the ...
2
votes
0answers
25 views

Writing JUnit test cases for Salesforce APIs

I want to write JUnit test classes for a project involving login, creation, updation & deletion of various custom objects, fields, tabs, custom settings, etc. most of them utilizing metadata API ...
0
votes
0answers
40 views

how to know if an enterprise connection is alive

I want to know if a connection is valid, this is an example of what I'm trying to do: EnterpriseConnection connection = new MyEnterpriseConnection(); System.out.println("first " + ...
1
vote
0answers
75 views

Inserting a row in DataExtension via Java FuelSDk not working

I'm trying to insert rows into my Data Extensions via the Java FuelSdk. I'm able to get the client and get the Data Extension. Creating the row is straight forward. I'm not able to do the actual ...
2
votes
1answer
35 views

How can I set an SObject field to null using Java API?

I have a third party service which updates custom object values in my service on Force.com platform using Java API and OAUTH2. From some reason when I try to update the SObject field value to null, ...
1
vote
2answers
86 views

Developing exact target app in JAVA sdk : Part 2

The example for updating Data Extensions in "Developing exact target app in JAVA sdk" was what I have been looking for. Unfortunately, I'm not able to get it work for Shared Data Extensions. I've ...
1
vote
0answers
83 views

Why am I getting a Connection Timeout while just trying to connect to ExactTarget

Using the Java version of the FuelSDK, I'm unable to get a connection to our instance of ExactTarget. I'm getting the following exception: com.exacttarget.fuelsdk.ETSdkException: error writing ...
0
votes
1answer
74 views

Where can I find Java FuelSdk Examples?

Where can I find a reasonably complete Java example for connecting to ExactTarget and updating a Data Extension. It isn't in the documention. I've looked there already. ET just says its coming. Does ...
0
votes
0answers
33 views

ETConfiguration can't find fuelsdk.properties

I'm brand new to FuelSdk and trying to write my first app using Java. But I can't get back trying to instantiate ETConfiguration. If I call it with the path to the properties file, it can't find it, ...
0
votes
1answer
33 views

Limitations in functionality of SOAP/REST/etc. API as opposed to a Force.com app?

I'm still a Salesforce newbie, so I hope you won't mind my "immature" vocabulary.;) I'm about to build an application which should be integrated with Salesforce. Currently I have two options in front ...
0
votes
0answers
16 views

How to send email to multiple email addresses use java Fuel SDK or REST API [duplicate]

I want to send email to multiple email addresses using a template in java. Currently I am using REST API messageDefinitionSends, but it only can set email to one email at a time. Does Java Fuel SDK or ...
1
vote
1answer
107 views

Retrieving more than 2500 Records using ExactTarget Java Fuel SDK

We've got the the following code that is supposed to retrieve ALL unsubscribed entries from a list. With our data, this is hitting the 2500 limit. I had a look at the ruby sdk, where they have a ...
0
votes
1answer
58 views

How To Call A Java Class Method from Salesforce

Here I have one custom button in a VIsualforce page and one java class in netbeans, and what I want exactly is that whenever I click on custom button at that time iI want to run that java class. So ...
2
votes
1answer
62 views

Passing custom model to Apex REST custom endpoint

I have a custom APEX REST point /organization-contacts/* that accepts an array of queries to run. This is to try and find matching contacts (based on phone number in this example) in "batch". I ...
0
votes
1answer
53 views

Invalid SESSION ID on Account creation

I'm very new to salesforce. I created a developer account and I am trying to create an account using RESTAPI. I have the error 'Session expired or invalid" but I don't know why. I read a previous ...
1
vote
0answers
42 views

How to deploy a dynamic web project war file in heroku?

I am trying to deploy a war file in Heroku. Using Eclipse IDE, I developed a Dynamic Web Project which having basic HTML + JavaScript + j2ee files and the application is working well in my server ...
4
votes
3answers
90 views

How to use Name Object

I am using the Java API and trying to create an Attachment with a reference to the Parent external Id field. The setParent() method takes a Name object as the parameter. For what I read, the Name ...
4
votes
1answer
59 views

Return custom event.message using Javascript remoting?

Short version: Can I return my own messages in the javascript remote event.message object? Long version: I use a javascript remote call to perform an ajax search. This is the code (pretty much ...
0
votes
0answers
33 views

Failed to send request to sales force url

I am working on Java ( JSP & Servlet ) I am creating JAVA Dynamic Web project to Create SalesForce Data Loader... I am using SOAP API as Web Service... I am using sales force "Partner WSDL" API ...
1
vote
1answer
75 views

Is there anyway to check if an access token is valid or not?

I got an access token from Salesforce and now I want to check if it's valid or not. How can I do this? Updated question. I have a client application and a server. The client requests an access token ...
0
votes
0answers
34 views

Oauth WARN [HttpMethodDirector] Unable to respond to any of these challenges: {token=Token}

I'm just a beginner with Salesforce Oauth. When I try to get the access token with username/password flow everything seem good. This is out put: > Status-Code: 200 Auth response: { "id": ...
0
votes
1answer
45 views

Get SFDC sessionID via access token

As the title. I'm using username/password flow to request an access token. So how can I request a SFDC sessionID from that token?
1
vote
2answers
38 views

FORCE IDE : right click not working on Project Explorer

I am using FORCE IDE for the first time. I could install it and have event created a Force.com Project by fetching the metadata from salesforce. I am using the 29.0 FORCE IDE plugin and using ...
2
votes
1answer
110 views

Call Restful SFDC service from Java

I'm still working on getting the authentication working but having issues. I have been getting a 401 unauthorized error. All of the items I have hidden I am sure are correct values UNLESSS I need to ...
0
votes
1answer
28 views

Creating Article using Partner API, Produce the following error: Visible In Public Knowledge Base: value not of required type: true

I am deploying an articles from one org to another using java and Partner WSDL. If one of the following fields: IsVisibleInPkb, IsVisibleInCsp, IsVisibleInPrm are set in the new article I get the ...
1
vote
1answer
33 views

Detect changes in picklist values

I have an external system which keeps synchronized with Salesforce. I have triggers in every object that send the inserted/updated/deleted records to my webservice, and every minute I send the ...
0
votes
0answers
207 views

SSLHandshakeException while connecting to SF from a standalone java client via a proxy

I am trying to connect to a SF hosted APEX web service. previously i managed to do so when i was accessing the service without a proxy mediating the communication. On port the same standalone java ...
1
vote
1answer
22 views

What is a RestResource and a RestResourceDelegate in APEX programming?

In the context of APEX programming, What is a RestResource and a RestResourceDelegate? I have seen a RestResource class with a method, global static void doThisThing() { ...
3
votes
0answers
86 views

Override PartnerAPI ClassLoader

We have exported as Runnable JAR (Extract required libriries into generated JAR option) our proyect (which has dependecies the fuelsdk and axis). So, there are some classes which read properties ...
1
vote
1answer
44 views

Error Code 310007. A primary key field cannot be nullable

I am creating Data Extension via Java SDK(Axis). When I add new field, it's isNillable attribute is null by default. If I leave it as null and create DE, ExactTarget returns me OK status, but, on ...
2
votes
1answer
75 views

How to fire an Event via Fuel SDK

I want to implement this procedure via Java fuelsdk https://code.exacttarget.com/marketing-automation/journey-builder/events/how-to-fire-an-event ETClient client = new ETClient(); ...
1
vote
1answer
85 views

Adding Bulk data to Data Extension Object in Exact target

I have a number of CSV's with each CSV having a million row sets. Now i have to send those CSV's to particular Data Extension Object in Exact target. I am aware of adding a row to data extension ...
0
votes
0answers
137 views

AES 256: Apex Encryption to Java Decryption

Could you please help how to decrypt the data in java. It was encrypted by SFDC Apex (AES 256) Blob cryptoKey = Crypto.generateAesKey(256); Blob data = Blob.valueOf('Test data to encrypted'); Blob ...
1
vote
1answer
178 views

Java code to call Exacttarget Automation workflow: START

What is Java code to construct this SOAP? <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ...
2
votes
1answer
81 views

Metadata Apex Class deploy Java example doesn't work

I am trying to make this sample code work, http://www.salesforce.com/us/developer/docs/api_meta/Content/meta_deploy.htm. It is just a one class java project. When I run it I have deploy.zip, which ...
0
votes
1answer
88 views

How can I debug SOAP API exceptions in Java code?

Sorry if this is a noob question. I'm new to developing for SalesForce and the Java SOAP API and am trying to debug a weird problem in an existing Java app. I'm getting this exception when invoking ...
4
votes
1answer
254 views

Unable to upload an Attachment - Bulk API

I'm using Bulk API to upload attachments and getting an error: InvalidBatch : Failed to parse CSV header. Number of Records Processed: 0 While I'm getting following error at the Salesforce ...
0
votes
0answers
53 views

Configure java-endpoint to receive multiple outbound messages

we are currently trying to receive multiple different OutboundMessages through a java webservice (One for Account, one for Opportunity). We are using the generated WSDL files for the endpoints. ...
1
vote
0answers
74 views

Force.com OAuth Endpoint Configurable

I want to make my Force.com OAuth endpoint applicationContext configurable so it can change to http://test.salesforce.com when someone select to login to their sandbox environment. Below is the the ...
1
vote
2answers
222 views

Developing exact target app in JAVA sdk [closed]

I am newbie to exact target app development .Im trying to build an app using java SDK but I couldnt find any sample codes to begin with.Can anyone provide me sample java codes for exact target app ...
5
votes
1answer
166 views

How to get the content of an existing apex class using metadata api

I was able to get the names of all the apex classes in an org using metadata api with Java public void getApexClasses() throws ConnectionException { ListMetadataQuery[] queries = new ...
1
vote
0answers
26 views

How to use a List or Data Extension to filter another Data Extension?

I have a scenario where I need to filter out (or remove) records of a Data Extension that exist in other Data Extension. In SQL would perform a NOT EXISTS. As I need to create an external process ...
1
vote
1answer
160 views

How to remove extra column from csv of bulk api in JAVA

I am importing the data in to the salesforce using Bulk API. But I am facing this issues. I am replacing the column header with the salesforce API name. But some of the heade which is not releted to ...
2
votes
1answer
70 views

Can we list a J2ee web application in AppExchange?

I am trying to list my web application in AppExchange platform. I tried reading through salesforce and app exchange sites but could not dig deeper into the answer. If I can list my web application ...