Hi, I’m hoping someone can guide me as I’m a little stuck ![]()
I have created a KVM called “targets” for each environment, this is published via the CICD in my edge.json. Testing this via the Google API, it retrieves the value I ask for. It contains the name of a server, and the value is the endpoint (which is a PSC endpoint).
In my target PreFlow, I use some Javascript to pull an identifier out of the cookie, which works, and it sets a variable called “server”. I can see in the DEBUG trace working and being set successfully.
What I’m trying to do next, is match that to the value in the KVM, to assign it the relevant endpoint. So my KVM is called “targets” and the variable is called “server”
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<KeyValueMapOperations continueOnError="false" enabled="true" name="KVM-Targets" mapIdentifier="targets">
<DisplayName>KVM-Targets</DisplayName>
<Properties/>
<Get assignTo="targetUrl">
<Key>
<Parameter>server</Parameter>
</Key>
<Scope>environment</Scope>
</Get>
</KeyValueMapOperations>
But i’m getting a “Unresolved variable : targetUrl” in the next step. It doesn’t seem like its getting to it, I don’t believe its a private KVM.
Any thoughts would be very welcome!