My Community
YourCause®
Impact Edge™
All-Star Lounge
Member Lounge (Just for Fun)
Community News
Community Manager
Groups
Browse Products
Members
Community All-Stars
Monthly Challenges
Member Search
Jobs Board
Help
Using the Blackbaud Community
Blackbaud Support
Knowledgebase
Blackbaud University
Discussions
Categories
Groups
Home
SKY Developer
SKY Developer General Discussions
Blackbaud Raiser's Edge NXT® APIs
Is there a way of filtering only the deceased in the Constituent API
Josh Laurens
Currently the method that filters the deceased gets every single constituent and then they are filtered via array_filter (PHP). Is there a way of just filtering the results to show only the deceased constituents? There is no request parameter in the Constituent List
https://developer.sky.blackbaud.com/docs/services/56b76470069a0509c8f1c5b3/operations/ListConstituents
that does this specific request. Thanks
Find more posts tagged with
Comments
Ben Lambert
Hi Josh,
Good question! At the moment, there is no parameter you can provide that will limit the results to ONLY deceased constituents.
One workaround you could use is to leverage the
List
functionality within NXT:
Create and save new constituent list with the
Include deceased
filter
unchecked
- save it with a name of "Living constituents"
Create another new constituent list, this time with the
Include deceased
filter
checked
(along with any other criteria you need)
Click the
Add/Exclude
button, choose "Exclude from list", and select the list you created in step 1.
Save the list as "Deceased constituents"
Now, using the
GetLists
operation (with list_type = "constituent") in the List SKY API, you can find the id of the "Deceased constituents" list you created in step 4.
You can then provide that value for the
list_id
parameter of the
ListConstituents
operation within the Constituent SKY API. The results of that API call will be
ONLY
deceased constituents.
A caveat to note is that the list exclusion described above would only be accurate as of that particular moment in time. Any new constituents added (whether deceased or not) will show up in the Deceased Constituents list.
Hope this helps!
Quick Links
All Categories
Recent Posts
Activity
Unanswered
Groups
Help
Best Of