cancel
Showing results for 
Search instead for 
Did you mean: 

HCI Global Variable by Groovy script

Hello friends,

Is is possible to access the Global Variables by groovy script in HCI? I need to access and modify.

I want to use the groovy because it is not possible to use the Write Variable passing in the name of variable a dynamic parameter. like ${property.DynVariable}, HCI will create a variable with name ${property.DynVariable}, not with the value of this property.

Thank you

Accepted Solutions (0)

Answers (4)

Answers (4)

Merina1
Participant

Hi Kaleo,

You can create variable using write variable and then in save it as property in Content Modifier after which you can the property in a groovy script.

Regards,

Merina

0 Kudos

Hello Merina,

I want to write the name of variable dynamic, after that I can read by groovy or content modifier no problem.

Thank you

former_member623030
Discoverer
0 Kudos

Hello does you know how to read dynamicly a global variable?

0 Kudos

Hi Praveen,

I am setting dynamic the name of variable and the value.

The problem is, a variable will be create with name ${property.DynVariable}, not with the value of that.

Thank you.

Kaleo

0 Kudos

Hi Kaleo,

This doesn't seems to be correct.

If you mention the "${property.DynVariable}" and Type as expression it must work.

This is the expected behavior.

Please share the screenshot if its not working.

thanks and regards,

Praveen T