Last active
April 19, 2017 23:32
-
-
Save winniecluk/7ba9f6432d7d052cab2362782feabf97 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
if (pmrList.size() > 0){ | |
upsert pmrList; | |
// find event from eventList that has its id stored in pmr\'s account_c field | |
// store pmr id in event\'s pmr id field | |
for (PM_R_Treatment__c pmr : pmrList){ | |
for (Event e : eventList){ | |
if (e.AccountId == pmr.Account__c){ | |
e.PMRId__c = pmr.Id; | |
} | |
} // closes event for loop | |
} // closes pmr for loop | |
} // closes the if for pmrList |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment