map(userdevices.devices, @(
each(#item, match(true), $$),
createdtime = currentDate(),
isActive = true
)
)
If the UI does not validate this, instead of each(#item, match(true), $$), you have to specify every item
like
deviceId = #item.deviceId,
deviceName = #item.deviceName
...