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

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.



Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow