Ash FrameworkAF
Ash Framework8mo ago
6 replies
Chaz Watkins

Notifications don't send for bulk actions by default

When you do a single record action, notifications are published by default. However, when you do bulk actions, notifications are not published by default.

If you want notifications published for bulk actions, you have to add bulk_options: [notify?: true]

To avoid putting it on all call sites, you can set this as a default option on your Domain's code interface function opts.

define :create_foo do
  action :create
  default_options bulk_options: [notify?: true]
end
Was this page helpful?