Java is a computer programming language that is concurrent, class-based, object-oriented, and specifically designed to have as few implementation dependencies as possible.
0
votes
0answers
16 views
Rest API automation testing
I'm currently working on an automation project with Salesforce and I need to fetch data from the backend. What I need is some guidance on how to create an RestAPI end point so from my java project I ...
1
vote
0answers
40 views
Create Contacts by Java SOAP API
I'm trying to create one or more contacts by Java SOAP Enterprise API but I'm getting error.
This is the code:
for (int i=0;i<5;i++) {
Contact c = new Contact();
c.setFirstName("aaaa"...
2
votes
1answer
22 views
Build partner.jar
I'm following the instruction on Trailhead.
When I tried with the enterprise.wsdl I was able to generate the enterprise.jar using force-wsc-37.0.jar, js-1.7R2.jar and ST-4.0.8.jar.
Now I'm ...
3
votes
2answers
55 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
17 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
21 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
31 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
0answers
8 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
7 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
32 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
25 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
56 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
50 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
61 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
26 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
25 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
51 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
56 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
855 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
435 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
68 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
96 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
20 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
114 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
72 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
24 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
49 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
83 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
88 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
38 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
29 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
149 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
14 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
55 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
127 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
105 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
141 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
2k 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
41 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
30 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
51 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
151 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
33 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
50 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
22 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
87 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 ...