2
Answers

Copilot with Dataverse knowledge not responding on Teams App

Uwak Peter

Uwak Peter

Jan 11
362
1

I have created a copilot agaent using Copilot studio with three knowledge sources, (PDF, EXCEL, DATAVERSE).

the agent is answering questions from the three knowledge sources while using within the copilot studio test environment, after publishing the agent to a Teams channel and sharing it with other users, it only responds to questions from the PDF and Excel knowledge sources only, but does not answer questions from the Dataverse knowledge source, and does not display any error message. I will appreciate any form of assistance.

Answers (2)
1
Tuhin Paul

Tuhin Paul

44 32.6k 308.4k Jan 13

Here i am sharing a sample code from my project:
Power Automate Code :

var knowledgeSource = 'accounts';
var query = "accountname eq 'Contoso'";

var results = Dataverse.SearchQuery(knowledgeSource, query);
if (empty(results)) {
    LogError('No accounts found with the name Contoso');
} else {
    LogInfo('Found accounts with the name Contoso');
}

Liquid Template Code Example (Copilot Studio):

{% assign knowledgeSource = 'accounts' %}
{% assign query = "accountname eq 'Contoso'" %}

{% assign results = Dataverse.SearchQuery(knowledgeSource, query) %}
{% if results.empty? %}    
    {{ LogError('No accounts found with the name Contoso') }}
{% else %}    
    {{ LogInfo('Found accounts with the name Contoso') }}
{% endif %}

1
Tuhin Paul

Tuhin Paul

44 32.6k 308.4k Jan 13

Verify that the Dataverse data source is correctly configured in the Copilot Studio. check that the connection string, authentication method, and any other required settings are properly set up.