Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Different variable value for different tasks

Dawid2
Giga Guru

Hello,

I'm looking for the following implementation. I have a catalog item with 5 tasks. I'm using variable called Variant. I need this variable to be populated with different value based on the following conditions:

1. If value of Variable A is Test + value of Variable B is Test + it's a first task = populate variable Variant with Test

2. If value of Variable A is Test + value of Variable B is Test 2 + it's a second task = populate variable Variant with Test 2

And so on and so on.

Ideally I don't want to create separate variables for all scenarios. Can this be achieved using only 1 variable? We're still utilizing Workflows.

0 REPLIES 0