Custom variables type always string ?

Highlighted
dmajard
Level 2
Custom variables type always string ?
Jump to solution
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

Accepted Solutions
Alex_Combessie Dataiker
Dataiker
Re: Custom variables type always string ?
Jump to solution

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
Dataiker
Re: Custom variables type always string ?
Jump to solution

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

dmajard
Level 2
Re: Custom variables type always string ?
Jump to solution
Merci !

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

Cheers,
Dany
0 Kudos
Alex_Combessie Dataiker
Dataiker
Re: Custom variables type always string ?
Jump to solution
Thanks for the feedback, we will add this to our documentation backlog.
0 Kudos
Labels (1)