Custom variables type always string ?

Solved!
dmajard
Level 2
Custom variables type always string ?
Hi,

I have defined some global variables in a flow, and these are integers, lists and stings. Yet when I use dataiku.get_custom_variables() in python everything is a string.

Doesn't JSON support these types?



Cheers,

Dany
0 Kudos
1 Solution
Alex_Combessie
Dataiker Alumni

Hi,



To do what you want, you can use the argument "typed" as shown below:




dataiku.get_custom_variables(typed = True)


Hope it helps,



Alex

View solution in original post

3 Replies
Alex_Combessie
Dataiker Alumni

Hi,



To do what you want, you can use the argument "typed" as shown below:




dataiku.get_custom_variables(typed = True)


Hope it helps,



Alex

dmajard
Level 2
Author
Merci !

That is so useful. Please add this detail to the documentation.

Cheers,
Dany
0 Kudos
Alex_Combessie
Dataiker Alumni
Thanks for the feedback, we will add this to our documentation backlog.
0 Kudos

Labels

?
Labels (1)
A banner prompting to get Dataiku