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

salesforce CICD vs Traditional CICD [closed]

I found people were saying building up salesforce ci/cd pipeline is difficult as compare to the traditional(java/dot net) CICD pipeline. But I didn't figure out how it is difficult and what is the ...
0
votes
0answers
19 views

Partner connection code for two factor authentication [closed]

Enabled the Multi-Factor Authentication Login Requirements for API Access. I need to write the code to get the partner connection. Could you help me with this
0
votes
1answer
31 views

Can I upload Java class as a Jar file in Static Resource and use that Java class components in Apex class?

I have piece of code in Java language, I need to use it in apex class. Let me know if I can upload Java class as Static Resource and use it in Apex class?
0
votes
0answers
15 views

Set up Salesforce push notification for Android using SDK

I would like to integrate push notification on Android application using Salesforce. I have integretaed Salesforce SDK on the Android applicaiton. Calling PushMessaging.register function i have ...
0
votes
1answer
25 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
21 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 ...
1
vote
0answers
47 views

Convert decoding from JAVA to apex

I have a method that was implemented on JAVA, but I need it in Apex public static String decryptAccountInformation(String websitekey, String document,String encryptedAccount) { String key = ...
0
votes
0answers
44 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
31 views

What's the best way to pull all the Metadata types from the Salesforce?

I have used describeMetadata() call to fetch the xml names but it's showing only few out of what we have in the Metadata coverage url. I was wondering if there is a way to pull all the Metadata types ...
4
votes
1answer
642 views

Data Loader on MacOS - java.lang.NullPointerException with Zulu/OpenJDK 11

Last login: Thu Aug 27 14:29:01 on ttys000 /Users/vamshikrishna/dataloader/v49.0.0/dataloader.command ; exit; vamshikrishna@MacBook-Pro-6 ~ % /Users/vamshikrishna/dataloader/v49.0.0/dataloader.command ...
0
votes
1answer
27 views

Mismatch in custom object field count in rest api and salesforce UI

I have a java codebase for performing CRUD on salesforce as an rdbms db. I was looking at the response on my rest api and that on SF setup UI of a custom object that I create in object manager. I have ...
0
votes
1answer
192 views

Usage of salesforce bulk api for integration with java using rest

I am new to salesforce, hence this long post. I wanted to create a java app to do CRUD on salesforce. I have followed the rest api tutorial, and created app for fetching data from salesforce using ...
0
votes
0answers
34 views

I want to change color of tablesorter vector icon in header. Its grey I want to change it to white

I am using the following css and js --- $(document).ready(function(){ $("table").tablesorter({ theme : 'jui', headerTemplate : '{content} {icon}', ...
0
votes
1answer
19 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
36 views

How to create a records as another user with Salesforce OAuth AccessToken

Am able to create the records as an admin using the OAuth access_token. But, here I need to create a record as another user with the OAuth access_token. Could you please share the sample code. Thanks ...
0
votes
2answers
96 views

How to retrieve status of an Automation using Java FuelSDK

I'm using Java 8 with FuelSDK and am trying to retrieve some Automations but can however not wrap my head around how do it. I am able to fetch the DataExtensions using the following code: ...
0
votes
2answers
37 views

Optimization of code removing extra if and else block

I need to remove the extra if and else loop as per the req and need to make it short for reading of the code should be easy. can anyone suggest some better for below: if (data[0].FA_N__c) { ...
0
votes
1answer
44 views

Lightning Web Component findIndex [duplicate]

Hi I need help with the method that follows: var ages = [3, 10, 18, 20]; function checkAdult(age) { return age >= 18; } function myFunction() { document.getElementById("demo").innerHTML = ...
0
votes
1answer
48 views

Javascript ternary operator

I need to set a constant value as true or false for the particular scenario not sure correct working or not const test = data.findIndex(d => d.Fname === '' && d.Lname === '') < 0 ? false ...
0
votes
0answers
162 views

Authentication error with JWT token - Server returned HTTP response code: 400

I am trying to authenticate to Salesforce with JWT Bearer flow but getting error- java.io.IOException: Server returned HTTP response code: 400 for URL: https://login.salesforce.com/services/oauth2/...
1
vote
2answers
653 views

Data Loader Won't Open

I have followed the instructions given for downloading Data Loader to a T. Every time I tried to open Data Loader after installation, it would just say I don't have zulu installed and then just close.....
0
votes
1answer
215 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
66 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
1answer
78 views

Check if a substring is repeating in a string

My requirement is to find if a unknown string of 4 chars is repeating of a string of length 16. So basically, INPUT : "shgtHellorhecHello" Should return true. Only known thing to us is that the ...
0
votes
1answer
48 views

Salesforce Marketing Cloud download API Biggest Table

I'm trying download, for Soap calls, tables of Salesforce Marketing Cloud with 1 million or more rows but the process is very slowly. For each download I can only get 2.500 records, ok. I have used ...
1
vote
0answers
19 views

Serialize Workflow object to XML

I'm developing a test application that modifies the workflow by reading the retrieved Workflow files that are downloaded. The files are read, the workflow switch is modified and submitted to Metadata ...
0
votes
2answers
47 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
137 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
43 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 ...
4
votes
1answer
1k views

how to call NodeJS from apex using Evergreen function

Salesforce has recently announced the Evergreen serverless functions. Information about the Evergreen can be found: https://developer.salesforce.com/blogs/2019/11/introducing-salesforce-evergreen....
0
votes
1answer
271 views

Connecting to pushtopic event via Java Client via Proxy

I am trying to run the emp connector sample provided by Salesforce. When i tried running the sample, i was getting socket timeout. After investigating, i realized that our company is behind firewall ...
3
votes
0answers
303 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
2
votes
0answers
41 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 ...
1
vote
1answer
36 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
34 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
45 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; ...
1
vote
1answer
621 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
49 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
67 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
499 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
159 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
47 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
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
511 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
56 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 ...
5
votes
1answer
940 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
65 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
1answer
81 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
648 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
22 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 ...

1
2 3 4 5
8