Error in Archy.
Variables in Archy is set to read only?
Sample code:
inboundShortMessage:
name: IONOS_POC_Messaging
description: POC for new messaging
division: IONOS_All_GCA
startUpRef: "/inboundShortMessage/states/state[initialstate]"
defaultLanguage: en-us
supportedLanguages:
en-us:
defaultLanguageSkill:
noValue: true
settingsErrorHandling:
errorHandling:
queue:
targetQueue:
lit:
name: IONOS_Chat
variables:
- stringVariable:
name: Flow.FlowName
description: Name of the flow
- stringVariable:
name: Flow.Version
description: Version of the flow
states:
- state:
name: Initial State
refId: initialstate
actions:
- setParticipantData:
attributes:
- attribute:
name:
lit: Version Flow
value:
exp: Flow.Version
- disconnect:
name: Disconnect
When run it gives an error.
'Flow.Version' cannot be referenced in the 'variables' section since is a read-only variable and does not support setting an initial value. YAML:
stringVariable:
name: "Flow.Version"
description: "Version of the flow"
Path: '/inboundShortMessage/variables/stringVariable'
Property name: 'stringVariable
I noticed, that when I create the variable in the UI and export it as yaml. It works just fine in Archy. However, when creating the variable in Archy and deploying it to Genesys, error occurs.