Created
May 13, 2025 21:03
-
-
Save eileenmcnaughton/e7661a9511a782afb8ac123fde58cfea to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
[ | |
"SavedSearch", | |
"save", | |
{ | |
"records": [ | |
{ | |
"name": "DR_high_level_dedupe_report", | |
"label": "DR: high level dedupe report", | |
"api_entity": "Activity", | |
"api_params": { | |
"version": 4, | |
"select": [ | |
"COUNT(DISTINCT id) AS COUNT_id", | |
"Activity_ActivityContact_Contact_01.display_name", | |
"GROUP_CONCAT(DISTINCT Activity_ActivityContact_Contact_01.record_type_id:label ORDER BY\"\" ASC) AS GROUP_CONCAT_Activity_ActivityContact_Contact_01_record_type_id_label" | |
], | |
"orderBy": [], | |
"where": [ | |
[ | |
"activity_date_time", | |
"BETWEEN", | |
[ | |
"2025-04-21", | |
"2025-04-27" | |
] | |
], | |
[ | |
"activity_type_id:name", | |
"=", | |
"Contact Deleted by Merge" | |
] | |
], | |
"groupBy": [ | |
"Activity_ActivityContact_Contact_01.display_name" | |
], | |
"join": [ | |
[ | |
"Contact AS Activity_ActivityContact_Contact_01", | |
"LEFT", | |
"ActivityContact", | |
[ | |
"id", | |
"=", | |
"Activity_ActivityContact_Contact_01.activity_id" | |
], | |
[ | |
"Activity_ActivityContact_Contact_01.record_type_id:name", | |
"=", | |
"\"Activity Source\"" | |
] | |
] | |
], | |
"having": [ | |
[ | |
"COUNT_id", | |
"=", | |
15 | |
] | |
] | |
}, | |
"description": "DO NOT DELETE" | |
} | |
], | |
"match": [ | |
"name" | |
] | |
} | |
], | |
[ | |
"SearchDisplay", | |
"save", | |
{ | |
"records": [ | |
{ | |
"name": "DR_high_level_dedupe_report", | |
"label": "DR: high level dedupe report", | |
"saved_search_id.name": "DR_high_level_dedupe_report", | |
"type": "table", | |
"settings": { | |
"limit": 50, | |
"pager": true, | |
"columns": [ | |
{ | |
"key": "COUNT_DISTINCT_id", | |
"label": "(Count) Activity ID", | |
"dataType": "Integer", | |
"type": "field" | |
}, | |
{ | |
"key": "Activity_ActivityContact_Contact_01.display_name", | |
"label": "Activity Contacts: Display Name", | |
"dataType": "String", | |
"type": "field" | |
}, | |
{ | |
"key": "GROUP_CONCAT_DISTINCT_Activity_ActivityContact_Contact_01_record_type_id_label", | |
"label": "Activity Contacts: (List) Contact Role", | |
"dataType": "Integer", | |
"type": "field" | |
} | |
] | |
} | |
} | |
], | |
"match": [ | |
"saved_search_id", | |
"name" | |
] | |
} | |
], | |
[ | |
"Afform", | |
"save", | |
{ | |
"records": [ | |
{ | |
"type": "search", | |
"title": "high level dedupe report", | |
"placement": [], | |
"icon": "fa-list-alt", | |
"server_route": "civicrm/high-level-dedupe", | |
"permission": [ | |
"access CiviCRM" | |
], | |
"permission_operator": "AND", | |
"layout": "<div af-fieldset=\"\">\n <crm-search-display-table search-name=\"DR_high_level_dedupe_report\" display-name=\"DR_high_level_dedupe_report\"></crm-search-display-table>\n</div>\n<div af-fieldset=\"\" af-title=\"DR: high level dedupe report: DR: high level dedupe report\">\n <crm-search-display-table search-name=\"DR_high_level_dedupe_report\" display-name=\"DR_high_level_dedupe_report\"></crm-search-display-table>\n</div>\n", | |
"name": "afsearchHighLevelDedupeReport", | |
"modified_date": "2024-02-26 14:27:30", | |
"placement_weight": null, | |
"placement_filters": [], | |
"requires": null, | |
"entity_type": null, | |
"join_entity": null, | |
"description": null, | |
"tags": null, | |
"is_public": false, | |
"redirect": null, | |
"submit_enabled": true, | |
"submit_limit": null, | |
"create_submission": null, | |
"manual_processing": null, | |
"allow_verification_by_email": null, | |
"email_confirmation_template_id": null, | |
"autosave_draft": null, | |
"navigation": null | |
} | |
] | |
} | |
] | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment