cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically pass variable to read a property

cy71_shyam
Explorer
0 Kudos
114

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")

Accepted Solutions (1)

Accepted Solutions (1)

Sriprasadsbhat
Active Contributor

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

Answers (0)