Add managed saved searches

This commit is contained in:
Rich Lott / Artful Robot 2025-04-01 20:21:50 +01:00
parent d5ee875aef
commit 699436c75b
16 changed files with 1035 additions and 0 deletions

View file

@ -0,0 +1,38 @@
<?php
use CRM_Contactcats_ExtensionUtil as E;
return [
[
'name' => 'SavedSearch_ContactCategories_0_2_Locus',
'entity' => 'SavedSearch',
'cleanup' => 'unused',
'update' => 'unmodified',
'params' => [
'version' => 4,
'values' => [
'name' => 'ContactCategories_0_2_Locus',
'label' => E::ts('ContactCategories 0.2 Locus'),
'api_entity' => 'Contact',
'api_params' => [
'version' => 4,
'select' => [
'id',
'sort_name',
'contact_type:label',
'contact_sub_type:label',
],
'orderBy' => [],
'where' => [
['created_date', '>=', 'now - 12 month'],
],
'groupBy' => [],
'join' => [],
'having' => [],
],
'description' => E::ts('0.2 Interested
entry into database < 12 months - no activity'),
],
'match' => ['name'],
],
],
];