Posts

Showing posts with the label List of Id

Salesforce Fact #611 | Set of Ids to List of Ids during deletion

Image
Suppose we are having a map of sobject records. In the key, it has a value for each entry but the value might be empty for that corresponding entry. We need to delete the sobject records in the map. In that case, we can convert the keySet() of the map to a List of Ids and perform the deletion. Attached is the screenshot.