I have below batch apex code when I try to pass certain parameters through parameterized Constructor, I am getting apex batch error as “Start did not return a valid iterable object” Here is the apex batch code. Got it fixed by below change in the Apex Batch Class Constructor
Author: doozyspot
substringAfter() in apex Salesforce
String beforedz = ‘doozy-spot’; String afterdz= StringName.substringAfter(‘-‘); System.assertEquals( ‘spot’, afterdz);
Chrome Browser Extensions for Web Page Auto Refresh
Auto Refresh Plus Refresh page automatically with powerful page monitor features Auto Refresh Plus comes in handy to any user who needs to perform automatic web page refresh at certain times efficiently. It also provides content detection support, which is useful when monitoring content included in a dynamic web page. Key Features (1) Default Time […]
Salesforce Quick bytes / Cheat Sheet
When we had issue with one of the users complaining about his access, we can find easily whether user has access or not with below SOQL SELECT RecordId,HasReadAccess,HasEditAccess FROM UserRecordAccess WHERE UserId=’00541000005yQ1V’ AND RecordId IN (‘5001L00001J9OC4QAN’) Salesforce NOOVERRIDE=1Use /e?nooverride=1 for classicUse /edit?nooverride=1 for lightning edit Use /view?nooverride=1 for lightning record view
Salesforce Lightning Record Edit Form – Aura and LWC
use record edit form component to create a form that’s used to add a Salesforce record or update fields in an existing record on an object. The component displays fields with their labels and the current values and enables you to edit their values. lightning record edit form supports the following features. Editing a record’s specified […]
Salesforce Aura Component Map, Dynamic picklist / dropdown
Component markup Controller/Helper Java script var upOptions = [{ label: ‘Please Select’, value:” }]; upOptions.push({ label: ‘Account Upload’, value:’Account Upload’ }); cmp.set(“v.uploadOptions”, uploadOptions);
Edge Browser / Windows 11 Edge Trusted Sites – Adding Trusted Sites
Search in the Start Menu for the Control Panel.Click or double-click the Internet Options icon.In the Internet Properties window, click the Security tab.Select the Trusted sites entry and click the Sites button.Enter the address for the trusted website in the Add this website to the zone text field.Click the Add button, then click OK to […]
Salesforce Aura Component Refresh View
To refresh a view in both custom and standard component use below $A.get(‘e.force:refreshView’).fire();Ex: From the below table Child details are multiple child records, when adding/deleting/updating child records costs Parent summary table top one should get update with totals. This can be done with simple refresh call which will update parent.
Salesforce Apex/Standard REST API Response Suppresses Null Values for where not required
Removing null values in REST API response / Beautify Response / Suppresses null values / JSON Serialize There is an out of box method available to remove all the null values from the JSON response it suppresses null values when serializing Apex objects into JSON content. Syntax:public static String serialize(Object objectToSerialize, Boolean suppressApexObjectNulls) Parameters objectToSerializeType: ObjectThe Apex object to serialize.suppressApexObjectNullsType: BooleanIf true, remove null values before […]