We currently have two separate alerts. One that prints a list of devices and another that prints a list of records related to those devices (I used the map command to iterate over the list of devices to print the list of records for each device).
So currently we get two emails, one right after the other. The first has the list of devices and the second has the records for those devices.
Is there a way to print the list of devices and the list of all their records right below in a single email?