I have 2 json files in which I need to substitute a variable. Variable name is the same:
“variableName” : “value”
On variable tab I create substitution rule:
So, after deploy in both json files json property “variableName” has a value: “updatedValue”
But I need to update property “variableName” in json1 to value “value1” and in json2 this value must be “value2”
Is there any way to do that?
Thanks for getting in touch! There’s no built-in way to differentiate between two text files to substitute different values for the same variable name. I’d recommend splitting these two into two separate variable names which you could then put in your files accordingly. Otherwise you would have to write some custom logic to perform the substitution as you need.
Let me know how you go or if you have any further questions moving forward.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.