Created
February 14, 2020 19:31
-
-
Save brianbier/65db651af6e7a3c5ea7aac8d9e373d55 to your computer and use it in GitHub Desktop.
Revisions
-
brianbier renamed this gist
Feb 14, 2020 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
brianbier created this gist
Feb 14, 2020 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ //After Inserting opportunities List<Opportunity> opptys = new List<Opportunity>(); insert opptys; // Get the IDs of the opportunities we just inserted Map<Id, Opportunity> opptyMap = new Map<Id, Opportunity>(opptys); //This will create a map of the opportunities // Will allow you to do this List<Id> opptyIds = new List<Id>(opptyMap.keySet());