How do prevent to delete the Records only Owner or Creater of the Record in Salesforce? If object model is public and delete button is enabled to pagelayout, but Owner …
SOQL
- APEXSALESFORCESOQLTrigger
-
How do Count the number of child records using SOQL? Its possible to collect the child records count from parent object using following SOQL: SELECT Id, Name, (SELECT id FROM …
-
SObject row was retrieved via SOQL without querying the requested field Error: SObject row was retrieved via SOQL without querying the requested field to overcome, we can add the standard …
- SALESFORCESOQL
filter criterion for field ‘createdDate’ must be of type dateTime and should not be enclosed in quotes in SOQL
filter criterion for field ‘createdDate’ must be of type dateTime and should not be enclosed in quotes in SOQL CreatedDate between two specific dates, but getting errors like when sending …
- APEXSALESFORCESalesforce CustomizationSalesforce.comSOQL
How to get the Current Date and Year Using Apex Class?
How to get the Current Date and Year Using Apex Class? System.debug(‘************ ‘ + system.today().format()); System.debug(‘************ ‘ + date.today().format()); Output:- ************ 07/16/2014 ************ 07/16/2014 How to get current year using …
- APEXSALESFORCESalesforce CustomizationSalesforce.comSOQL
How to Access Query Results (SOQL) Values using MAP in Apex Class?
How to Access Query Results (SOQL) Values using MAP in Apex Class? For Example: This is a After Trigger in Account: for (Account acc : Trigger.new) { accId.add(acc.Id); } map<Id, …
- APEXSALESFORCESalesforce.comSOQL
How to get the Salesforce Account Object Address details using SOQL?
How to get the Salesforce Account Object Address details using SOQL? Salesforce Account Objects Contains Two Address fields and Account and geolocation its seems like a compound fields. 1) Billing …
- APEXSALESFORCESalesforce CustomizationSOQL
How do get the Recently Viewed items using Soql Apex Class
How do get the Recently Viewed items using Soql Apex Class. As per the new Summer ’13 Release salesforce introduced the new Standard Object called RecentlyViewed, so using that we can …
-
How to fetch the Salesforce Profile Name From User Object Using SOQL Using Below SOQL, We can fetch the Profile name from User Object in single query itself: Select Username, …
-
SOQL statements cannot query aggregate relationships more than 1 level away from the root entity object. SOQL QUERY: Example1: SELECT Id, Name, (SELECT WhoId, WhatId, Subject, AccountId, (SELECT Id, EventId, …