(どこに書くのが適切なのか判断難しかったのでここに書かせていただきます)
条件指定してデータレポート取得API(getReportDataByConditions
)において、
sort_fields
を利用してソートを行おうとしたのですが、レスポンスのreport_results
が空の配列になる現象が起きています。
ただ、totalItems
は正しい件数が入っているようです。
レスポンス例
{
"report_fields": [
{
"title": "数値項目1",
"rpf_id": "1f3c0c40-c979-4ada-a1d3-acb1b0934a4b",
"display_id": "数値項目1",
"data_type": "number",
"display_type": "number",
"align": "right",
"width": 0,
"num_info": {
"prefix": "",
"suffix": "",
"no_comma": false
},
"disable_change_num_format": true,
"conditions": [],
"f_id": "cabab938-35e2-4170-91ea-22512dc96f8d",
"d_id": "5fa4a5ca0126eb0001bc0c59",
"merge_cells": false,
"hide": false,
"disable_search": false,
"use_integrated_report": false,
"is_cross_key": false
},
{
"title": "数値項目2",
"rpf_id": "b67a37b1-36ac-4d3e-a142-9e1f6f28163c",
"display_id": "数値項目2",
"data_type": "number",
"display_type": "number",
"align": "right",
"width": 0,
"num_info": {
"prefix": "",
"suffix": "",
"no_comma": false
},
"disable_change_num_format": true,
"conditions": [],
"f_id": "14d5c703-7aae-437a-a879-67c456e90c40",
"d_id": "5fa4a5ca0126eb0001bc0c59",
"merge_cells": false,
"hide": false,
"disable_search": false,
"use_integrated_report": false,
"is_cross_key": false
},
{
"title": "文字列項目",
"rpf_id": "9a4cfb71-38b8-4686-8017-555ce4211f8f",
"display_id": "文字列項目",
"data_type": "text",
"display_type": "",
"align": "",
"width": 0,
"num_info": {
"prefix": "",
"suffix": "",
"no_comma": false
},
"disable_change_num_format": true,
"conditions": [],
"f_id": "0a980dd6-366d-4b04-8568-9feb1880fa0f",
"d_id": "5fa4a5ca0126eb0001bc0c59",
"merge_cells": false,
"hide": false,
"disable_search": false,
"use_integrated_report": false,
"is_cross_key": false
},
{
"title": "文字列(マスタ1)",
"rpf_id": "268e73c6-8a78-48a6-9540-8d70aa7c88df",
"display_id": "文字列(マスタ1)",
"data_type": "text",
"display_type": "",
"align": "",
"width": 0,
"num_info": {
"prefix": "",
"suffix": "",
"no_comma": false
},
"disable_change_num_format": true,
"conditions": [],
"f_id": "60bfc986-5264-4850-b483-03b440daf3a8",
"d_id": "5fa4d3780126eb000113cd7a",
"merge_cells": false,
"hide": false,
"disable_search": false,
"use_integrated_report": false,
"is_cross_key": false
}
],
"report_results": [
{}
],
"report_title": "データレポート1",
"error": "",
"totalItems": 5
}