Environment Variables

Hi,

I have environment variables in bot1 I deleted them and added new one and then published. Now when i try to import them and added it in bot2 then the new one are getting added into bot2. But the variables which are already there in the bot2 are not getting deleted. I tried with manual export and import, Also with the botvariables export-import APIs. With both the result is same.

Is there any way to solve this? or its kore default behaviour.

Thanks

Hi @varun.bingi ,

Please Confirm if you performed incremental import or full import.

In incremental import, the destination bot has its variables and when you try incremental import, the new variables will be added on top of the existing variables.

The full import will remove the existing variables and add the variables of the source bot.

Thank you,
Srujan Madderla

Hi @srujan.madderla

I have exported and tried full import manually its working fine. But when i tried to import only variables manually they are not getting deleted they are just adding top of old ones. Even i tried with the full bot export API, Import as an existing API they are just adding. I want the solution for the APIs not the manual one.

This is my import body :

“importOptions”: {
“nlpData”: [
“training_data”,
“bot_synonyms”,
“nlpSettings”,
“defaultDialog”,
“standardResponses”
],
“settings”: [
“botSettings”,
“ivrSettings”,
“botVariables”,
“ivrSettings”
],
“options”: {
“utterances”: {
“append”: true,
“replace”: false
}
},
“botComponents”: [
“linkedBots”,
“smallTalk”
],
“customDashboard”: true
}

This is my export body :

“exportType”: “published”,
“exportOptions”: {
“settings”: [
“botSettings”,
“botVariables”,
“ivrSettings”
],
“tasks”: [
“botTask”,
“knowledgeGraph”,
“smallTalk”
],
“nlpData”: [
“nlpSettings”,
“utterances”,
“patterns”,
“standardResponses”
]
},
“subTasks”: {
“alerts”: [],
“actions”: [],
“dialogs”: []
},
“allTasks”: true,
“customDashboards”: true,
“IncludeDependentTasks”: true
}

Thanks,
Varun