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
35 views
org.xml.sax.SAXException: Invalid element in com.sforce.soap.partner.fault.UnexpectedErrorFault - upgradeURL
I am using salesforce SOAP API version 8. This is Login code which i am using for login for Salesforce Soap API.
public String login(String userid, String passwd) {
SoapBindingStub binding;
...
0
votes
1answer
23 views
Salesforce REST API using Java
I am trying to make Connect Salesforce with Java using Rest Api. But I am getting authentication Error and status = 400
I followed the all the steps mentioned here :
http://resources.docs.salesforce....
0
votes
0answers
13 views
Send Email to mailGun using salesforce apex with httprequest method
I am not able send the mail,i try this method,i get success code 200,but attachment didn't get send.below is code please check and let me know what is wrong. Code -
public with sharing class ...
0
votes
1answer
20 views
Specify record type for Opportunity Custom button- Mass edit
I'm not familiar with Javascript at all, but trying to create a button which allows users to mass-edit some key fields of their opportunities. I have the below by copying the code of the preset button ...
0
votes
0answers
10 views
FuelSdk java osgi seistub cannot be cast to org.apache.cxf.frontend.clientproxy
I am trying to use the fuelsdk in an osgi environment. I am getting this error -
java.lang.ClassCastException: com.sun.xml.internal.ws.client.sei.SEIStub cannot be cast to org.apache.cxf.frontend....
1
vote
2answers
11 views
Unexpected Java Error in Visualforce component with Apex Class as attribute
All,
I've created a Visualforce component which takes an instance of an Apex wrapper class as an attribute. However, when I attempt to insert the component into a VF page, I get the following error ...
0
votes
1answer
28 views
HTTP 400 Bad Request trying to create a bulk API job using RestTemplate
Am trying to use spring RestTemplate to create a bulk API job. Below is the code
HttpHeaders headers= new HttpHeaders();
headers.setContentType(MediaType.APPLICATION_JSON);
headers.add("sforce-enable-...
0
votes
1answer
50 views
convert java crypto code to apex
i need to convert the java code to apex code. i tried my best using Crypto class but the result are totally different from the one i get using java code. Below are the two java classes which i need to ...
0
votes
2answers
63 views
How to convert “2016-11-08T13:04:16.5260175Z” this into apex datetime like “11/8/2016 1:04 PM”
I need to convert "2016-11-08T13:04:16.5260175Z" this one into DateTime format like "11/8/2016 1:04 PM". Please help me.
0
votes
1answer
27 views
How do I get my test SalesForce instance to work with our Java hosting environment?
We are trying to get our J2EE hosting environment (Jboss 7.1.3.AS) working with our test SalesForce instance. We are running Java 6 v 111
java version "1.6.0_111"
Java(TM) SE Runtime Environment (...
0
votes
0answers
22 views
Webdriver - switch to correct iframe
I am developing some selenium tests for salesforce website with webdriver (Selenium & Java) and I am facing a problem switching to different iframes.
The problem is that I want to select a DOM ...
0
votes
0answers
29 views
Sending TriggeredSend mails using fuelsdk
I am trying to throw together a quick prototype Java application that will send a triggeredsend email using fuelsdk. I have located the documentation (http://salesforce-marketingcloud.github.io/...
0
votes
0answers
24 views
Sending mail from template with java fuelsdk
I am new with salesforce. All I need to do is to send an email to a user. It seems very easy but I am unable to understand from where should I start. Job Tasks are as follow :-
When a user fill ...
3
votes
1answer
61 views
SOQL retrieve limited?
I'm doing an integration using Partner WSDL.
When I try to retrieve more than 15 Leads, it's return NullPointerException and I have 43 Leads.
When I try to retieve all my Contacts, it's just return ...
0
votes
0answers
22 views
Fuel SDK java: NullPointerException in login
I am using fuel-java-1.0.1. Using the following code for login:
ETConfiguration configuration = new ETConfiguration();
configuration.set("clientId", "my-client-id");
configuration.set("clientSecret", ...
0
votes
0answers
16 views
Download SalesForce Report using SOAP
I have received wsdl file using which I am successful in login into salesforce account at URL https://login.salesforce.com/services/Soap/c/34.0/0DF200000000gOK
using username, password and ...
1
vote
1answer
67 views
Salesforce streaming API issue in version 37
I am using the salesforce java streaming API code that is provided in the salesforce documentation.
Code is working fine. But when I use the CometDReplyExtension for getting the events based on ...
2
votes
1answer
26 views
Multipart Post to Attachment
I am trying to send a binary file in Java to Salesforce '/sobject/Attachment' endpoint. Below is the code I am trying to use, but I keep receiving a 400 error. Any idea as to what the solution is?
...
3
votes
2answers
185 views
Streaming API: Replay Events/ Durable PushTopic from java client
Useful new feature, GA Summer'16. I like it.
While I can successfully consume streaming api via java client, no problems, I am unable to take advantage of this new replay option with my java client.
...
0
votes
1answer
41 views
How to download reports from Salesforce using Java Bulk API or Rest
How I can download reports from Salesforce about completed tasks using Java Bulk API or Java REST API?
I implemented this code https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/...
0
votes
1answer
47 views
how to set a value in a map from Visualforce
I've got a simple Visualforce page:
<apex:page controller="MyVisualforcePageNameController" sidebar="false" standardStylesheets="false" docType="html-5.0">
<apex:form>
<apex:...
0
votes
1answer
66 views
Trigger Emails - Not able to modify the FromAddress using TriggeredSendDefinition
I am trying to trigger send an email using TriggeredSendDefinition. Every time I am receiving an email from the DEFAULT account (Business unit email id).
I tried to give from address in ...
0
votes
0answers
50 views
FuelSDK: Unable to modify html body, subject in Triggered Emails
I am trying to send emails using salesforce marketing cloud. Basically I am able to send the emails. But the issue is I am not able to modify subject and HtmlBody,Unable to see ReplyToAddress and ...
0
votes
0answers
29 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
1answer
69 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
38 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
83 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
64 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
38 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
102 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
52 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
41 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
64 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
71 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
111 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
33 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
33 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
110 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 ...
3
votes
3answers
2k 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
984 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
140 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
151 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
24 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
513 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
29 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
43 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
134 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
54 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
137 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
148 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 ...