Export Health Data
TEXT
Date;Value;Unit

Text
VARIABLES
Set variable
rows
to
Input
HEALTH
Find
All Health Samples
where
All the following are true [{'class': 'filter-property', 'value': 'Type'}, {'class': 'filter-operator', 'value': 'is'}, {'class': 'filter-benchmark', 'value': 'default'}] [{'class': 'filter-property', 'value': 'Start Date'}, {'class': 'filter-operator', 'value': 'is between'}, {'class': 'filter-benchmark', 'value': 'Now', 'glyph': '', 'UUID': ''}, {'value': 'and'}, {'class': 'filter-benchmark', 'value': 'Now', 'glyph': '', 'UUID': ''}]

Health Samples
SCRIPTING
Repeat with each item in
Input

Repeat Results
HEALTH
Get
Start Date
from
Health Sample

Start Date
VARIABLES
Set variable
startDt
to
Input
VARIABLES
Get
Repeat Item
HEALTH
Get
Value
from
Health Sample

Value
VARIABLES
Set variable
value
to
Input
VARIABLES
Get
Repeat Item
HEALTH
Get
Unit
from
Health Sample

Unit
VARIABLES
Set variable
unit
to
Input

Text
VARIABLES
Add
Input
to
rows
SCRIPTING
End Repeat

Repeat Results
TEXT
Health Export
Current Date
.csv

Text
VARIABLES
Set variable
filename
to
Input
VARIABLES
Get
rows
TEXT
Combine
Text List
with
New Lines

Combined Text
DOCUMENTS
Save
File
Destination Path
[{'value': '/Shortcuts/', 'class': 'text'}, {'class': 'magic', 'value': 'filename', 'glyph': 'assets/cat/Variable.svg', 'UUID': ''}]Overwrite If File Exists

Saved File
DOCUMENTS
Showcuts