| Line 1976... |
Line 1976... |
| 1976 |
for (Lead lead : leadsToNotify) {
|
1976 |
for (Lead lead : leadsToNotify) {
|
| 1977 |
if (authUserKeyMap.get(lead.getAuthId()) == null) {
|
1977 |
if (authUserKeyMap.get(lead.getAuthId()) == null) {
|
| 1978 |
continue;
|
1978 |
continue;
|
| 1979 |
}
|
1979 |
}
|
| 1980 |
String notificationMessage = String.format(templateMessage, lead.getFirstName(), lead.getLastName(),
|
1980 |
String notificationMessage = String.format(templateMessage, lead.getFirstName(), lead.getLastName(),
|
| 1981 |
lead.getAddress(), String.format(templateMessage,
|
- |
|
| 1982 |
timeFormatter.format(lead.getLeadActivity().getSchelduleTimestamp())));
|
1981 |
lead.getAddress(), timeFormatter.format(lead.getLeadActivity().getSchelduleTimestamp()));
|
| 1983 |
SendNotificationModel sendNotificationModel = new SendNotificationModel();
|
1982 |
SendNotificationModel sendNotificationModel = new SendNotificationModel();
|
| 1984 |
sendNotificationModel.setCampaignName("Lead Reminder");
|
1983 |
sendNotificationModel.setCampaignName("Lead Reminder");
|
| 1985 |
sendNotificationModel.setTitle("Leads followup Reminder");
|
1984 |
sendNotificationModel.setTitle("Leads followup Reminder");
|
| 1986 |
sendNotificationModel.setMessage(notificationMessage);
|
1985 |
sendNotificationModel.setMessage(notificationMessage);
|
| 1987 |
sendNotificationModel.setType("url");
|
1986 |
sendNotificationModel.setType("url");
|