To the PBI Community,
I've been dealing with an interesting problem pulling records from a REST API source. One of the API query parameters is archive_reason_id. In the remote DB, this field is empty when a candidate has not yet been archived, i.e. is still an active applicant.
When I want to request only blank or null values directly in Postman the URL would read something like this
Hey Phil,
thank you for your note - yes, my preference would also be to download the whole set and filter inside Power Query. This does however run me into performance problems with the API that I'm requesting from. The full table is approx 150,000 records and I'd rather only download the relevant records in the first place. Another factor is that I have to run a nested API call from witihin the results as a custom function on a per-row basis which uses two field values as inputs. And unlike the table download which delivers in pages of 100 records, the individual calls are capped at 10/sec, which causes a significant delay. Along those lines, is there a way, some code or add-on to Power Query which provides the user some more insight on processing durations during the different steps undertaken by the constructed query and the total records processed? Some sort of a counter etc. which can be instituted so as to help pinpoint the biggest drags on query performance?
Thank you for the tip with Fiddler. I had heard of the tool before but never got a chance to use it. I will check it out. Where does it benefit your workflow most?
I've reached out to the vendor to figure out if there are other attributes which can be used as a proxy for "no archive reason".
Regards,
Henrik
Hi @waeltken
Can't you get all records then just filter the results to only show you the records with archive_reason_id blank?
You could use a proxy like Fiddler to check what calls are being sent to the API.
You can't 'inverse' 'the parameter query as it's the API that dictates how data must be sent. Unless the API allows you to say 'send me all records except Hired, Applied etc' you can't do it.
Regards
Phil
Proud to be a Super User!