0 votes
Hi, I would like to get the names of the managed folder/s that serve as input to my recipe.

However, when I do input_B_names = get_input_names_for_role('managed_folder'), I get something like:

The list does not contain the name I gave my managed_folder. It does contain the actual folder in DSS. I cannot therefore use the elements of the list as input to dataiku.Folder() function.

Is there a way I can get the names of the managed folder inputs?


asked by

1 Answer

0 votes


managed folders have both a name and an identifier (the "somerandomkey" in your case). The dataiku.Folder() function accepts both identifiers and names. If you need to translate identifier to name, you can do:

mf = dataiku.Folder(identifier)
name = mf.get_info()["name"]


answered by
972 questions
998 answers
2,370 users

┬ęDataiku 2012-2018 - Privacy Policy