We’re rewarding the question askers & reputations are being recalculated! Read more.

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
2
votes
0answers
17 views

Force.com Architecture Whitepaper

Are there any other technical resources besides this whitepaper that describes how things work under the hood at SFDC? The Force.com Multitenant Architecture PDF version
-1
votes
0answers
14 views

fetching records from custom objects in java using soap API [on hold]

How to fetch records from custom objects through java code using the soap API. I had done lot of searching on google where i found that i have to use WSDL to fetch records from custom objects, but ...
2
votes
0answers
19 views

Salesforce JPA Provider

I'd like to know if there's a JPA Provider for Salesforce. I've seen that java-sdk has it but it's no longer maintained https://github.com/forcedotcom/java-sdk The end goal is to use hibernate to ...
0
votes
0answers
6 views

FuelSDK java ETContentArea, ID is coming null while retrieving

We were using some older version of fuel sdk java for communicating with Exact target. We are fetching ETContentArea and getting data from it. After upgrading the version of Fuel SDK to 1.5.0, we are ...
1
vote
1answer
15 views

Trouble Installing JDK on Mac for VSCode (SFDX)

I'm trying to do the Apex Replay Debugger trailhead, which requires JDK 8. When I install the JDK on my Mac, the installer tells me it went into /Library/Java/ directory. However, when I look in that ...
0
votes
1answer
23 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
1answer
30 views

Variable remains empty after initialization

Simple Apex (Java actually) question, after I initialized the variable 'a' in a constructor, I tried to access it with a different method but it remains null. Class FirstClass{ String a; ...
0
votes
0answers
23 views

Java to Apex similarity [duplicate]

I am new to programming with some knowledge of Java. I am looking to become a Salesforce developer. Apex language is almost the likes of Java. Java is a powerful language with which much can be ...
1
vote
1answer
30 views

When using the extensions for VSCode and OpenJDK installed using homebrew, how can I find the Java Home and set it correctly?

While this question and answer looks more like a Java-related question, I think that this can help people starting with the Salesforce VSCode extensions and having this particular scenario (using ...
0
votes
0answers
24 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
27 views

Error : exceptionCode='INVALID_TYPE' exceptionMessage='Must send a concrete entity type.'

private static void createCustomer() { System.out.println("Creating"); Customer__c[] createCust = new Customer__c[5]; try { Customer__c customer = new Customer__c();...
0
votes
1answer
73 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
39 views

How to rewrite this Java code in APEX

I wanted to rewrite this code from Java to Apex is it possible? public enum Operator { ADDITION("+") { @Override public double apply(double x1, double x2) { return x1 + x2; }...
1
vote
0answers
27 views

Receiving a null refreshtoken from marketing cloud via sdk

I am using flameSDK to interact with my marketing cloud org. I am able to create the ETClient object. During creation, it successfully calls the auth endpoint so I get my accessToken, expiresIn, ...
0
votes
1answer
34 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
131 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
41 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 ...
2
votes
0answers
123 views

403:denied_by_security_policy:create_denied when subscribing to platform events

This error is thrown when I try to subscribe to a platform event using the EMP-connector. I followed the steps outlined in the documentation: https://developer.salesforce.com/docs/atlas.en-us.220.0....
1
vote
1answer
32 views

Calling salesforce API using java application returns 301

I tested the following code and is working perfectly on sandbox and returning the following: HTTP/1.1 200 OK Successful login instance URL: https://XXXX.salesforce.com access token/session ID: ...
3
votes
0answers
35 views

Getting 'get_any' method on the SObject class when building a JAR from Partner WSDL?

We haven't had to build a new version of the partner wsdl jar for SOAP API work since version 12 and things have changed a bit. I'm trying to work with v43.0, but I'm doing something wrong. I've tried ...
1
vote
1answer
108 views

Error R10 Boot Timeout, not binding to port

A few of us are working on this problem and have searched for hours to solve this problem. Currently my Procfile looks like this: web: java $JAVA_OPTS -jar target/GeodeTwitter2-0.0.1-SNAPSHOT.jar -...
2
votes
0answers
21 views

Setting up Salesforce DX in Visual Studio with Java [duplicate]

trying to configure my VisualStudio code to handle Java 8 with APEX and I keep getting this Java Runtime could not be located. I have a file path for my Java application, and it is not Java 12, it ...
2
votes
0answers
69 views

Heroku installs wrong JDK version

I added system.properties file with the content java.runtime.version=11 to my application like described here, committed the changes and pushed afterwards with git push heroku master unfortunately, ...
1
vote
0answers
105 views

400 error whilst using the Fuel SDK

I am new to marketing cloud. I am using the Fuel SDK for Java. I am trying to query data inside a data extension. So far, I have been using my colleagues clientID and clientSecret but the problem ...
-2
votes
1answer
296 views

How to omit/remove xml declaration using DOM

I have code which appends XML header to the existing xmlstring. In that I am getting response with XML declaration <?xml version="1.0" encoding="UTF-8"?> and I have add the attribute in my Tag ...
0
votes
0answers
22 views

Java Fuel SDK - Cannot create a TriggeredSendDefinition

I'm facing a issue while trying to create a TriggeredSendDefinition via FuelSDK for Java. I managed to create an ETSoapConnection object, to define the TriggeredSendDefinition and to create a ...
2
votes
0answers
33 views

How to retrieve objects that inherit from APIObject using FuelSDK-Java [closed]

I'm trying to retrieve all sends from an account on salesforce and even though I can instantiate the client using: ETConfiguration configuration = new ETConfiguration(); configuration.set("clientId"...
0
votes
1answer
57 views

Integration that involves encryption

I've done quite a few JSON/REST integrations and only two SOAPs, but this API I'm working with looks like neither. They do offer example code. I stuck with the java example because that is what I've ...
1
vote
0answers
16 views

Type Cast Version 14.0 SObject to Version 45.0 SObject in Java

I am performing maintenance on an old Java application that uses version 14.0 Java Stubs to perform SOAP operations. Need to integrate ETM 2.0 objects into this application, is there anyway to type ...
1
vote
1answer
267 views

Is Crypto.generateMac method work exactly the same as Mac and SecretKeySpec java classes

I need to create a signature in order to send a request to CyberSource. I have the following Java code, that works perfectly: String signatureString = "Test"; final Mac sha256HMAC = Mac.getInstance("...
1
vote
0answers
96 views

Error while using JAVA FuelSDK

I am using eclipse java luna to install Java fuelSDK. I used maven to add the following dependency to my project's pom.xml: com.github.salesforce-marketingcloud fuelsdk 1.3.2 Content of my ...
0
votes
0answers
35 views

Formula field in a Predefined Field Value (Email)

I have a record, namely Quote, which has a lookup relationship with Contact. Now, I'm creating an Email tab under the Activity, and I want the fields (To, From, Subject, etc..) to be auto-populated. ...
0
votes
1answer
76 views

Using to SOAP API in SpringBoot application to get the DE data

I'm new to SF Marketing Cloud and need to use Soap API in SpringBoot application to get DataExtensions data to do some manipulations. I'm not sure where to get MC DataExtensions API/end Point as well ...
0
votes
0answers
55 views

Content Builder and FuelSDK-Java

We have a project on Grails that we use to create emails and other assets on Classic Content using the FuelsSDK for Java. Now we are trying to integrate the creation of assets on content builder, ...
0
votes
0answers
32 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
34 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 ...
1
vote
1answer
99 views

Do we have an option to create UnManaged package using any Salesforce API call?

I want to create an unmanaged package using API call, is it possible? Is yes, please suggest the approach. Our expectation is to create a unmanaged package in a salesforce org and add the metadata ...
1
vote
1answer
18 views

bulk request size [closed]

i have created a restful web service using java which will accept the json records.I would like to know what is the maximum size of the json request so that api can handle? and what is the best way to ...
2
votes
1answer
310 views

INVALID_SESSION_ID when calling Salesforce services from Java

We have a Java application running on glassfish that makes callouts to WebServices hosted on our SF sandbox using the Partner WSDL and the SF Web Service Connector (wsc). Yesterday it was working ...
1
vote
1answer
103 views

How to update the FLS using Salesforce Metadata API in a bulk update?

I have a set of fields in the array list which I wanted to give FLS with Read access. I'm using below piece of code to update the field level security using Salesforce API in java language. But the ...
1
vote
2answers
63 views

Requirements for Custom Journey Builder Activitity development

I'm tasked with planning the development of a custom journey builder activity and have some questions: Can Java be used as the back-end for the developed webservice that will live in Journey Buider? ...
0
votes
1answer
35 views

Java Json formating not wokring ok

I have a program which read a csv file (1.2 mil) records, and then using batches , sent a json request to marketing cloud to create records. The right format(working ) format of json is [{ "...
0
votes
2answers
68 views

Set class method ContainsAll not working for special character '-' in strings?

Facing a weird issue I have spaces and hyphen in my set of strings and now doing at ContainsAll check but it always returns false. If I remove hyphen - between my strings data then it works? Can ...
4
votes
1answer
237 views

Salesforce Streaming API: configure Salesforce notification triggers for streaming

I'm trying to subscribe on notifications from salesforce using Streaming API. So I've done: I've created streaming channel I used java client I've generated events via REST API All this steps ...
0
votes
1answer
508 views

java program with Unirest is giving error

I have a client id and client sercet , i want to invoke marketing cloud rest api to get access token package TestingMC; import org.apache.http.HttpResponse; import com.mashape.unirest.http.*; ...
0
votes
1answer
43 views

Edit Update Reminder Setup by API

Is this possible to edit values of Checkboxes: Update Reminder Setup: - Enable Update Reminders for My Organization - Automatically Activate Reminders for Users with Direct Reports by some API, ...
0
votes
2answers
16 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
52 views

how to to call salesforce metadata API to get info about particular object of salesfocce in Java [closed]

how to call salesforce Apex class from Java code. I am trying to call salesforce metadata API to get info about particular object of salesfocce in Java.
1
vote
1answer
584 views

HTTP Post with redirect(302 Response Code auto ridirect to external URL)

I am accessing an Exteranl API, This Api returns the response code as "302" with HTML Response, This what iam expecting to achive, When i got the response as HTML it should redirect to the Response ...
0
votes
1answer
1k views

null argument for JSONGenerator.writeStringField()

Im getting the error 'null argument for JSONGenerator.writeStringField()' when I call the below class from Visual Page. Visualforce Page Code: <apex:page standardController="Lead" extensions="...