You need to sign in to do that
Don't have an account?

Contact Map
In the code snippet below I am able to see the Contact ID in the variable advisorIDS. What would I add to the code to see another field on the contact record?
Thanks in Advance
public void doAutoSubscribe(Map<Id, Contact> contactMap) {
Set<ID> advisorIDs = contactMap.keySet();
system.debug(' ADVISOR ID----- >' + advisorIds);
}
Thanks in Advance
public void doAutoSubscribe(Map<Id, Contact> contactMap) {
Set<ID> advisorIDs = contactMap.keySet();
system.debug(' ADVISOR ID----- >' + advisorIds);
}
To get the records id you need to try RecordTypeId instead of RecordType, So get recordId from Contact Map and then you can select RecordType > Name by using that Id by firing query on record Type filter by Id
All Answers
To get the records id you need to try RecordTypeId instead of RecordType, So get recordId from Contact Map and then you can select RecordType > Name by using that Id by firing query on record Type filter by Id
Then when you want to get details for a field you can do this: