Codeunit 2010 "Entity Text"
System Application · System.Text
Across versions
- BC23-26present
- BC271 events removed
- BC28-30unchanged
Neighbourhood 6 connected objects and pages
System Application · System.Text · BC23-30 · source at ea08af5e · facts from BC29
Properties
| Property | Value |
|---|---|
| Access | Public |
Events published
OnRequestEntityContext(SourceTableId: Integer; SourceSystemId: Guid; SourceScenario: Enum "Entity Text Scenario"; var Facts: Dictionary of [Text, Text]; var TextTone: Enum "Entity Text Tone"; var TextFormat: Enum "Entity Text Format"; var Handled: Boolean)(integration): Event that is raised to build context for the given entity.- subscribers: Codeunit 5825 “Marketing Text” OnRequestEntityContext
OnEditEntityTextWithTriggerAction(var TempEntityText: Record "Entity Text" temporary; var Action: Action; var Handled: Boolean; TriggerAction: Enum "Entity Text Actions")(integration): Event that is raised to override the default Edit behavior.- subscribers: Codeunit 5825 “Marketing Text” OnEditEntityTextWithTriggerAction
Procedures
IsEnabled(Silent: Boolean): Boolean: Gets if Entity Text functionality is enabled.IsEnabled(): Boolean: Gets if Entity Text functionality is enabled.CanSuggest(): Boolean: Gets if the Entity Text Suggest functionality is enabledGetText(TableId: Integer; SystemId: Guid; EntityTextScenario: Enum "Entity Text Scenario"): Text: Gets the rich text for a given Entity Text.GetText(var EntityText: Record "Entity Text"): Text: Gets the rich text for a given Entity Text.GenerateText(Facts: Dictionary of [Text, Text]; Tone: Enum "Entity Text Tone"; TextFormat: Enum "Entity Text Format"; TextEmphasis: Enum "Entity Text Emphasis"): Text: Generate Entity Text using AI capabilities.UpdateText(var EntityText: Record "Entity Text"; EntityTextContent: Text): Updates the Entity Text record with the current text.SetEntityTextAuthorization(Endpoint: Text; Deployment: Text; ApiKey: SecretText): Sets AI authorization for the current Entity Text scope.
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 2012 “Entity Text Impl.” (7 calls:
CanSuggest → CanSuggest,GenerateText → GenerateSuggestion,GetText → GetText, …)
Called by
- Page 5839 “Modify Marketing Text” (5 calls:
OnAfterGetCurrRecord → GetText,OnInit → CanSuggest,OnQueryClosePage → UpdateText, …) - Codeunit 5825 “Marketing Text” (3 calls:
CreateWithCopilot → CanSuggest,CreateWithCopilot → OnRequestEntityContext,CreateWithCopilot → UpdateText) - Page 2011 “Entity Text Factbox Part” (1 call:
OpenEditPage → OnEditEntityTextWithTriggerAction) - Page 5836 “Copilot Marketing Text” (1 call:
GenerateText → GenerateText)
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: "Entity Text"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.