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
14
votes
3answers
6k views

Salesforce Metadata Api/ Tooling Api to build changesets

I was wondering if it was possible to use any of the API's provided by SF to build an external (C#, Java) application to manage building changesets. Building changesets is very tedious when trying ...
5
votes
1answer
2k views

Trying to get SymbolTable of an Apex class and get null

I'm quering Apex classes using Tooling API QueryResult queryResult = toolingConnection.query("select Id, ApiVersion, Name, NamespacePrefix, SymbolTable, Body from ApexClass where NamespacePrefix = ...
8
votes
1answer
4k views

REST API: How to update active values for picklist?

I need to update the Picklist values for a custom field on a custom object. I have already populated the Available Values via the Enterprise and Metadata Java APIs, but now I need to move the newly ...
21
votes
1answer
2k views

Does Apex transpile into Java?

We know that the Apex syntax is very similar to Java. I have observed that on some occasions, while running some Apex code, you may get a Java exception. I assume that Apex runs on Java. But my ...
13
votes
2answers
11k views

Can Data Loader run with 64-bit Java?

I have uninstalled all old versions of the data loader and installed the newest one: 36.0.0 I cleaned up all Java stuff on my 64-bit Win 7 machine and there's only one version left, it's this version ...
8
votes
0answers
279 views

Make custom, in-memory “Lightning Data Service” work

Lightning Data Service is great. Multiple components are magically linked to database records. When records change in the db component show that change. Imagine this to work without saving change to ...
6
votes
2answers
936 views

java.sql.SQLException error caused by OpportunityLineItem DML request

In our Salesforce.com organization, we have a trigger on the OpportunityLineItem object (insert/update), automatically generating OpportunityLineItemSchedule. The product is schedule by revenue, ...
4
votes
2answers
2k views

Invalid Date format from Database

Trying to insert a Contact from an Oracle Database: Contact Database Entity: @Temporal(TemporalType.DATE) @Column(name="DOB") private Date dob; Contact SOAP SObject set Birthday: Calendar ...
1
vote
2answers
3k views

ErrorCode 180008 - Unable to queue Triggered Send request. There are no valid subscribers

I'm trying to send an email by ET rest api in Java. I already successfully sent a SMS and got a token in response, but an error is triggered with emails. Here is the JSON I send : { "To": {"...
3
votes
2answers
2k views

Adding Bulk data to Data Extension Object in Exact target

I have a number of CSV's with each CSV having a million row sets. Now i have to send those CSV's to particular Data Extension Object in Exact target. I am aware of adding a row to data extension ...
1
vote
1answer
2k views

Developing ExactTarget app in JAVA SDK [closed]

I am newbie to ExactTarget app development. I'm trying to build an app using Java SDK but I couldn't find any sample code to begin with. Can anyone provide me sample Java code for ExactTarget app ...
0
votes
1answer
433 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 ...
25
votes
1answer
2k views

What is Apex built on?

Earlier today, a coworker asked what exactly Apex was. My lazy answer for those unfamiliar with Salesforce development is usually "it's like Java, but for Salesforce.com," to which he replied "is it ...
7
votes
1answer
2k views

Unable to upload an Attachment - Bulk API

I'm using Bulk API to upload attachments and getting an error: InvalidBatch : Failed to parse CSV header. Number of Records Processed: 0 While I'm getting following error at the Salesforce ...
6
votes
1answer
10k views

Displaying date in visualforce force page in required format

I have a date fields which on displaying on VF page displays like 12/10/2012. But i want to display it like December 10, 2012. How can i do it? i am not getting the easy way.
4
votes
1answer
500 views

Error when trying to create an User-Initiated object (ETEmailSendDefinition)

I'm trying to use fuelsdk-0.999.jar and fuelsdk-0.9999.jar (both gave me the same error) in a Java projetc downloaded from https://github.com/ExactTarget/FuelSDK-Java/releases and when I try to call ...
3
votes
2answers
5k views

How to add a field using the SOAP or other API

I am using the SOAP API to load data for multiple SObject types into a completely new Developer sandbox. I have manually added external ids to many of the objects through the native interface so that ...
3
votes
1answer
10k views

Exporting Data to CSV file via Bulk API

I am having trouble with my Bulk API code. What I want is to take the records in the Opportunity object, and a few of their fields, and export them to a csv file for reading. The code is currently as ...
2
votes
1answer
7k views

Create an Apex class that calls a REST endpoint and write a test class - Trailhead

Create an Apex class that calls a REST endpoint and write a test class. To pass this challenge, create an Apex class that calls a REST endpoint to return the name of an animal, write unit tests that ...
1
vote
4answers
362 views

REVIEWED: Why I see the count of completed/queued/errored on Triggered Sends to 0, despite return msg of API call is “Triggered Has Been Send queued”?

Why I see the count of completed/queued/errored on Triggered Sends to 0, despite the return message of API call is "Triggered Has Been Send queued"? REVIEW: I tried the sames scripts on another ORG ...
9
votes
3answers
13k views

Pass a string variable from controller into the Javascript function

I have a method which returns a Yes or No String depending on it's outcome. The method is inside a standard controller extension. How do I pass the returned String into a function on the page in ...
8
votes
2answers
5k views

Create a record in an object with lookup fields through java soap

I am pretty new with Salesforce and I am doing an integration where I have to update Salesforce with data from a Business System. I have a problem when trying to create new records in an object with ...
5
votes
2answers
7k views

Using Salesforce Partner API from community portal

I've created a custom button on the opportunity layout which calls out to an external java app. It passes the session id and the partner API URL. The external app then creates a SOAP binding (...
5
votes
2answers
1k views

Retrieving All column names from a DataExtension

I am retrieving data from a data extension using RetrieveRequest. Following is a snippet of my approach: RetrieveRequest retrieveRequest = new RetrieveRequest(); retrieveRequest.setObjectType(...
4
votes
1answer
3k views

Call Restful SFDC service from Java

I'm still working on getting the authentication working but having issues. I have been getting a 401 unauthorized error. All of the items I have hidden I am sure are correct values UNLESSS I need to ...
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....
2
votes
2answers
1k views

Java sql.TimeStamp to Salesforce

I have a Java mapping that takes a field of type java.sql.Timestamp and insert it into Salesforce. Example of a field in the db: 2013-10-17 13:01:01 When it is inserted into Salesforce it looks ...
1
vote
2answers
840 views

Create picklist field with picklist values

I am using Metadata WSDL along with Partner WSDl to work on metadata API to create fields. I am able to create fields of type text, checkbox, etc, but I need to create a picklist field and add ...
1
vote
2answers
966 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 ...
0
votes
1answer
483 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
1answer
375 views

JSONGenerator issue

I want to return a JSON from my Apex Rest web service. There is a list of objects I must return. If I just make the return type of the method as return myCustObjList Edit here goes the datatype: ...
0
votes
1answer
1k views

Partner API proxy authentication doesn't work

We use following code to connect to Salesforce using Partner API Java library (com.force.api.force-partner-api), and we tested tunneling through local proxy with proxy authentication (username and ...
0
votes
1answer
524 views

Cannot login into Salesforce with Java using Proxy Server

I wrote Java code to login to Salesforce and ran this code on a firewalled server. For this, I have to specify the proxy url and proxy port before connecting to Salesforce due to the firewall. However,...
-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 ...