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
3
votes
2answers
370 views

How to communicate with Salesforce without WSDL?

We have a platform which is programmed in Java. The problem is, every time the WSDL changes(happens more often), the platform crashes. Is there a way to communicate to Salesforce without the WSDL? Or ...
1
vote
0answers
511 views

Exception occurred in the TriggeredSendSubscriberHandler

I am making request to send a triggered email and the request fails. I am getting the following response: ID: 13543 Response-Code: 200 Encoding: UTF-8 Content-Type: text/xml; charset=utf-8 Headers: {...
0
votes
1answer
122 views

How to provide custom parameters for triggered email

I'm going to use SOAP API via Java and plan to send triggered emails. How to provide custom parameters during email send invocation? Example to explain my usecase: I generate some secret key in my ...
1
vote
1answer
459 views

Is it possible to send email using Fuel SDK for Java?

I'm facing the problem with Fuel SDK integration with Java - I can't understand how to send the newly created email. In this article I see how to perform similar operation using Php: $response = new ...
0
votes
1answer
1k 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 ...
1
vote
1answer
279 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 ...
4
votes
1answer
440 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
224 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
61 views

Is the Java SOAP API deprecated?

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 deprecated methods from the wsc library. Is there a ...
3
votes
0answers
106 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
767 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 ...
5
votes
3answers
19k 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 ...
1
vote
1answer
5k 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
1answer
479 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
2answers
1k 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
27 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
3k 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: ...
1
vote
1answer
968 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
140 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 my ...
1
vote
2answers
930 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/...
2
votes
1answer
120 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
347 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
588 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
205 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
99 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 ...
14
votes
3answers
6k 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
1answer
271 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
533 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
453 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 ...
13
votes
2answers
11k 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
140 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
44 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
122 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 ...
1
vote
4answers
352 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 ...
3
votes
2answers
40 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
611 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
1answer
48 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 ...
3
votes
0answers
783 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
34 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
383 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
36 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
53 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
144 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
441 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 ...
0
votes
1answer
233 views

Does the REST API or Fuel Java SDK support triggered sends with attributes?

I'm having trouble finding an example or instructions on how to make triggered sends with dynamic attributes using Fuel Java SDK or the REST API. Example: for this template below, I'd like to be ...
0
votes
2answers
373 views

Developing java integration with Fuel SDK

I am starting to develop the connection between my system and the one from Exact Target, but having some troubles. I tried to follow this example, but many functions do not work anymore or are ...
1
vote
1answer
151 views

What are the best ways to learn Salesforce? [duplicate]

What would be the transition time for a PHP/Java developer to salesforce developer? What is the best way of learning salesforce development? Do I need to have the CRM knowledge of salesforce to ...
1
vote
1answer
814 views

Connection via Java results in com.sforce.soap.apex-error

I am a little bit confused. I am a long term SF-developer who is now making his first steps with Java. I just wanted to make a connectiontest with this page: https://developer.salesforce.com/docs/...
1
vote
0answers
120 views

How to filter by date in fuelsdk 1.1.0?

Could you help, I don't know how to filter by date on fuel-sdk. I just want to retrive data after "2015-11-10". I look on Fuel-SDK unit test and not found anything relate to filter by date. I try ...
1
vote
1answer
80 views

Fuel Java sdk subexpression is not appearing to work

Attempting to use the java fuel sdk to pull data from a data extension table. In that table there is a date column which I am trying to create a filter with expression to get rows between two dates. ...