Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -221,58 +221,61 @@ codeunit 4311 "Agent Task Msg. Builder Impl."
end;

procedure GetContentTypeFromFilename(FileName: Text): Text[250]
var
LowerCaseFileName: text;
begin
if FileName.EndsWith('.graphql') or FileName.EndsWith('.gql') then
LowerCaseFileName := LowerCase(FileName);
if LowerCaseFileName.EndsWith('.graphql') or LowerCaseFileName.EndsWith('.gql') then
exit('application/graphql');
if FileName.EndsWith('.js') then
if LowerCaseFileName.EndsWith('.js') then
exit('application/javascript');
if FileName.EndsWith('.json') then
if LowerCaseFileName.EndsWith('.json') then
exit('application/json');
if FileName.EndsWith('.doc') then
if LowerCaseFileName.EndsWith('.doc') then
exit('application/msword(.doc)');
if FileName.EndsWith('.pdf') then
if LowerCaseFileName.EndsWith('.pdf') then
exit('application/pdf');
if FileName.EndsWith('.sql') then
if LowerCaseFileName.EndsWith('.sql') then
exit('application/sql');
if FileName.EndsWith('.xls') then
if LowerCaseFileName.EndsWith('.xls') then
exit('application/vnd.ms-excel(.xls)');
if FileName.EndsWith('.ppt') then
if LowerCaseFileName.EndsWith('.ppt') then
exit('application/vnd.ms-powerpoint(.ppt)');
if FileName.EndsWith('.odt') then
if LowerCaseFileName.EndsWith('.odt') then
exit('application/vnd.oasis.opendocument.text(.odt)');
if FileName.EndsWith('.pptx') then
if LowerCaseFileName.EndsWith('.pptx') then
exit('application/vnd.openxmlformats-officedocument.presentationml.presentation(.pptx)');
if FileName.EndsWith('.xlsx') then
if LowerCaseFileName.EndsWith('.xlsx') then
exit('application/vnd.openxmlformats-officedocument.spreadsheetml.sheet(.xlsx)');
if FileName.EndsWith('.docx') then
if LowerCaseFileName.EndsWith('.docx') then
exit('application/vnd.openxmlformats-officedocument.wordprocessingml.document(.docx)');
if FileName.EndsWith('.xml') then
if LowerCaseFileName.EndsWith('.xml') then
exit('application/xml');
if FileName.EndsWith('.zip') then
if LowerCaseFileName.EndsWith('.zip') then
exit('application/zip');
if FileName.EndsWith('.zst') then
if LowerCaseFileName.EndsWith('.zst') then
exit('application/zstd(.zst)');
if FileName.EndsWith('.mpeg') then
if LowerCaseFileName.EndsWith('.mpeg') then
exit('audio/mpeg');
if FileName.EndsWith('.ogg') then
if LowerCaseFileName.EndsWith('.ogg') then
exit('audio/ogg');
if FileName.EndsWith('.gif') then
if LowerCaseFileName.EndsWith('.gif') then
exit('application/gif');
if FileName.EndsWith('.jpeg') then
if LowerCaseFileName.EndsWith('.jpeg') then
exit('application/jpeg');
if FileName.EndsWith('.jpg') then
if LowerCaseFileName.EndsWith('.jpg') then
exit('application/jpg');
if FileName.EndsWith('.png') then
if LowerCaseFileName.EndsWith('.png') then
exit('application/png');
if FileName.EndsWith('.css') then
if LowerCaseFileName.EndsWith('.css') then
exit('text/css');
if FileName.EndsWith('.csv') then
if LowerCaseFileName.EndsWith('.csv') then
exit('text/csv');
if FileName.EndsWith('.html') then
if LowerCaseFileName.EndsWith('.html') then
exit('text/html');
if FileName.EndsWith('.php') then
if LowerCaseFileName.EndsWith('.php') then
exit('text/php');
if FileName.EndsWith('.txt') then
if LowerCaseFileName.EndsWith('.txt') then
exit('text/plain');
exit('');
end;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ page 4333 "Agent Consumption Overview"
Caption = 'Description';
ToolTip = 'Specifies the description of the operation';
}
field(CopilotStudioFeature; Rec."Copilot Studio Feature")
field(CopilotStudioFeature; Rec."Copilot Studio Feature Display Name")
{
Caption = 'Copilot Studio feature';
}
Expand Down Expand Up @@ -238,7 +238,7 @@ page 4333 "Agent Consumption Overview"
UpdateDateRange(StartDate, EndDate);
Clear(TaskNameTxt);
Clear(TotalTaskConsumedCredits);
CurrPage.Update(true);
CurrPage.Update(false);
end;
}
action(NextMonth)
Expand Down
Loading