Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. David Edmunds

David Edmunds

Community Learner
Share
78Questions
79Answers
139.6KViews on questions

Is there any way with which I can check what all the places a specific public group is used for and then delete the public groups in Salesforce?

Yes sure, you can check what all the places a specific public group is used for and then delete the public groups in Salesforce. You can use SOQL like below to get a list of Accounts with which the record has been shared and the Cause(Rule, Manual etc). SELECT ID, AccountId , IsDeleted, RowCause FROM AccountShare…

Salesforce

Answered Jun 6, 2024 · 1.8K Views Read answer →

Why should we use sharing and without sharing in salesforce?

It is required to use with sharing and without sharing in salesforce because it Ensures that the sharing rules of the current user are not enforced. Use the without sharing keywords when declaring a class to ensure that the sharing rules for the current user are not enforced. For example, you may want to explicitly…

Salesforce

Answered May 27, 2024 · 4.5K Views Read answer →

What are the CD/CI benefits of using Scratch org?

Using Scratch.org and populating it from the version control system via sfdx force: source: push, you can get the assurance that everything you need is present in the version control. You can provide the developer with a baseline for developing, helping the delta work simply and with ease so it can manage and bring…

Salesforce

Answered Aug 24, 2023 · 1.0K Views Read answer →

How to use DescribeSObjectResult to fetch SObject field information?

To use DescribeSObjectResult to fetch SObject field information, you can do it like this: Map labelMap = new Map(); Schema.DescribeSObjectResult objectDescribe = My_Object__c.SObjectType.getDescribe(); Map fieldMap = objectDescribe.fields.getMap(); for( String fieldName : fieldMap.keySet() ) { Schema.SObjectField…

Salesforce

Answered May 16, 2023 · 900 Views Read answer →

How to get a proper output through trigger after insert salesforce?

Try this for triggers after inserting salesforce trigger PercentageTrigger on Percentile__c (before insert) { for(Percentile__c cent: Trigger.New){ if(cent.Percentage__c < 0 xss=removed xss=removed xss=removed xss=removed xss=removed>Here you don't need to do any DML operation to update data; and the if conditions…

Salesforce

Answered May 16, 2023 · 782 Views Read answer →

Why is the salesforce datetime format different in the UI and DB?

The UI format is just a more user-friendly format, shown in your preferred time zone, converted from GMT on the back end. The results of your query are the IS0-8601 format, how it is stored on the back end. The output of your Apex code is the default formatting of the Datetime primitive data type. Additional Resource…

Salesforce

Answered May 15, 2023 · 1.0K Views Read answer →

Why is there no out-of-the-box option to merge opportunities in salesforce?

Plausible reason(s) of why there is no out-of-the-box option to merge opportunities in salesforce would be: merging two Opportunities typically means merging opportunity line items as well. This would make the UI more complex than currently provided by the Merge Accounts UI; If the merge source Oppos had different…

Salesforce

Answered May 11, 2023 · 1.5K Views Read answer →

Where to get UTC to IST converter in apex?

To get utc to ist converter - Salesforce stores the time in UTC but when we use apex:outputfield in the VF page, Salesforce converts the datetime to based on the user locale so you don't need to do anything. If you still have any other use case then I suggest use below code to convert Use Date.format() method and pass…

Salesforce

Answered May 9, 2023 · 1.6K Views Read answer →

More members from the Salesforce community

Learners asking and answering questions on the same topics — follow their questions and join in.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.