Skip to main content

Timeline for Getting Values Outside a For Loop

Current License: CC BY-SA 4.0

9 events
when toggle format what by license comment
Oct 24, 2019 at 16:55 vote accept Kris Webster
Oct 21, 2019 at 22:19 answer added Jayant Das timeline score: 0
Oct 21, 2019 at 21:42 comment added Kris Webster it is not. EmployeeId is the Id associated with the system that we are pulling this information from, and we have each Salesforce users unique Id from that system in a field on their contact records (Zenefits_ID__C), so we are finding all the records where the EmployeeID matches with the Zenefits_ID__c and then inserting new records on the contacts in Salesforce based off of that. @JayantDas
Oct 21, 2019 at 21:36 comment added Jayant Das Is employeeId same as the Contact's Id that you are iterating in your next loop?
Oct 21, 2019 at 21:35 comment added Kris Webster The dates are associated with the employeeId, so how would I do that ? @JayantDas
Oct 21, 2019 at 21:32 history edited Kris Webster CC BY-SA 4.0
deleted 61 characters in body
Oct 21, 2019 at 20:56 comment added Jayant Das Are the dates in consideration here different for different employeeId? You may just like to use a Map<Id, String> here and be able to utilize that in your next loop to fetch the corresponding value.
Oct 21, 2019 at 20:55 history edited Jayant Das CC BY-SA 4.0
added 338 characters in body
Oct 21, 2019 at 20:51 history asked Kris Webster CC BY-SA 4.0