"Start an ad hoc query job" query type error
Newbie with RENXT Query Connector - I tested my below json code through the API Reference page and while using a “Send an HTTP request” action, and both came back with no errors. When I try to run it through Power Automate using the “Start an ad hoc query job”, I am getting an error saying, “Invalid query type”. Do we not just dump all of this json into the “Query definition” field?
{
"query": {
"select_fields": [{
"query_field_id": 536
},{
"query_field_id": 649
},{
"query_field_id": 639
}],
"filter_fields": [{
"query_field_id": 536,
"compare_type": "None",
"filter_values": ["7/1/2022", "6/30/2025"],
"operator": "Between",
"left_parenthesis": false,
"right_parenthesis": false
},{
"query_field_id": 639,
"compare_type": "And",
"filter_values": [1,3,8,9,10,31],
"operator": "OneOf",
"left_parenthesis": false,
"right_parenthesis": false
}, {
"query_field_id": 1057,
"compare_type": "And",
"filter_values": [11495],
"operator": "Equals",
"left_parenthesis": false,
"right_parenthesis": false
}, {
"query_field_id": 4539,
"compare_type": "And",
"filter_values": ["4803"],
"operator": "Equals",
"left_parenthesis": false,
"right_parenthesis": false
}],
"sort_fields": [{
"query_field_id": 536,
"sort_order": "Ascending"
}],
"type_id": 20,
"sql_generation_mode": "Query",
"gift_processing_options": {
"soft_credit_option": "Both",
"soft_credit_sub_option": "UseAmountInGrid",
"matching_gift_credit_option": "Donor",
"use_gross_amount_for_covenants": false
},
"advanced_processing_options": {
"use_alternate_sql_code_table_fields": false,
"use_alternate_sql_multiple_attributes": false
}
},
"ux_mode": "Asynchronous",
"output_format": "Json",
"formatting_mode": "UI"
}
Comments
-
@Ryan Carr
if you are the connector for query to run ad hoc query, it does not exact the “full json body”, ONLY the “query” part of the property, so:{
"select_fields": [
{
"query_field_id": 536
},
{
"query_field_id": 649
},
{
"query_field_id": 639
}
],
"filter_fields": [
{
"query_field_id": 536,
"compare_type": "None",
"filter_values": [
"7/1/2022",
"6/30/2025"
],
"operator": "Between",
"left_parenthesis": false,
"right_parenthesis": false
},
{
"query_field_id": 639,
"compare_type": "And",
"filter_values": [
1,
3,
8,
9,
10,
31
],
"operator": "OneOf",
"left_parenthesis": false,
"right_parenthesis": false
},
{
"query_field_id": 1057,
"compare_type": "And",
"filter_values": [
11495
],
"operator": "Equals",
"left_parenthesis": false,
"right_parenthesis": false
},
{
"query_field_id": 4539,
"compare_type": "And",
"filter_values": [
"4803"
],
"operator": "Equals",
"left_parenthesis": false,
"right_parenthesis": false
}
],
"sort_fields": [
{
"query_field_id": 536,
"sort_order": "Ascending"
}
],
"type_id": 20,
"sql_generation_mode": "Query",
"gift_processing_options": {
"soft_credit_option": "Both",
"soft_credit_sub_option": "UseAmountInGrid",
"matching_gift_credit_option": "Donor",
"use_gross_amount_for_covenants": false
},
"advanced_processing_options": {
"use_alternate_sql_code_table_fields": false,
"use_alternate_sql_multiple_attributes": false
}0 -
@Alex Wong Got it, that worked, thanks!
0
Categories
- All Categories
- 2 Blackbaud Community Help
- High Education Program Advisory Group (HE PAG)
- BBCRM PAG Discussions
- Luminate CRM DC Users Group
- DC Luminate CRM Users Group
- Luminate PAG
- 186 bbcon®
- 1.4K Blackbaud Altru®
- 389 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 14 donorCentrics®
- 355 Blackbaud eTapestry®
- 2.4K Blackbaud Financial Edge NXT®
- 616 Blackbaud Grantmaking™
- 542 Blackbaud Education Management Solutions for Higher Education
- 3.1K Blackbaud Education Management Solutions for K-12 Schools
- 909 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 207 JustGiving® from Blackbaud®
- 6.2K Blackbaud Raiser's Edge NXT®
- 3.5K SKY Developer
- 236 ResearchPoint™
- 116 Blackbaud Tuition Management™
- 160 Organizational Best Practices
- 232 The Tap (Just for Fun)
- 30 Blackbaud Community Challenges
- Blackbaud Consultant’s Community
- 18 PowerUp Challenges
- 3 Raiser's Edge NXT PowerUp Challenge: Gift Management
- 4 Raiser's Edge NXT PowerUp Challenge: Events
- 3 Raiser's Edge NXT PowerUp Challenge: Home Page
- 4 Raiser's Edge NXT PowerUp Challenge: Standard Reports
- 4 Raiser's Edge NXT PowerUp Challenge #1 (Query)
- 71 Blackbaud Community All-Stars Discussions
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 743 Community News
- 2.8K Jobs Board
- Community Help Blogs
- 52 Blackbaud SKY® Reporting Announcements
- Blackbaud Consultant’s Community
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)
- Blackbaud Francophone Group
- Blackbaud Community™ Discussions
- Blackbaud Francophone Group