Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 110512

Questions relating to Apex, the native programming language for the Force.com platform. Use it for general questions on syntax, errors, constructs, and rules of use. Most questions should include a code *excerpt* to help answerers understand specifically what has gone wrong or why you need help.

6 votes

I am getting error in Query

There are a few syntax errors with the SOQL query that are causing this error to occur. It looks like you are trying to alias the field names; however, this feature is only available for aggregate qu …
Tyler Campbell's user avatar
0 votes
Accepted

common.apex.runtime.impl.ExecutionException: Invalid conversion from runtime type String to ...

When the apex:selectList multiselect attribute is set to false, then the value attribute must be of type String (see here). In your code example the apex:selectList has a size attribute of 1, which im …
Tyler Campbell's user avatar
0 votes

Problem with Webservice returning invalid JSON

To convert the list object to valid json you can use the Apex JSON class provided by Salesforce - https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_System_Json.htm @RestResource …
Tyler Campbell's user avatar
4 votes

Salesforce APEX Crypto hash vs Javascript Crypto hash

Removing line 2 from your apex code will generate a hash that is equal to the javascript code example. const crypto = require('crypto') let hmac = crypto.createHmac("sha256", 'KEY_HASH'); hmac.update( …
Tyler Campbell's user avatar