I have been using this script to pull data into Powershell from my CRM software (Altru) using an OData feed. I think I'm coming up against a size limit. The parameters of my feed are set using a query wizard in the CRM software. It works fine with small
queries, say, less than 2,000 rows. When they are larger, I don't get an error message, there's just a null value in $programs_data.
I don't have any problem loading the feed in Excel. A CSV of the results that didn't make it into PowerShell is just over 1 MB. I have also found that when I have a query that works, and I then add more columns to the results, it stops working. So the
limit seems to be size, not number of rows.
Here's the method I'm using to pull the OData feed:
$url = "OData Feed URL"
$programs_data = Invoke-RestMethod -Uri $url -Credential $MyCredential