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.
Month: September 2022
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 […]