codeunitCopilot & Agentsofficial - Microsoftderived - from the source, no model text

Codeunit 4307 "Agent Message"

System Application · System.Agents

Across versions

  1. BC23-24not present
  2. BC25added
  3. BC265 procedures added
  4. BC279 procedures changed, 1 procedures added
  5. BC284 procedures added
  6. BC292 procedures changed, 2 procedures added
  7. BC30unchanged

Neighbourhood 11 connected objects and pages

Codeunit 4308 "Agent Message Impl." (calls, 12 links)Agent Message Impl.Page 4308 "Agent Task Message Card" (calls, 3 links)Agent Task Message CardCodeunit 4361 "Agent Task Template" (calls, 2 links)Agent Task TemplateCodeunit 4419 "SOA Send Reply" (calls, 2 links)SOA Send ReplyPage 4358 "Agent Message Attachments" (calls, 2 links)Agent Message AttachmentsPage 4404 "SOA Email Message" (calls, 2 links)SOA Email MessagePage 4408 "SOA Create Task Attachments" (calls, 2 links)SOA Create Task AttachmentsCodeunit 4398 "SOA Task Message" (calls)SOA Task MessageCodeunit 4408 "SOA Set Reply Failed" (calls)SOA Set Reply FailedCodeunit 4418 "SOA Reply Retry Mgt." (calls)SOA Reply Retry Mgt.Page 4318 "Agent Task Message ListPart" (calls)Agent Task Message ListPart

Open in the neighbourhood explorer

One hop out, from the extracted relations and call graph. Up to 40 shown; the sections below list them all.

System Application · System.Agents · BC25-30 · source at ea08af5e · facts from BC29

Procedures

  • GetText(TaskID: BigInteger; MessageID: Guid): Text Δ BC27 + BC28: Get the message text for the given agent task message.
  • GetText(var AgentTaskMessage: Record "Agent Task Message"): Text Δ BC27 + BC28: Get the message text for the given agent task message. The record is not retrieved again; the caller must ensure the record is up to date.
  • UpdateText(TaskID: BigInteger; MessageID: Guid; NewMessageText: Text) Δ BC27 + BC28 Δ BC29: Updates the message text.
  • UpdateText(var AgentTaskMessage: Record "Agent Task Message"; NewMessageText: Text) Δ BC27 + BC28 Δ BC29 (obsolete 29.0: Use the overload that takes TaskID and MessageID instead.): Updates the message text.
  • IsEditable(TaskID: BigInteger; MessageID: Guid): Boolean Δ BC27 + BC28: Check if it is possible to edit the message.
  • IsEditable(var AgentTaskMessage: Record "Agent Task Message"): Boolean Δ BC27 + BC28: Check if it is possible to edit the message. The record is not retrieved again; the caller must ensure the record is up to date.
  • SetStatusToSent(TaskID: BigInteger; MessageID: Guid) Δ BC27 + BC28 Δ BC29: Sets the message status to sent.
  • SetStatusToSent(var AgentTaskMessage: Record "Agent Task Message") Δ BC27 + BC28 Δ BC29 (obsolete 29.0: Use the overload that takes TaskID and MessageID instead.): Sets the message status to sent.
  • SetStatusToFailed(TaskID: BigInteger; MessageID: Guid; StatusReason: Text[250]) + BC29: Sets the message status to failed, to indicate that delivery of the output message failed terminally. Only a reviewed output message, or one that already failed, can be set to failed.
  • SetStatusToReviewed(TaskID: BigInteger; MessageID: Guid) + BC29: Sets the message status back to reviewed, so that delivery of a failed output message can be attempted again. The status reason of the previous failure is cleared.
  • AddAttachment(var AgentTaskMessage: Record "Agent Task Message"; FileName: Text[250]; FileMIMEType: Text[100]; Attachment: InStream) + BC26: Add an attachment to the task message.
  • SetIgnoreAttachment(IgnoreAttachment: Boolean) + BC27: Set whether to ignore attachments for the message. When set to true, attachments will be marked as ignored and will not be processed by the agent. The default value is false.
  • DownloadAttachments(var AgentTaskMessage: Record "Agent Task Message") Δ BC27: Downloads the attachments for a specific message.
  • ShowAttachment(TaskID: BigInteger; FileID: BigInteger) + BC26 + BC26 Δ BC27 Δ BC27: Shows the attachments for a specific message. If file is not supported to be shown, it will be downloaded.
  • ShowAttachment(var AgentTaskFile: Record "Agent Task File") + BC26 + BC26 Δ BC27 Δ BC27: Shows the attachments for a specific message. If file is not supported to be shown, it will be downloaded.
  • GetAttachments(TaskID: BigInteger; MessageID: Guid; var TempAgentTaskFile: Record "Agent Task File" temporary) + BC26 Δ BC27: Loads the attachments for a specific message to the temporary buffer.
  • GetFileSizeDisplayText(SizeInBytes: Decimal): Text + BC26 Δ BC27: Get the display text for the file size.

Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an Object::"Name" argument. Interface dispatch and calls through events are not counted, so the list is not complete.

Called by

Recent changes

Deprecations

  • procedure SetStatusToSent: Pending 29.0 (#if not CLEAN29), “Use the overload that takes TaskID and MessageID instead.”
  • procedure UpdateText: Pending 29.0 (#if not CLEAN29), “Use the overload that takes TaskID and MessageID instead.”

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: bcatlas_resolve_node(object_type: "codeunit", object_name: "Agent Message"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.

Evidence 1 sources