Describe the problem/error/question
I want to achieve 2 things:
- generate a CSV file from the JSON received (done successfully). and the name of the CSV file should be generated from one of the field in JSON (could not find a way to set the name of the file dynamically - screenshot below)
- Now that the CSV file is generated, I want to post this file to an API via Post method as part of ‘body>raw’ and the name to be passed in query string. cant figure out how to extract the name of the file from input of previous step and how to extract and populate the csv body in the post body ?
What is the error message (if any)?
Have already tried using expressions for generating the name of the file but it gives the following error…
Please share your workflow
EjAvJZSBs9gNc11k
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
Share the output returned by the last node
Information on your n8n setup
- n8n version: n8n cloud
- Database (default: SQLite): NA
- n8n EXECUTIONS_PROCESS setting (default: own, main): default
- Running n8n via (Docker, npm, n8n cloud, desktop app): n8n cloud
- **Operating system:**n n8n cloud