Please be sure you’ve read the docs and API specs before asking for help. Also, please be sure you’ve searched the forum for your answer before you create a new topic.
Hi,
I am trying to list the sources in my DEV tenant using the /v3/sources api using Powershell. Since my tenant has more than 400 sources, I was using the offset to list the first 250 ,parse and then listing the rest and parse.
While parsing the response, I was able to parse the first 250 sources to get the IDs and Name, however it did not work for the rest.
For troubleshooting, I started listing the sources one by one and found that for one source the response.GetType() is System.String rather than System.Object and that’s why it was breaking.
I tried to convert the string response into Json object as respsoneJSon= response | ConvertFrom-Json but that is also not working.
I wanted to understand why this source has a different response type compared to others and how we can handle it in powershell? I can’t skip the source as I need the sourceId for further processing of script.
Note- The source in IDN is direct connector and in healthy state. From postman, able to get the source too.