How to make a button to export directly in the dashboard


Hi !,

I need the node button in the dashboard for export a “data table log” of my device,
this is a raspberry pi 3 b and I’m programming it with python to communicate it with Losant.

I’m tried with next configuration of node’s :



Hi Pedro,

There are several different ways of achieving this goal, but I think this is the simplest way.
First, create a workflow that uses a button as you have, and then use the Losant API Node to call data table rows export, which given an email address and a query will send an email with an attachment of the resulting data. After that add an Input Controls Block, add a control of type “Button Trigger”. Set the button trigger to trigger a “Workflow”, specify the name of the workflow you just created and the button to trigger the export.

Hope this helps,