API: filter getParticipants by participant type?
Our goal is to extract the number of participants by participation type.
The only solution I can find is to make an API call for each registration (getRegistration), so I'm hoping I could instead use getParticipants and filter it by participation type, since this call returns a “total number of records” value. But I am unable to get the filter to work.
I've found that “&list_filter_column=type” is an accepted value (as in the API doesn't reject it), so I'm hoping that's the participation type column, but I cannot figure out what "&list_filter_text=" should be.
I've tried the following values for the filter text:
- a participation type ID (eg. 12345) , which errors out the API response (as any number value does)
- a participation type Name (eg. Volunteer), which returns zero results (despite there being participants registered in that type)
This is the basic structure of the call I'm using:
luminateExtend.api({
api: 'teamraiser',
data:
'method=getParticipants' +
'&fr_id=1234' +
'&response_format=json' +
'&first_name=%25%25%25' +
'&last_name=' +
'&list_filter_column=type' +
'&list_filter_text=Volunteer',
callback: {
success: (response) => {
console.log('getParticipants success', response)
},
error: (err) => {
console.log('getParticipants error: ' + err);
reject(err);
},
},
});
Any help would be greatly appreciated!
Comments
-
I found that the getParticipationTypes method includes a count of current registrations by type if and only if the participation type has a limit set, in which case the returned participationType js object has a property called participationTypeRegistrationLimit, which includes within it the current count.
Unfortunately now there's a bug where getParticipationTypes seems to return a blank object if there are too many participation types…
0
Categories
- All Categories
- 6 Blackbaud Community Help
- 211 bbcon®
- 1.4K Blackbaud Altru®
- 396 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 15 donorCentrics®
- 360 Blackbaud eTapestry®
- 2.5K Blackbaud Financial Edge NXT®
- 649 Blackbaud Grantmaking™
- 568 Blackbaud Education Management Solutions for Higher Education
- 3.2K Blackbaud Education Management Solutions for K-12 Schools
- 937 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 84 JustGiving® from Blackbaud®
- 6.5K Blackbaud Raiser's Edge NXT®
- 3.7K SKY Developer
- 247 ResearchPoint™
- 119 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 239 The Tap (Just for Fun)
- 34 Blackbaud Community Challenges
- 31 PowerUp Challenges
- 3 (Open) PowerUp Challenge: Data Health
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Product Update Briefing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports+
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Email Marketing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Gift Management
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Event Management
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Home Page
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Query
- 785 Community News
- 2.9K Jobs Board
- 53 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)
