Sending SQL to BB CRM and getting data back
I've chatted with support and poked around in the docs, but it doesn't seem like there's a way to send SQL to a hosted BB CRM instance and get data back.
Comparatively, Salesforce allows you to do the following, where you can send a SQL query after the q:
sandbox.my.salesforce.com/services/data/v59.0/queryAll?q=
In short, I'm looking for a simpler way to extract and send data to BB CRM without having to use a variety of SOAP endpoints etc, and the SKY APIs are limited in terms of their functionality.
=====
EDIT support did respond with the following: “You could write something custom which expects SQL as a string, then executes that through CLR. It's a bit of a hack but should work.”
Comments
-
@Mikhail Zolikoff
There is no API that supports arbitrary SQL requests. However, the suggestion that support gave is doable. You can write a customization that takes SQL, runs it, then returns the result. I have placed an example of this here:In this Global Change, you provide SQL, run the GC, and the results are written to a log. Then you can view the log via a custom query view. I have not included the query view or the log, but the core of the functionality is here, and it should get you started, or give you some ideas.
0 -
@Joseph Styons This is GREAT; thank you!
- Did you call it Global Change for any particular reason (EDIT: ah, here)
- Being new to this, where does the VB and XML get placed / how does it get installed? For both hosted and on-prem instances? (EDIT: here? And if so, what global change definition should be used for this?)
- When it's installed, how would one hit it via the API? Do we hit the ExternalResource Url that's in the XML file?
0 -
This is certainly a workable hack, but be aware of how open this could be to SQL injection attacks.
0
Categories
- All Categories
- 6 Blackbaud Community Help
- 206 bbcon®
- 1.4K Blackbaud Altru®
- 394 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 15 donorCentrics®
- 357 Blackbaud eTapestry®
- 2.5K Blackbaud Financial Edge NXT®
- 646 Blackbaud Grantmaking™
- 561 Blackbaud Education Management Solutions for Higher Education
- 3.2K Blackbaud Education Management Solutions for K-12 Schools
- 934 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 84 JustGiving® from Blackbaud®
- 6.4K Blackbaud Raiser's Edge NXT®
- 3.6K SKY Developer
- 242 ResearchPoint™
- 118 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 238 The Tap (Just for Fun)
- 33 Blackbaud Community Challenges
- 28 PowerUp Challenges
- 3 (Open) 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
- 778 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)