HI Paul
Thanks for the swift respond.
The issue I am having seems to only occur when querying an older release.
For e.g. you have created 5 release and have probably altered some stuff before each release creation.
You then go and query the 1st release snapshot created thats where the issue happens where the variable that is scoped to an action, you cannot find the matching actionId from the action scope values.
E.G.
Here’s the variable that has action scope
{
"Id": "6f5e1e1f-e9d8-4609-83e2-a82425b8d721",
"Name": "MarketLobbyDesc",
"Value": "UnitedKingdom:*",
"Description": null,
"Scope": {
"Action": [
"cb389922-1eb5-44cc-b7e3-e7cbb3781695"
]
},
"IsEditable": false,
"Prompt": null,
"Type": "String",
"IsSensitive": false
},
From looking at the action list from the ScopeValues object the matching action should be this one
{
"Id": "b1edf7b8-2bad-4903-85e9-5031c4f3a1af",
"Name": "18. Deploy Database United Kingdom UK"
},
However you can see the actionId don’t match.
I then had a look at the same release deploymentsnapshoptId and I can see the matching actionId
{
"Id": "39d96c91-8dab-47a2-a874-84266e81f577",
"Name": "Deploy Database United Kingdom UK",
"PackageRequirement": "LetOctopusDecide",
"Properties": {
"Octopus.Action.TargetRoles": "System.Database.PlayNext.Games"
},
"Condition": "Success",
"StartTrigger": "StartAfterPrevious",
"Actions": [
{
"Id": "cb389922-1eb5-44cc-b7e3-e7cbb3781695",
"Name": "Deploy Database United Kingdom UK",
"ActionType": "Octopus.TentaclePackage",
"IsDisabled": false,
"CanBeUsedForProjectVersioning": true,
"IsRequired": false,
"WorkerPoolId": null,
"WorkerPoolVariable": null,
"Environments": [
"Environments-601"
],
...
We are using octopus version 2020.1.17