Renaming Dataset Attachment (Python Scenario)
I am looking to change the name of a dataset attachment (.xlsx file) sent in an email using a python scenario.
I am able to alter the file name by first publishing to a managed folder, then attaching. Wondering if there is simpler way to rename the dataset file.
Operating system used: Windows
Answers
-
Hi @d_g
, thanks for your question. Could you attach the code snippet that you're using?Also, what do you mean by Python scenario.. could you be more specific?
Are you using a custom scenario (basically a Python script) or a step in a scenario that executes some Python code? Here's the documentation that explains the difference:
- https://doc.dataiku.com/dss/latest/scenarios/custom_scenarios.html
- https://doc.dataiku.com/dss/latest/scenarios/steps.html#execute-python-code
Best,
Yashas