Filtering constituents by list id returns constituents excluded from that list

We are seeing that the 

constituent/v1/constituents
endpoint, when using a list_id parameter - it returns all included AND excluded constituents in the list.

Significantly, this behaviour appears to have changed recently (it used to be that 'excluded' constituents were not returned in the API response filtered by list_id)


As an example, we have a list that has 19 total contacts, of which 16 are excluded. As a result, we expect only 3 contacts to be displayed on this list. However, when we make the API call, it retrieves all the contacts including the ones that are excluded. Despite this, the exported CSV displays only the non-excluded 3.


There appears to be no way to make the API response NOT include the excluded contacts 

Comments

  • Ben Wong
    Ben Wong Blackbaud Employee
    Tenth Anniversary Kudos 3 Name Dropper Participant
    Hey Brendan Scott‍,


    I just tested this out using the SKY API Console and wasn't able to duplicate the issue. I created the list, excluded a few records and they did not appear in the endpoint response. I'll follow up over email to get some more details about your specific environment.


    Thanks!
  • Thanks Ben,


    Just re-posting here for the sake of those who might have similar trouble in the future. As you rightly pointed out, the issue was because we had not saved our lists in the RE NXT website. Ie. even after logout and log back in, the list is displaying with an asterisk indicating changes are not saved. Saving the changes caused the appropriate exclusions to be reflected when downloading the list via API.


    Thanks for your help via email.

Categories