-
-
Save arun12209/1d690ca9c07e6b71b33d10b2cbb3b913 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set<Id> accountIds = new Set<Id>(); | |
for (Contact con : [SELECT Id, Name, AccountId FROM Contact WHERE Account.Name = 'Some Account']) { | |
accountIds.add(con.AccountId); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment