on 2021 Jan 19 1:10 AM
I have a requirement to dynamically pass a variable to read a property.I have tried a few ways to escape etc but not able to achieve it. I have tried the \',\" and ${PayGroupLastRundatetimeVariable} but to no effect.
Any pointers here?
def PayGroupLastRundatetimeVariable = 'v0001a'+PayGroupExternalCode
def LastRunDateTime = properties.get("PayGroupLastRundatetimeVariable")
Hello Shyam,
You cant get variable directly in script. Before your script add property or header with type as Local Variable in content Modifier and get the value of your local variable into Property .Then use the same property inside script that will be having your local variable data.
Regards,
Sriprasad Shivaram Bhat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
62 | |
12 | |
7 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.