Hi Telerik Team,
I’m working with Telerik Report Designer and using a Web Service Data Source that is protected with two-step authentication. In my report, I have three report parameters: ClientId
, Year
, and Month
. These parameters are passed to the API and are also used in three corresponding filters on the data source to dynamically fetch data for a crosstab.
From my understanding, when I click on the Preview button in the Report Designer:
The first API call is made to retrieve the schema of the web service (to understand the structure).
The second API call is made to fetch the actual data, using the parameter values I’ve provided.
Could you please confirm whether this is the expected behavior — i.e., that the Web Service Data Source initiates two separate API calls (one for schema, one for data), or it calls more than three times during preview?
I’m asking this to clarify internally, as I need to explain this behavior to my team.
Thank you in advance!
Best regards,
Prabesh Shrestha
Hi Telerik Team,
As a follow-up, I also wanted to ask about schema handling:Suppose my API endpoint returns a response like the following:
GET https://api.example.com/v1/clients?clientid=12345
Response:
{
"Id": "12345",
"Name": "Sample Client",
"LogoUrl": null,
"Address": "123 Main St",
"Website": "www.example.com",
"CreatedDate": "2023-11-10T05:48:53.103",
"CreatedBy": "admin",
"Status": "Active"
}
To make this work with Telerik Report Designer, I noticed that if the API returns no data, the report throws an error — unless I return an **empty object** with all the expected fields (even if no actual records are returned).
My question is:
> Is there any **workaround** that allows me to **define the schema manually** inside Telerik Report Designer so I **don’t have to return a dummy/empty model** from the API just to satisfy the schema requirement?
This would help keep the API behavior cleaner and more efficient.
Thanks again!
Regards,
Prabesh Shrestha