Hi Sandeep Challa
Thank you for reaching out to Microsoft Q&A
As far as I know, if you do not explicitly specify which columns to search in your API request payload, the API defaults to searching only the table's primary name column. It does not automatically search all columns defined in the Quick Find View like the UI does.
In order to fix this, you need to update the JSON payload in your HTML web resource. You must include the entities parameter and explicitly define the searchColumns for the table(s) you are querying.
You can see an example of how your JSON payload should look:
{
"search": "your search text here",
"entities": [
{
"name": "account",
"searchColumns": [
"name",
"accountnumber",
"emailaddress1",
"telephone1"
],
"selectColumns": [
"name",
"accountnumber",
"emailaddress1"
]
}
]
}
You can find this documented in the articles covering how to invoke the Dataverse Search API (/api/search/v1.0/query) with the Web API.
Hope my answer will help you and kindly let me know if the issue still persists.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.