DXAPI v2 retrieve Page type data page results

We have below DX API for fetching the List type Data Page results

Please suggest which DXAPI v2 to use for fetching the Page type Data Page results. I even tried using the Get method of /data_views/{data_view_ID}, however, even if I pass list of parameters in json format to “dataViewParameters” parameter like {“Country”:“India”}, its returing with error “The server recognized the request as invalid”

Hi @RahulBilove,

The DX API GET /data_views/{data_view_ID} which you have used is correct only.

When we are testing it using Postman, we need to pass the “dataViewParameters” parameter value in Encoded format as shown below screenshots.

@Saddam HussainAs we are exposing this service, so is it mandatory to provide it in encoded format? Considering that request will be sent by other system to Pega via this DXAPI, and providing multiple parameters in encoded format can be adhoc task. Is there any other alternative or this is the only solution we have with DXAPI’s.

@RahulBilove

Here is the snippet of code,

{
“paging”: {
“pageNumber”: 1,
“pageSize”: 1
},
“dataViewParameters”: {
“AccountHolderName”: “John Doe”
},
“useExtendedTimeout”: true,
“includeTotalCount”: true
}

Please refer this post for more details : Pega Constellation DX API Reference | Support Center