Top "Salesforce" questions

A Platform-as-a-Service development environment delivered on Salesforce.

Ordering and Limiting A Subquery In Salesforce SOQL

I am attempting to retrieve the owner of a case, based on a partial match, where we choose the most …

salesforce soql
How to add comments in SOQL

Is it possible to put comments in SOQL? The Force.com explorer doesn't support basic operations like undo/redo and …

salesforce soql
Test a method returning a PageReference in Salesforce

I have a method in the controller public PageReference add() { insert technology; return null; } technology is a custom object .It …

testing salesforce apex-code visualforce force.com
error=>"Elasticsearch Unreachable: [http://localhost:9200/][Manticore::SocketException] Connection refused (Connection refused)"}

ELK with salesforce URL:http://localhost:9200/>, :error_type=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :error=>"Elasticsearch Unreachable: […

salesforce elastic-stack
Salesforce/SOQL - Given child, how to return "top level" parent account?

I have an issue where I need to find the top level parent account for a child. The best I've …

salesforce apex-code soql
Multi Level Nested JSON Parsing with Apex Salesforce

Can I parse Multi-Level nested JSON structure in APEX Salesforce, like we do in Java with GSON and Jackson libraries? { "…

salesforce apex-code apex
soql join query in SalesForce

I'm struggling with a query, I want to select all Branches, and 'join' Companies (of type Account) with again the …

salesforce soql
If Else block in Visual Force Page

I need to change the breadcrum on my VF Page based on a condition. Login is: If value is 'A' …

salesforce visualforce apex
Is there a way to retrieve Salesforce picklist values for record types using apex?

I need to gather information about what picklist values are available for every record type. I know this can be …

salesforce apex
How to put field validation on ui:inputtext in javascript using lightning component?

How to put field validation on ui:inputtext in JavaScript using lightning component? Below is my html code: <ui:…

salesforce salesforce-service-cloud salesforce-chatter sfdc-metadata-api