"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
- 6 Blackbaud Community Help
- 210 bbcon®
- 1.4K Blackbaud Altru®
- 395 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™
- 567 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™
- 118 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 239 The Tap (Just for Fun)
- 33 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
- 783 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)

