Select to view content in your preferred language

Is there a way to count how many records have an attachment (photo) or do not have an attachment

329
1
10-30-2024 06:34 AM
Labels (1)
LauraBoagey1
Emerging Contributor

Is there a way I can create a widget in a Dashboard that shows the count of records that have a photo attached (or does not have a photo attached).

I'd like to be able to export a list of all records that do not have a photo attached and also show them on the map so they can be revisited

0 Kudos
1 Reply
JamesPoeschel
Frequent Contributor

Have you tried using the Count function on attachments in arcade? 

Count(Attachments($feature))

You could create a calculated field that has something like this: 

If(Count(Attachments($feature)) > 0) {
  return 'Has pictures'
} else {
  return 'No pictures'
}

From there perhaps you could create a widget that exports either or. Or a filter to show only features with or without pictures, then export.