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

0
votes
0answers
4 views

Unable to create Triggered Email using Java FuelSDK ETTriggeredEmail

I executed some simple codes trying to create a new Triggered Mail via FuelSDK-Java 1.1.0 and the only response message I received was "Error". Here is the sample of my codes. public class ...
0
votes
0answers
4 views

Java FuelSDK ETEmail.Type Exception

I am trying to do a simple query (using the latest FuelSDK-Java 1.1.0) to retrieve an existing Email object from the ET server but encountered an exception as follows: Caused by: java.lang....
0
votes
1answer
26 views

How to return fields to webservice response?

When the user enters his name from third party application, The user needs to get all the records(Account(name,Phone,email),Contact(firstname,Lastname),Lead(email,mobile number)) matching the text ...
0
votes
0answers
13 views

Returning data from Heroku app to Salesforce? [closed]

anyone have an example code snippet for returning json from a java heroku app back to salesforce?
1
vote
1answer
20 views

Java - Metadata Api readMetadata() not returning corrrect info

I am trying calling readMetadata() method in java to return all instances of a metadata type in my sandbox: For example calling readMetadata("ApexClass") will return the api names of all apex classes ...
0
votes
0answers
44 views

Java SOAP API - Can you login using ONLY a sessionId?

Assuming you do not have a SFDC account in some particular org, given a System Admin's active sessionId and the URL of the org, can you log in to the Java SOAP API as that user? There is some good ...
4
votes
1answer
41 views

Getting salesforce instance URL from Java

Is there a way for me to get salesforce instance URL from Java? I was looking for something similar to System.Url.getSalesforceBaseUrl() in Apex, but I couldn't find anything suitable in Metadata or ...
0
votes
1answer
36 views

Heroku Integration with Salesforce

Can Someone explain the main purpose of Heroku and Limitations of using it? I have a core java project which as a end result provides an registration key of size 16 char. I want to get this ...
0
votes
0answers
23 views

Is the Java SOAP API Depreciated?

It seems that all of the documentation on the salesforce website for a SOAP call is from 4+ years ago, and all of the example code contains Old, and depreciated methods from the wsc library. Is there ...
2
votes
0answers
23 views

Accessing SAML Login Information in Connected App programmatically

I was looking for a way to programmatically read (and potentially - write) data in SAML Login Information (on ConnectedApp 'manage-side' settings), as displayed below: I already tried using Metadata ...
2
votes
1answer
33 views

“Cannot parse empty string” error when exporting using dataloader

I'm trying to run Data Loader from the command line and export all the fields for the contact object. We're using a third party app which has modified this standard object. I've defined a mapping file ...
0
votes
0answers
40 views

error invalid_grant error_description invalid assertion

I want to use OAuth 2.0 JWT Bearer Token Flow for getting events logs but when i try to get then it show me following error, { "error":"invalid_grant", "error_description":"invalid assertion" } ...
3
votes
3answers
545 views

How to set TLS Version in Java SOAP API

I am trying to connect to a new org using the Java SOAP API and am getting the following error: [UnexpectedErrorFault [ApiFault exceptionCode='UNSUPPORTED_CLIENT' exceptionMessage='TLS 1.0 has been ...
0
votes
1answer
259 views

How to enable TLS 1.1 or Tls1.2 in Java 7

I am using salesforce soap API i has activated tls 1.1 in SF-->Critical updates i am getting this error UNSUPPORTED_CLIENT: TLS 1.0 has been disabled in this organization. Please use TLS 1.1 or ...
0
votes
0answers
52 views

Java Fuel SDK ETClient class causing NullPointerException

I know this is caused by a null value, however I'm not sure why it's null. Have I not instantiated ETClient correctly? Or overlooked something else? package exacttarget.api; import com.exacttarget....
3
votes
1answer
81 views

Can you use COUNT() in a SOQL query from SOAP API?

I want to use the Java SOAP API to execute a query like the following: connection.query("SELECT COUNT(Id) FROM Contact WHERE . . ."); However I get back a single SObject: [SObject fieldsToNull='{[...
0
votes
1answer
18 views

Does my org CS version limit which Streaming and REST APIs I can use?

If I'm using Salesforce "Spring 16" (CS10), does that org impose limitations to which Streaming API version I may use? (currently, our Java apps use v33 push topics) Is there any benefit to using more ...
0
votes
1answer
47 views

Error could not find or load main class com.sforce.ws.tools.wsdlc

I want to compile the partner API code from the WSDL using the WSC compile tool. After running java -classpath wsc-22.jar com.sforce.ws.tools.wsdlc partner.wsdl partner.jar I get the error: ...
0
votes
1answer
25 views

Instance of Inner Class

How to update argument of inner class instance ? This is the explanation : public class { constructor { Initialize Inner class Instance(arg1) } method { variable arg2; ...
0
votes
1answer
39 views

Not able to get access token from salesforce

I am getting authorization code and when i am trying to get the access token than it give error like { "error": "unsupported_grant_type" "error_description": "grant type not supported" } This is ...
1
vote
2answers
57 views

How to disabe API user session timeout?

I have currently developed a Java API client that connect against the Salesforce instance of my company. Using the following tutorial: https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/...
0
votes
0answers
23 views

Update Subscriber Status in the list via Fuel-SDK (Java)

I am using FuelSDK (Java) for development. I want to update the subscriber status in the specific list but not All subscribers list. Refer to http://salesforce-marketingcloud.github.io/FuelSDK-Java/...
2
votes
1answer
47 views

Security on Connecting to Salesforce from a Java app

I was trying to connect to Salesforce and migrate data from mySQL database to Salesforce using Java. During the connection process I found that we have to give the Username, Password and oAuth token ...
0
votes
1answer
70 views

OAuth worked initially, but failed with 401 on the next day & subsequent

I'm working from https://developer.salesforce.com/page/Integrating_Java_Spring_Apps_on_Heroku_with_Force.com_REST_APIs On the first day, I got everything to work with localhost, so if I opened http://...
0
votes
1answer
77 views

How to export data using reports from SFDC programmatically?

We have an issue where we have to manually click Export Report on SFDC reports though the UI on many reports. These reports have several filters and filter logic such as "(1 or 2) AND (4 AND 1)" and ...
1
vote
0answers
37 views

Not able to insert record into a custom object

I am having some difficulty inserting a row into a custom object. I am writing a java application that will insert rows into a custom salesforce object. There is no exception that is thrown, so I don'...
0
votes
1answer
27 views

Java - like Apex for SOBJECTS

Sorry, I don't know if this is a proper context to make this question, but I don't know where to make this question. I write here because I immagine that a lot for today apex programmers has been ...
3
votes
2answers
115 views

Salesforce Metadata Api/ Tooling Api to build changesets

I was wondering if it was possible to use any of the API's provided by SF to build an external (C#, Java) application to manage building changesets. Building changesets is very tedious when trying ...
0
votes
0answers
12 views

Java - Automating WSC connector after Salesforce update

This is due to Salesforce's update on my organization where there were a few modifications on how I could query. For example, due to the change with the latest version (thread), FeedItem does not ...
0
votes
1answer
50 views

Java Fuel-SDK searching Data Extension for Email

We are using the Java Fuel-SDK 1.0.3 to select a row with a specific email address from a Data Extension. The existing documentation either says ‘Coming soon!’ or points to the Javadoc. While the ...
3
votes
2answers
115 views

Need some help with jquery plugin select2 and VF page

I am trying to use jquery plugin select2 in my VF page to make the select look better. For some reason i cant get it to work. I have loaded in all the js and css as static resources. There is no ...
1
vote
1answer
90 views

Salesforce SOAP API SessionRenewer implementations

I am handling a large query of a Salesforce object through SOAP API which takes more than the timeout. Frequent error message is INVALID_SESSION_ID. I have used the queries throughout every code and ...
0
votes
0answers
87 views

How to pass Key&value(parameter) in http post request using 'multipart/form-data' header?

I want to pass parameter to endpoint. Keys are: emailSubject, emailTo, emailFrom & etc. Here is my code. same code is working for 'application/x-www-form-urlencoded' & 'Content-type','text/...
4
votes
1answer
1k views

Can Data Loader run with 64-bit Java?

I have uninstalled all old versions of the data loader and installed the newest one: 36.0.0 I cleaned up all Java stuff on my 64-bit Win 7 machine and there's only one version left, it's this version ...
0
votes
1answer
40 views

Tracking information from ExactTarget using FuelSDK for Java

I'm trying to get Tracking information from ExactTarget using FueldSDK for Java, but it doesn't seem to include the class ETOpenEvent as in other languages. For example, with C# you can do this: ...
0
votes
1answer
28 views

undelete records using java code?

Hi while i am saving this code getting error: public class deletetion{ public void undeleteRecords() { try { QueryResult qResult = connection .queryAll('SELECT Id, ...
0
votes
1answer
42 views

External Data Source own webservice [closed]

[TASK]Salesforce integration with external database (e.g. PostgreSQL) [GOAL] Integration without using external system e.g. Informatica, Lightning connect [TO DO] Build own webservice (Java). Connect ...
0
votes
0answers
45 views

unsubscribe from single list using java API

using com.exacttarget:fuelsdk:1.1.0, I am trying to unsubscribe a subscriber from a single publication list only. I can retrieve the ETSubscriber.Subscription objects easily and call setStatus(...
1
vote
4answers
145 views

REVIEWED: Why I see the count of completed/queued/errored on Triggered Sends to 0, despite return msg of API call is “Triggered Has Been Send queued”?

Why I see the count of completed/queued/errored on Triggered Sends to 0, despite the return message of API call is "Triggered Has Been Send queued"? REVIEW: I tried the sames scripts on another ORG ...
2
votes
2answers
31 views

Database.Query give wrong result

Check these Screen Shots See the Query here which is wrong: See the result here help me out to resolve the issue. Thanks in Advance,
1
vote
1answer
45 views

Issue inserting Recordtype for object

I am writing a JAVA-application that mainly functions as a CRUD-platform for my employees. On this application, users can manage data from a specific objects. I am using REST-API. Now, here is my ...
0
votes
0answers
19 views

How do I set attributes to Subscriber in FuelSDK?

How do I set attributes to Subscriber in FuelSDK? Looking at the java fuelsdk source, attributes are commented out... https://github.com/salesforce-marketingcloud/FuelSDK-Java/blob/master/src/main/...
0
votes
1answer
22 views

Having problem in adding action on VF page button

Below is my VF and controller,i am having trouble in adding action on commandbutton on VF page. if i add searchEvent in commantbutton action it will create new class. i want to do like that when ...
2
votes
0answers
78 views

Invalid Query Locator in REST API

When making a REST API query call from a Java client I'm getting an INVALID_QUERY_LOCATOR error. I'm familiar with the limitation around 10 query locators in the same time and in my code I'm avoiding ...
0
votes
1answer
17 views

Java FuelSDK client fails when the process is running under Executor

It seems that current version of Java FuelSDK (v 1.1.0) does not want to run in multithreaded setup with Executor. It fails quietly with no sign of the problems or exceptions thrown. Did anybody ...
1
vote
0answers
73 views

Salesforce error with certificate issue

In our application we are using two way ssl that to send the data in soap api with request and response. it is the communication between salesforce and java. java is server and salesforce is client. ...
0
votes
1answer
31 views

Save Event to Salesforce without losing time [closed]

How to save an Event without losing time? I have tried: set("StartDateTime")(new Date()) set("StartDateTime")(Calendar.newInstance()) - throws an error that value not of required type
0
votes
1answer
31 views

Why can I not add a “Description” when creating a new Lead from Code?

I made a small Java Project to connect to Salesforce and get Leads and Create some new. Got into a problem of creating a new Lead with the "description" property even if i saw the property exists in ...
0
votes
1answer
39 views

Cannot use “and” operand to filter ETDataExtensionRow

Now, I'm working on Java Fuel-SDK and I need to use "and" on select method. I look on example code of Fuel-SDK, I found ET deprecated ETFilter and put "SQL like" syntax on method, Example. @Test ...
-1
votes
2answers
101 views

How to pass the array values from the javascript to apex controller and later store in custome object?

I am trying to get the values from javascript which is in array, to the apex controller and later save it. When I check the debug logs, I see null value in it. Need help. Below is my code. I tried ...