Skip to content

Fix PowerFX syntax error for EncodeUrl #103

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion copilot-studio/citations-topic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This allows to both display a **title** for the document, but also to point to a

The sample works both for uploaded files and other knowledge sources (e.g. public website, SharePoint / OneDrive).

With this sample, you have two options, that can be used indepently from each other:
With this sample, you have two options, that can be used independently from each other:
1. Set a URL pointing to a folder where files are expected to be available to your users, when no URLs are available. For this, set the URL for your base folder in `Topic.UploadedFilesRootUrl`.
1. Set a mapping between each document and a URL location for the file. For this, udpdated the `Topic.FilesSources` table. Make sure that each file name is encoded in the same way as returned as citation when an answer is generated (e.g. use %20 instead of spaces, etc.)

Expand Down
2 changes: 1 addition & 1 deletion copilot-studio/citations-topic/source/citations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ beginDialog:
LookUp(Topic.FilesSources, Name = FileName, ThisRecord)
),
// If doesn't exist, use the UploadedFilesRootUrl URL pattern
Topic.UploadedFilesRootUrl & EncodeURL(Name),
Topic.UploadedFilesRootUrl & EncodeUrl(Name),
// Else use the FilesSources table URL
LookUp(Topic.FilesSources, Name = FileName, FileUrl)
),
Expand Down