Hey All,
I thought of starting a new thread but my issue is similar to this. I was hoping I'd just piggy back on this.
I have an issue with getting data back from Dataverse using the Web API. I can connect to the endpoint and get a 200/OK http status. But there is no data returned by the searchquery API.
Any thoughts?
Here's a little more background:
I have enabled search in my environment, added a few tables to be indexed via my PowerAutomate solution, then added columns to be indexed using the 'Quick Find' views of my custom tables.
I can successfully use the global search within my model-driven power app. I can also search using the 'Search rows (preview)' dataverse action in Power Automate. So it seems that I have a perfectly functioning search index. So why isn't the API returning any data?
Here is the request/response from an "Invoke Http Request with Entra ID" action in Power Automate:
URI: https://MYENV.crm.dynamics.com
API: /api/data/v9.2/searchquery
Request body: { "top": 10, "count": "true",
"search": "My keyword here"
}
Response:
"body": {
"@odata.context": "https://MYENV.crm.dynamics.com/api/data/v9.2/$metadata#Microsoft.Dynamics.CRM.searchqueryResponse",
"response": "{\"Error\":null,\"Value\":[],\"Facets\":{},\"QueryContext\":null,\"Count\":0}"
}
Thanks in advance.