GuidoPreite / DRB

Dataverse REST Builder
MIT License
101 stars 14 forks source link

Only top 5000 Custom API request parameters are returned #30

Open anskanth opened 2 months ago

anskanth commented 2 months ago

Hi @GuidoPreite

When I select the Request Type as Custom API, I can see the tool is getting the custom apis, requests and responses in a batch.. However, the request parameters are coming only top 5000. In our environment even though we have only 10s of request parameters that we created, but Microsoft has around 29K request parameters. So, we are missing the parameters required for our Custom APIs.

Hope you understand the problem what I'm saying, happy to share some screenshots if required.

Thanks -Srikanth

GuidoPreite commented 2 months ago

Hi @anskanth thanks for reporting this. I understood the problem, right now the code retrieves only the top 5000 because it doesn't implement a logic for the odata.nextLink property. I can try to apply a fix but I don't know when I can work on this. To be honest, I checked the most complex instance I can access and the customapirequestparameter table has around 2400 records, I doubt all the 29k you have are from Microsoft.

anskanth commented 2 months ago

hi @GuidoPreite thanks for looking in to this quickly.. we have Dual Write enabled in our environment looks like that brought quite a few Custom APIs and request params... let me see if I can get an anonymised sample for you ..

I agree, might not be a pressing issue for all.. One that you can think of in your free time :)

Thank you -Srikanth