Send csv from Tulip to local file location

I’m currently working on an app in which I have a very specific request. I would like to have Tulip send out a csv to a local file location. I am told this feature currently does not exist.

Thanks.

If your are working from a recent-enough LTS or current release, and your data can be represented in an interactive table widget (source is either object list variable, table, or table query), you can enable CSV export with user-selected local save location.

image

image

Alternately you could recursively construct a CSV file by joining your row elements to a comma-delimited string, then joining those together with a LF character as the delimiter, with your first row containing your header content. You could do this with array functions or expressions.

Have you thought about using node red?

Hi there, thanks for reaching out. I can help clarify what’s possible today.

Tulip does not currently support automatically writing a CSV file directly to a local folder from an in-app Trigger. The built-in CSV export option is limited to Analytics. If you need the app to generate a CSV, the common approach is to build the CSV content as text inside Tulip, then send that text out to a system that can write the file locally. Node-RED is a good fit for this since Tulip Apps can send messages directly to a Node-RED flow running on an Edge Device using a standard HTTP Connector. Tulip’s KB covers this setup, including creating a Connector to the device’s Connector Host and configuring a POST endpoint in Node-RED. You can review the full walkthrough here:

If you want a general overview of how Node-RED works on Tulip Edge Devices, this article is helpful as well:
https://support.tulip.co/docs/overview-of-node-red

Best,

Nicolo

Yeah I ended up just building the report/document in its own app step. Then I applied a step open trigger to print it using the system dialog. I needed a barcode, so I embedded one that stored the ID value in it. The report below fits perfectly on an 8.5 x 11 sheet of paper.

1 Like