Fixed: Error in sendShipmentScheduledNotification service
sendTo field was wrongly being fetched from PartyAndContactMech view to get emailAddress, replaced it with the correct entity field infoString.
Thanks: Jacques for input.
@@ -470,7 +470,7 @@ def sendShipmentScheduledNotification() {
sendTos << from("PartyAndContactMech")
.where(partyId: entry.getKey(),
contactMechTypeId: "EMAIL_ADDRESS")
- .getFieldList("sendTo")
+ .getFieldList("infoString")
}
sendEmailMap.sendTo = sendTos.join(',')
