Searching for constituent by email address - 400 bad request?
Hi all,
Quite new to SKY API and am using this with PHP/Drupal with the Blackbaud SKY API module (https://www.drupal.org/project/blackbaud_sky_api) that seems to be most working successfully. I'm able to authenticate and make API requests.
As I say, new to the API and currently running into a strange issue that I'm sure is quite straightforward.
The API call I'm making looks like:
/constituent/v1/constituents/search?search_text=valid.email@example.com&search_field=email_address&strict_search=true
However I always get a 400 bad request.
/constituent/v1/constituents/search?search_text=valid.email@example.com&search_field=email_address
Appears to work correctly but I'm not getting expected results back. Wondered if anyone can point out what I'm missing?
Thank you!
Comments
-
all parameters need to be encoded for the string. e.g., in js, use encodeURIComponent to replace the @ in email address before submitting to API
1 -
Try after removing strict_search=true. I got the following message if I included that filter. “This request includes an invalid combination of filters. The only filters that are available for use with the email_address search_field filter are search_text and include_inactive.”
1 -
Of course. Schoolboy error on my part! Thank you, I'll do that!
0
Categories
- All Categories
- 4 Blackbaud Agents for Good™
- Raiser's Edge NXT test
- 6 Blackbaud Community Help
- 211 bbcon®
- 1.4K Blackbaud Altru®
- 404 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.2K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 16 donorCentrics®
- 361 Blackbaud eTapestry®
- 2.6K Blackbaud Financial Edge NXT®
- 666 Blackbaud Grantmaking™
- 585 Blackbaud Education Management Solutions for Higher Education
- 3.3K Blackbaud Education Management Solutions for K-12 Schools
- 948 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 85 JustGiving® from Blackbaud®
- 6.8K Blackbaud Raiser's Edge NXT®
- 3.8K SKY Developer
- 251 ResearchPoint™
- 120 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 243 Member Lounge (Just for Fun)
- 38 Blackbaud Community Challenges
- 37 PowerUp Challenges
- 3 (Closed) PowerUp Challenge: Grid View Batch
- 3 (Closed) PowerUp Challenge: Chat for Blackbaud AI
- 3 (Closed) 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
- 807 Community News
- 3K Jobs Board
- 57 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)
