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 →
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 →
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 →
From documentation: The upsert in salesforce statement matches the sObjects with existing records by comparing values of one field. If you don’t specify a field when calling this statement, the upsert statement uses the sObject’s ID to match the sObject with existing records in Salesforce. Alternatively, you can…
Salesforce
Answered May 23, 2023
·
1.2K Views
Read answer →
Salesforce Platform vs Salesforce License Salesforce licenses are designed for users who require full access to standard CRM and Force.com AppExchange apps. CRM apps are anything that requires access to Standard Objects like... Leads Opportunities Forecasts Cases SolutionsSalesforce Platform licenses are designed for…
Salesforce
Answered May 23, 2023
·
1.3K Views
Read answer →
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 →
To run Source Code Scanner / Salesforce Checkmarx against a Scratch Org -If you run your scan through the partner security portal, on https://security.secure.force.com/sourcescanner/PackageScannerMain, then you will find that you select package versions, not orgs, for the scan to run against.
Salesforce
Answered May 16, 2023
·
1.1K Views
Read answer →
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 →
I was having some issues with my Named Credential (Named Principal) AWS Signature Version 4 and found some resolutions for the below error: HttpResponse resp = http.send(req); System.UnexpectedException: Script-thrown exception1. Named Credential Name Double check your 'callout:Named_Credential' in Apex matches the…
Salesforce
Answered May 15, 2023
·
5.6K Views
Read answer →
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 →
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 →
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 →