Hey,
You can use a combination of IndexOf and Substring to achieve that.
@substring(pipeline().parameters.ABC,add(indexof(pipeline().parameters.ABC,'/'),1),sub(length(pipeline().parameters.ABC),add(indexof(pipeline().parameters.ABC,'/'),1)))
Sample code:
{
"name": "pipeline1",
"properties": {
"activities": [
{
"name": "Set variable1",
"type": "SetVariable",
"dependsOn": [],
"userProperties": [],
"typeProperties": {
"variableName": "x",
"value": {
"value": "@string(indexof(pipeline().parameters.ABC,';'))",
"type": "Expression"
}
}
},
{
"name": "Set variable2",
"type": "SetVariable",
"dependsOn": [],
"userProperties": [],
"typeProperties": {
"variableName": "y",
"value": {
"value": "@substring(pipeline().parameters.ABC,add(indexof(pipeline().parameters.ABC,';'),1),sub(length(pipeline().parameters.ABC),add(indexof(pipeline().parameters.ABC,';'),1)))",
"type": "Expression"
}
}
},
{
"name": "Set variable3",
"type": "SetVariable",
"dependsOn": [],
"userProperties": [],
"typeProperties": {
"variableName": "z",
"value": {
"value": "@string(sub(length(pipeline().parameters.ABC),indexof(pipeline().parameters.ABC,';')))",
"type": "Expression"
}
}
}
],
"parameters": {
"ABC": {
"type": "string",
"defaultValue": "11;2;3;4"
}
},
"variables": {
"x": {
"type": "String"
},
"y": {
"type": "String"
},
"z": {
"type": "String"
}
},
"annotations": []
}
}