Codeunit 4324 "Agent Setup"
System Application · System.Agents
Across versions
- BC23-26not present
- BC27added
- BC282 procedures added
- BC29-30unchanged
Neighbourhood 12 connected objects and pages
System Application · System.Agents · BC27-30 · source at ea08af5e · facts from BC29
Procedures
GetSetupRecord(var AgentSetupBuffer: Record "Agent Setup Buffer"; UserSecurityID: Guid; AgentMetadataProvider: Enum "Agent Metadata Provider"; DefaultUserName: Code[50]; DefaultDisplayName: Text[80]; AgentSummary: Text): Gets the setup record for existing agents or initializes a new setup record for new agents.CopySetupRecord(var Target: Record "Agent Setup Buffer"; var Source: Record "Agent Setup Buffer")+ BC28: Copies the setup record from the source buffer to the target buffer.SaveChanges(var AgentSetupBuffer: Record "Agent Setup Buffer"): Guid: Saves changes done. If the agent does not exist we will create a new agent otherwise we will update the agent.GetChangesMade(var AgentSetupBuffer: Record "Agent Setup Buffer"): Boolean: Checks if there are any changes made in the setup buffer that need to be saved.OpenLanguageAndRegionPage(var AgentSetupBuffer: Record "Agent Setup Buffer"): Boolean: Opens a page where the language and region settings for the agent can be updated.GetAgentSummary(var AgentSetupBuffer: Record "Agent Setup Buffer"): Text: Retrieves the summary information about the agent.OpenAgentAccessControlPage(var AgentSetupBuffer: Record "Agent Setup Buffer"): Boolean: Opens a page where the user access control settings for the agent can be updated.OpenProfileLookup(var UserSettingsRec: Record "User Settings"): Boolean: Allows the user to select a profile out of the list of available profiles. The user settings record will be updated with the selected profile.OpenAgentLookup(var AgentUserSecurityId: Guid): Boolean: Allows the user to select an agent out of the list of enabled agents.FindAgentByUserName(AgentUserName: Text; var AgentUserSecurityId: Guid): Boolean+ BC28: Finds the agent user security ID based on the provided user name.OpenAgentLookup(AgentType: Enum "Agent Metadata Provider"; var AgentUserSecurityId: Guid): Boolean: Allows the user to select an agent out of the list of enabled agents.OpenSetupPage(var AgentSetupBuffer: Record "Agent Setup Buffer"): Opens the setup page for the agent.OpenSetupPage(AgentUserSecurityId: Guid): Opens the setup page for the agent.UpdateUserAccessControl(var AgentSetupBuffer: Record "Agent Setup Buffer"): Boolean: Opens the page where the user access control settings for the agent can be updated.
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.
- Codeunit 4325 “Agent Setup Impl.” (12 calls:
CopySetupRecord → CopySetupRecord,FindAgentByUserName → FindAgentByUserName,GetAgentSummary → GetAgentSummary, …)
Called by
- Codeunit 4400 “SOA Setup” (4 calls:
CreateAgent → SaveChanges,CreateDefaultAgentNoEmail → GetSetupRecord,CreateDefaultAgentNoEmail → SaveChanges, …) - Codeunit 3307 “Payables Agent Setup” (2 calls:
ApplyAgentSetup → SaveChanges,LoadSetupConfiguration → GetSetupRecord) - Page 3304 “Payables Agent Setup” (2 calls:
OnAfterGetCurrRecord → GetChangesMade,OnQueryClosePage → GetChangesMade) - Page 4310 “Agent Setup Part” (2 calls:
GetChangesMade → GetChangesMade,Initialize → GetSetupRecord) - Page 6991 “Expense Agent Setup Wizard” (2 calls:
OnAfterGetCurrRecord → GetChangesMade,PersistAgentState → SaveChanges) - Codeunit 3304 “PA Setup Configuration” (1 call:
SetAgentSetupBuffer → CopySetupRecord) - Codeunit 4350 “Custom Agent Setup” (1 call:
UpdateAgent → SaveChanges) - Page 4350 “Custom Agent Setup” (1 call:
UpdateControls → GetSetupRecord) - Page 4400 “SOA Setup” (1 call:
OnAfterGetCurrRecord → GetChangesMade) - Page extension 4351 “Agent Task List” (1 call:
GetAgentSecurityID → OpenAgentLookup) - Table 6930 “Expense Agent Setup” (1 call:
GetAgentConfiguredByName → GetSetupRecord)
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 Setup"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.