Skip to main content

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
0 answers
69 views

I am working on a Salesforce integration project that requires subscribing to Platform Events using the Pub/Sub API. Due to constraints, my Java application must run on Java 8 (1.8), using Eclipse ...
g.khoa21's user avatar
0 votes
0 answers
42 views

We tried a variety of options for this big object 'ActivityFieldHistory'. Many failed attempts. We use this library https://github.com/jesperfj/force-rest-api to execute the following query. SELECT Id,...
Donutloop's user avatar
  • 101
0 votes
0 answers
48 views

We have a SOAP integration from a Java-based application towards Salesforce. The Java app uses a jar file generated from the enterprise WSDL to connect to Salesforce. Before, the application used to ...
Sisir's user avatar
  • 111
0 votes
0 answers
662 views

I have installed the DataLoader v63.0.0 from this link and also installed the current latest JDK/JRE: When running the dataloader.bat inside the installation folder, it did not work: At the %...
Minh Tran's user avatar
1 vote
0 answers
147 views

I have a test connected app setup in my scratch org with api, refresh_token and required scope enabled. I also added admin approved profiles and permission set to the connected app. I have three users ...
Jessica Sun's user avatar
1 vote
1 answer
328 views

I have a piece of JAVA code as follows: public static byte[] PackFile(String file) throws IOException { File f = new File(file); if (f.exists()) { String fileName = f....
Zhang Ou's user avatar
  • 433
2 votes
0 answers
66 views

I am having a weird issue when I try to create a Heroku App from my Canvas App Previewer in Salesforce. I have already registered on Heroku and added my Billing details. Now I navigate to Canvas App ...
Madhurima's user avatar
  • 1,475
0 votes
1 answer
184 views

I am trying to selectively update the record type visibility of a particular record type for a particular profile. Would the updateMetadata api be able to do this? https://developer.salesforce.com/...
jacksparrow007's user avatar
0 votes
1 answer
88 views

I would like to retrieve the recordTypeVisibilities for all the record types for a particular profile. Is there a way to achieve this using the readMetadata() API call instead of doing a file based ...
jacksparrow007's user avatar
1 vote
1 answer
322 views

I need to release an updated version of my app. Everything was working fine until two weeks ago when I could build it without any issues. However, yesterday when I tried to build it again, I ...
Willian Ferreira's user avatar
1 vote
1 answer
188 views

Trying to add the "Force Tooling API" dependency to my java project from the https://mvnrepository.com/artifact/com.force.api/force-tooling-api/32.0.0 repo: <!-- https://mvnrepository.com/...
DrWebber's user avatar
  • 101
0 votes
1 answer
157 views

I am trying to build tooling around sandbox management but pretty much got stumped by how I would even test this without using Production. My client app is intended to be build on Java and using the ...
Apex Srinivas's user avatar
0 votes
1 answer
588 views

I have implemented the React Native SDK and I am successfully receiving push notifications on both platforms. The problem I am having is that, on Android only, the notification builder seems to be ...
Dan Woodward's user avatar
0 votes
0 answers
87 views

Query: Select count(id) from Account When i execute the above query using java code I am unable to fetch the records it gives null value whenrun through java code. From the following link https://...
Yashaswini's user avatar
0 votes
2 answers
599 views

I bulk-updating phone numbers on objects, following method working on single or multiple numbers, but when I delete conditions in query for low amount of records, its exception CPU time exceeded. So I ...
jur1s77's user avatar
  • 47
0 votes
3 answers
11k views

I keep getting the below message but I have checked and set up the path in Java: Home to the path mentioned in the below message ("salesforcedx-vscode-apex.java.home": "C:\Program Files\...
Rahul Raju's user avatar
1 vote
2 answers
795 views

I have two public classes class A and class B in two different packages. So when I try to initialize class B inside class A, it throws a null pointer exception. Something like : public class A { ...
Bishwaroop's user avatar
0 votes
1 answer
784 views

In my data extension, I have two fields / columns: JobID DE_NAME In this use case i want to receive the value for JobID and DE_NAME (1st row only) var queryAllAccounts = true; var cols = [&...
kl2's user avatar
  • 363
0 votes
1 answer
649 views

Currently, I am using the following approach to define my Data Extension Platform.Load("core","1"); // instantiate the WSProxy object to make API calls var api = ...
kl2's user avatar
  • 363
0 votes
1 answer
119 views

Java Code: I have coded the following using REST API to connect to Salesforce. Following code is from the URL to get Schema or fields of AccountTeamMember (standard) object after establishing ...
Akhil Umap's user avatar
1 vote
3 answers
1k views

I'm trying to make use of the Jira Rest API from within Salesforce. I am somewhat useless with Java, so hopefully someone can point me in the right direction. I can use the following Apex to get an ...
domb84's user avatar
  • 43
-3 votes
1 answer
6k views

I have a list like that: List l = new List(); l.add('a'); l.add('b'); l.add('1'); l.add('2'); l.add('3'); How can I add all those values at once without using so many add methods? In Java we can do ...
NonameJavaNoob's user avatar
-1 votes
1 answer
118 views

Please note I have checked previously posted questions related to this topic, but my issue is not resolved. All the related and required jar files are in one folder (C:\SOAP) and I run below command, ...
Quest_sfdc's user avatar
1 vote
0 answers
150 views

I am querying some records of type ContentVersion, changing Title then updating that records through ContentVersion contentVersionToUpdate = new ContentVersion(); contentVersionToUpdate.setTitle(...
Mohamed Houssein Douici's user avatar
2 votes
2 answers
337 views

I'm looking for some solution, which helps me to write less code in Apex. Is there any tool like Lombok for Java.
michal98kowalczyk's user avatar
0 votes
0 answers
716 views

I am trying to connect to Salesforce from java client using SOAP api. All the examples in the documentation point to a using ConnectorConfig class to connect from java. However I need to set wsse:...
Quest_sfdc's user avatar
1 vote
1 answer
1k views

I am trying to do an api call and am getting a 403 error. I am putting the apex code below that is getting the 403 error. We opened a ticket with the company that we are sending the callout to and ...
disasterlooms's user avatar
0 votes
1 answer
234 views

I am trying to upgrade the dataloader to mitigate the log4j vulnerability. I have tried to follow the steps on the github repo but i am getting this error trying to build with "./dlbuilder.sh -n&...
userRR's user avatar
  • 126
-2 votes
1 answer
162 views

I wanted to write exact below java code in apex. I am aware of EncodingUtil.base64Decode() and Crypto class method in SF. But this byte array and Cipher, etc , am not aware of it. class Encyrpt{ ...
Bhushan Charde's user avatar
1 vote
0 answers
2k views

I have set up Mutual Authentication on my Salesforce org so that my project can use two ways SSL with Salesforce. Here are my steps: 1- I use a CA sign certificate (GoDaddy) and upload it to the Set ...
NoName's user avatar
  • 111
1 vote
1 answer
2k views

I wanna enable Apex Tests in my workspace in VS Code, but I am unable to find out what is wrong. Here are my possibilities: Here is the setting that I am putting... {"salesforcedx-vscode-apex....
Olavo Alexandrino's user avatar
0 votes
1 answer
135 views

I have just attempted to deploy onto Heroku a change to my Java 8 application, which includes an XSL transformation. The deploy fails because the Maven build fails, with the message: cannot find ...
Jeremy Hicks's user avatar
0 votes
1 answer
367 views

I'm struggling to find a way to set my accountID value to the returned value of my get parentAccountName() method. The method works and returns the value successfully, but when trying to assign it to ...
joshholloway's user avatar
1 vote
1 answer
249 views

I've faced an issue. I'm trying to create a method to update a requirement in Salesforce. (I'm using Selenium - Java) and I have the following error. " The method update(com.sforce.soap....
Test's user avatar
  • 13
0 votes
1 answer
289 views

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?
Jagadeesh's user avatar
  • 109
0 votes
1 answer
358 views

Need assistance with how can I read apex class lines? which API should I use for accomplishing this REST or SOAP? Please help.
Sakshi Sehdev's user avatar
1 vote
0 answers
190 views

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 = ...
Curious Raccoon's user avatar
0 votes
1 answer
205 views

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 ...
sree_me's user avatar
5 votes
1 answer
1k views

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 ...
vkomarag's user avatar
0 votes
1 answer
99 views

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 ...
NiharGht's user avatar
0 votes
1 answer
942 views

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 ...
NiharGht's user avatar
0 votes
1 answer
120 views

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 ...
Piyush Kalra's user avatar
0 votes
1 answer
242 views

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 ...
Srini's user avatar
  • 1
0 votes
2 answers
440 views

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: ...
Cisco Osterman's user avatar
0 votes
2 answers
176 views

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) { ...
Roy's user avatar
  • 3
0 votes
1 answer
153 views

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 = ...
raman's user avatar
  • 3
0 votes
1 answer
1k views

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 ...
raman's user avatar
  • 3
0 votes
0 answers
166 views

I need to download more than 2500 Rows from tables of Salesforce Marketing Cloud with following code(for ETSubscriber): ETConfiguration configuration = new ETConfiguration(); configuration....
Serg's user avatar
  • 1
1 vote
1 answer
565 views

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 ...
LoveBomber777's user avatar
0 votes
1 answer
155 views

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 ...
Alberto PM's user avatar

1
2 3 4 5
9