# Export messages in batch

How to export message history for multiple devices with time and field selection.

Audience: [Device manager](/help/by-role/device-manager/)

## Who is this for

Device managers who need message history for investigation or reporting.

## Outcome

You can export CSV or XLSX files for the selected device set and date range.

## Before you start

- You are signed in.
- You have access to the selected devices.
- Export rights are available in the device list.

## Steps

1. Open Devices > List tab.
2. Select devices or All in group.
3. Open Batch operations > Export messages.
4. Set From and To date.
5. Choose fields and actions, or export all data when mixed types prevent shared keys.
6. Click Export to CSV or Export to XLSX.

## Practical checks

- Same-type selection shows shared keys/actions picker.
- Mixed-type selection falls back to manufacturer/device-type-specific export selection.
- Export buttons stay disabled until the export is valid.

## Common issues

- No data fields selected: export cannot start.
- Wrong device type selection: choose the correct manufacturer/type pair.
- Large export times out or is empty: narrow the date range.

## Related use cases

- [Messages log tab](/help/groups-tabs-messages-log/)
- [Batch set custom view](/help/batch-set-custom-view/)

## Support handoff

If export fails, include content_id, group id, device ids, date range, and chosen fields/actions.
