GetGenAIPrompt(PromptCode, FieldName)
Purpose
The GetGenAIPrompt(PromptCode, FieldName) function retrieves the value of a specific field from a PromptManager record.
Syntax
Dim variable As String = GetGenAIPrompt(PromptCode, FieldName)
Arguments
| Part | Description |
|---|---|
| PromptCode | The code of the PromptManager record from which the value of a specific field is retrieved.
Note: The PromptCode must match a valid PROMPT_CODE in the FSPROMPTMANAGER table.
|
| FieldName | The name of the column in the FSPROMPTMANAGER table, to be returned.
Example:
|
Return Value
If a valid code is specified in the function, a string containing the assembled prompt text is returned.
Note: If the PromptManager code is empty or an invalid code is specified, an empty string is returned to the function.
Description
Use this function to retrieve a single field value from the PromptManager record.
Note: You can use this prompt when a specific part of the prompt configuration is required.
For example, the models name, particular prompt section.