How to find manager list using apex class in salesforce Its possible to find out from managerId field in User Object and below is the code to find manager hierarchy Continue Reading »
How to fetch Contact details from Opportunity Contact Roles using SOQL in Salesforce? SOQL QUERY: SELECT Id, Opportunity.Name, Contact.Email, Contact.Name, Role, isPrimary FROM OpportunityContactRole Where OpportunityId =’OpportunityID’ Here: OpportunityID – Continue Reading »
How to get the logged in User Profile Name using Apex Class? We can able to get the profile details using the Profile Standard Object SOQL Query: Select Id, Name Continue Reading »
How to get the Role name and Profile Name from User Object using SOQL We can able to get the Role Name and Profile Name details from User Standard Object Continue Reading »
Differences between SOQL and SOSL in Salesforce? SOQL (Salesforce Object Query Language) Let’s you query a object in salesforce. You can have nested queries. Returns a list of sobject records. Continue Reading »
How to find the distinct values of a particular field in a SObject using SOQL Query? Its possible by using the GROUP BY Clause in an SOQL Query. For example: Continue Reading »
What are Dynamic Queries in SALESFORCE? A dynamic query is a SOQL or SOSL query which can be constructed and executed at runtime. It is the process of constructing the Continue Reading »
How to follow entities (Accounts, Contact, Opportunities, Custom Objects) in Chatter? By Adding records to the ‘EntitySubscription‘ object. This object is available only through the API. EntitySubscription Objects stores which Continue Reading »
Clear Users from Debug logs using SOQL in Salesforce Follow below steps in Production/Sandbox/Developer Organization if you see the too many users added in debug logs Setup -> Administration Setup Continue Reading »
How do Query Queue Id, Name in Salesforce Apex? Queues are stored as a Group SObject: For Example: Group groupDetail = [SELECT Id, Name, DeveloperName, Email, Type FROM Group where Continue Reading »