Sign up to take part
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Hi,
I am trying to develop macro for projects which can read project related resources.
How can I inside the python script in do function:
def do(payload, config, plugin_config, inputs):
get projectId where from is the macro running?
Operating system used: Linux
Hi Patrik,
The get_default_project() method of the dataikuapi.DSSClient class can help you:
import dataiku
client = dataiku.api_client()
current_project_key = client.get_default_project().project_key
Best,
Harizo
Hi Patrik,
The get_default_project() method of the dataikuapi.DSSClient class can help you:
import dataiku
client = dataiku.api_client()
current_project_key = client.get_default_project().project_key
Best,
Harizo