Codeunit "Entity Text"
Exposes the public functionality for handling entity text.
Properties
| Name | Value |
|---|---|
| Access | Public |
Methods
IsEnabled
Gets if Entity Text functionality is enabled.
procedure IsEnabled(Silent: Boolean): Boolean
Parameters
| Name | Type | Description |
|---|---|---|
| Silent | Boolean |
If this should be evaluated silently. |
Returns
| Type | Description |
|---|---|
| Boolean |
True if the functionality is enabled. |
IsEnabled
Gets if Entity Text functionality is enabled.
procedure IsEnabled(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
True if the functionality is enabled. |
CanSuggest
Gets if the Entity Text Suggest functionality is enabled
procedure CanSuggest(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
True if the functionality is enabled. |
GetText
procedure GetText(TableId: Integer, SystemId: Guid, EntityTextScenario: __MissingTypeSymbol__): Text
Parameters
| Name | Type | Description |
|---|---|---|
| TableId | Integer | |
| SystemId | Guid | |
| EntityTextScenario | __MissingTypeSymbol__ |
Returns
| Type | Description |
|---|---|
| Text |
GetText
procedure GetText(EntityText: __MissingTypeSymbol__): Text
Parameters
| Name | Type | Description |
|---|---|---|
| EntityText | __MissingTypeSymbol__ |
Returns
| Type | Description |
|---|---|
| Text |
GenerateText
Generate Entity Text using AI capabilities.
procedure GenerateText(Facts: Dictionary of [Text, Text], Tone: Enum "Entity Text Tone", TextFormat: Enum "Entity Text Format", TextEmphasis: Enum "Entity Text Emphasis"): Text
Parameters
| Name | Type | Description |
|---|---|---|
| Facts | Dictionary of [Text, Text] |
The Facts of the Entity used for generation. |
| Tone | Enum System.Text."Entity Text Tone" |
The tone of the generated text. |
| TextFormat | Enum System.Text."Entity Text Format" |
The length and format of the generated text. |
| TextEmphasis | Enum System.Text."Entity Text Emphasis" |
Feature to emphasize. |
Returns
| Type | Description |
|---|---|
| Text |
Generated entity text. |
UpdateText
procedure UpdateText(EntityText: __MissingTypeSymbol__, EntityTextContent: Text)
Parameters
| Name | Type | Description |
|---|---|---|
| EntityText | __MissingTypeSymbol__ | |
| EntityTextContent | Text |
SetEntityTextAuthorization
Sets AI authorization for the current Entity Text scope.
procedure SetEntityTextAuthorization(Endpoint: Text, Deployment: Text, ApiKey: SecretText)
Parameters
| Name | Type | Description |
|---|---|---|
| Endpoint | Text |
The endpoint to use. |
| Deployment | Text |
The deployment to use for the endpoint. |
| ApiKey | SecretText |
The API key to use for the endpoint. |
Remarks
Endpoint would look like: https://resource-name.openai.azure.com/ Deployment would look like: gpt-35-turbo-16k
Events
OnRequestEntityContext
[IntegrationEvent(False,False)]
procedure OnRequestEntityContext(SourceTableId: Integer, SourceSystemId: Guid, SourceScenario: __MissingTypeSymbol__, var Facts: Dictionary of [Text, Text], var TextTone: Enum "Entity Text Tone", var TextFormat: Enum "Entity Text Format", var Handled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| SourceTableId | Integer | |
| SourceSystemId | Guid | |
| SourceScenario | __MissingTypeSymbol__ | |
| Facts | Dictionary of [Text, Text] | |
| TextTone | Enum System.Text."Entity Text Tone" | |
| TextFormat | Enum System.Text."Entity Text Format" | |
| Handled | Boolean |
OnEditEntityTextWithTriggerAction
[IntegrationEvent(False,False)]
internal procedure OnEditEntityTextWithTriggerAction(TempEntityText: __MissingTypeSymbol__, var Action: Action, var Handled: Boolean, TriggerAction: Enum "Entity Text Actions")
Parameters
| Name | Type | Description |
|---|---|---|
| TempEntityText | __MissingTypeSymbol__ | |
| Action | Action | |
| Handled | Boolean | |
| TriggerAction | Enum System.Text."Entity Text Actions" |