Skip to content
Merged
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 @@ -10,6 +10,7 @@ using Microsoft.Foundation.Attachment;
using Microsoft.Purchases.Vendor;
using System.Agents;
using System.Agents.TaskPane;
using System.Environment;

page 6105 "Inbound E-Documents"
{
Expand Down Expand Up @@ -444,13 +445,18 @@ page 6105 "Inbound E-Documents"
end;

local procedure PopulateTaskInfo()
var
EnvironmentInformation: Codeunit "Environment Information";
begin
Clear(AgentTask);
AgentTaskStatus := '';
if not EnvironmentInformation.IsSaaSInfrastructure() then
exit;
if not AgentTask.ReadPermission() then
exit;
AgentTask.SetRange("Company Name", CompanyName());
AgentTask.SetRange("External ID", Format(Rec."Entry No"));
if not AgentTask.FindFirst() then
Clear(AgentTask);
AgentTaskStatus := '';
if AgentTask.ID <> 0 then
if AgentTask.FindFirst() and (AgentTask.ID <> 0) then
AgentTaskStatus := Format(AgentTask.Status);
end;

Expand Down
Loading