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.

112 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
91 views

Decryption of something encrypted with Java

I have a little problem. I want to decrypt a Text that I encrypted with a method written in Eclipse using Java. When i try to decrypt it using my IV and my key, i get an error (System....
1
vote
0answers
101 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
149 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 ...
1
vote
2answers
1k views

Developing ExactTarget app in JAVA SDK: Part 2

The example for updating Data Extensions in "Developing ExactTarget 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
1k 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 https:/...
1
vote
0answers
1k 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
0answers
160 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
246 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
0answers
527 views

unable to connect to salesforce using java

I am using external system as java and trying to integrate to salesforce in eclipse package com.example.samples; import java.io.BufferedReader; import java.io.IOException; import java.io....
1
vote
0answers
719 views

Issue with ConnectorConfig

I'm using Java to connect to SFDC. Very simple, generic code: import com.sforce.soap.partner.Connector; import com.sforce.soap.partner.DeleteResult; import com.sforce.soap.partner....
0
votes
1answer
30 views

How to read apex classes from outside java application?

Need assistance with how can I read apex class lines? which API should I use for accomplishing this REST or SOAP? Please help.
0
votes
0answers
25 views

Failed to add UserPermissions - Create/Update Account User

I'm trying to add user's permissions to determinate user. Using the code below, I'm using Apache CXF and generate the service from Marketing Cloud SOAP API AccountUser accountUser = new ...
0
votes
0answers
58 views

Static resource is not uploading files

We have multiple post-deployment steps and Data uploading is one of the post-deployment steps. We have created an automation script to upload the data file from the static resources. We have Company ...
0
votes
1answer
22 views

not able to get FaultString in soap api JAVA

I am trying to get faultstring from SoapFaultException class but can only get faultcode but not faultstring. Code snipped : public static Object querySf(String query , PartnerConnection pc) throws ...
0
votes
1answer
304 views

Salesforce SSL Cert imported into java trust store for integration works on the day imported but gives certificate error the next day

I am importing the Salesforce SSL certs for the test.salesforce.com and our sandbox environment using the commands below in a VM server environment. Import test.salesforce.com or login.salesforce.com ...
0
votes
0answers
67 views

How to use ETDataExtension / ETResponse / ETConfiguration by Salesforce Marketing Cloud Java SDK

I need to download more than 2500 Rows from tables of Salesforce Marketing Cloud with following code(for ETSubscriber): ETConfiguration configuration = new ETConfiguration(); configuration....
0
votes
2answers
49 views

Comparing two date fields and writing an Utility Class - Apex, Salesforce

I have two date fields Manager_recruitment_date__c Recruitment_officer_date__c I would want to write a utility class where I want to compare both these fields, and take the Max date and use it ...
0
votes
1answer
159 views

Why I don't receive proper results by running query in Apache Camel?

MyRouteBuilder.java rom("direct:select") .log("============Query to salesforce===========") .to("salesforce:query?sObjectQuery=select Id,Name,PSA_Activity_Sequence__c,...
0
votes
1answer
54 views

Unable to Compare two Strings in Salesforce - APEX

I am trying to Compare two strings which are delimited by SEMI-COLUMN (;). I have made sure I SPLIT them and the store them in lists. In the below example, I receive an error for BALL for all other ...
0
votes
1answer
35 views

Ant logs from deployment and validation in java app

I have a problem with logs from ant command. When I run command in CMD i see step by step progress of deployment or validation but when I execute the same target in my java app I do not see mentioned ...
0
votes
0answers
69 views

Populate fields from Contact onto Opportunity when a “New Opportunity” button on contact is Clicked

I created a button on Contact which is supposed to create a new opportunity, populate fields and create an Opportunity Contact Role on Opportunity when a Sales Rep clicks on New Opportunity Button. ...
0
votes
1answer
589 views

Can't add users to permission set programatically due to TABSET_LIMIT_EXCEEDED

When attempting to add all users to a permission set programmatically using the Java SOAP API, I am running into an issue where all of the users are not being added to the permission set. The error ...
0
votes
1answer
56 views

Hybrid MCCordovaPlugin not compatible Android 4.4 to 6.0

We are building an application with Ionic 4 and Angular , we are trying to implement MCCordovaPlugin in our application, but we have some issues with it. We want our application to work on Android 4.4 ...
0
votes
1answer
561 views

Display a Pardot Custom Field on Thank You (Code) page of Form

I have a Pardot form where the person enters an Account# (field is populated already in Pardot). They hit submit, and I'd like the Thank You text in Pardot to display another field of their's based on ...
0
votes
0answers
59 views

Does Salesforce have a support system?

Does Salesforce have any support platforms that can offer assistance w.r.t. questions such as: 403:denied_by_security_policy:create_denied when subscribing to platform events that have a heightened ...
0
votes
0answers
78 views

Accessing salesforce data using JAVA program - facing an issue

This is my JAVA code: package SFtest; import java.io.IOException; import java.net.*; import org.apache.http.client.methods.HttpPost; import org.apache.http.client....
0
votes
0answers
48 views

Heroku And Salesforce Connectivity

I have created Connectivity with Salesforce using "Heroku Connect". While i create record in salesforce it is creating record in heroku postgres database but while i inserted record in to heroku ...
0
votes
2answers
21 views

How do I use the Java API to update only a single attribute on a record?

I'm using Java 8 and v 33.0 of the SalesForce API. We are trying to update a single field on a record. Basically we are trying to do it like this final CventSession__c ...
0
votes
1answer
959 views

How to get LIST of Custom Settings by API with Query Condition?

I want to get list of available Custom Settings using SF API in Java. I mean Setup > Build > Develop > Custom Settings > Get that list Additionally, I need to have got the condition in ...
0
votes
0answers
786 views

How to use MetadataService class using Metadata API through SOAP

I have a requirement to grant FLS to the certain fields on profile level. I want to achieve this using Salesforce Metadata API thru java. I came across the below code for updating FLS using ...
0
votes
1answer
490 views

Metadata API file based retrieve and deploy calls

I want to build an java application where my code take package.xml and retrieve all metadata. Well this one is done using Java Example code given by Salesforce. Now I need to unzip that zip and do ...
0
votes
1answer
262 views

Issue with Connected-App. Java-Salesforce Rest API

I am getting an issue from my local java application running at http://localhost:8080. When I enter this address inthe browser, I am being redirected to a login.salesforce.com, but I see a blank ...
0
votes
1answer
450 views

Java - Creating BulkConnection object with Oauth token

I have successfully been able to create a bulk API connection with the following code that calls the SOAP auth endpoint: ConnectorConfig partnerConfig = new ConnectorConfig(); partnerConfig....
0
votes
0answers
726 views

REST API: Insert or Update Blob Data

Looking to the community for some help on this one.. I've been using postman to deliver a multipart message with the binary data to upload a document to a document folder through the REST API. The ...
0
votes
1answer
56 views

How to Manage Dated Exchange Rates and Currencies using Web Service Connector

Is it possible to update the Dated Exchange Rates and Currencies using Web Service Connector and Java? If it is, kindly give links or sample codes for references. I have searched on different sites ...
0
votes
0answers
116 views

Equivalent method for Java class HttpEntity entity = new StringEntity(<any string>); in Salesforce

I am trying to find equivalent Salesforce class for the following code. HttpEntity is a Java class. HttpEntity entity = new StringEntity(msg); httpPost.setEntity(entity);
0
votes
0answers
423 views

com.sforce.ws.ConnectionException with JDK 1.6.0_45

I am using Salesforce API version 39 to generate partner jar using wsc-22.jar My project is deployed on JDK1.6.0_45, so i also wanted make my salesforce code compatible to JDK 1.6. I run some sample ...
0
votes
2answers
2k views

Bulk Query with PK Chunking enabled sometimes does not return all the batches

The requirement is to use Bulk Query API with PK Chunking enabled, and to create CVS files for each batch with the chunk-size For example, in the Account Object if I have 80,000 records, and have the "...
0
votes
0answers
3k 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
77 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 ...
0
votes
1answer
602 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....
0
votes
1answer
166 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 ...
0
votes
1answer
861 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 ...
0
votes
1answer
349 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 ...
0
votes
1answer
178 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
36 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 ...
0
votes
1answer
68 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
0answers
785 views

How to attach file using Rest api Java?

Can some budyy help me out. How to upload attachment using Rest REST API Attachment I am following this link. Is there any sample code available? Any help appreciated.
0
votes
0answers
333 views

Connection Reset Exception while upserting 20k records

Can anyone tell me how to resolve the below error while uploading 20k records.but it works fine if it is 10k. AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server....
0
votes
1answer
129 views

Bulk query help

I am trying to get my bulk query up and running to get data from our salesforce account. I have looked up a lot of examples since salesforce fails to give a java example for a bulk query. None of ...