Octopus Parmerts

while executing script and passing parameters , unable to subsitute the vairables for
{
“user-provided”: [
{
“credentials”: {
“T”: “param1”,
“T”: “param1”,
“B”: “param1”,
“B”: “param1”,
“C”: “param1”,
“C”: “param1”,
“C”: “param1”,
“C”: “param1”
},
“syslog_drain_url”: “”,
“C”: [],
“label”: “user-provided”,
“C”: "param1,
“tags”: []
}
]
}

Hi Krishna,

Thanks for getting in touch! We have a great documentation page outlining how you can substitute variables in JSON files with matching Octopus files. The following link is to the section on replacing values in a JSON array like it looks like you’re after.

Do you have any luck with using this feature? Let me know how you go, and if you’re still encountering the issue, could you provide an example showing how you’ve defined your variable you’re wanting to substitute in? I’ll be happy to give it a test.

Kind regards,

Kenny

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.