Login About Gallery
Export Health Data
TEXT
‎Date;Value;Unit
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': ''}]
Sort by
‎Start Date
Order
‎Oldest First
Limit
SCRIPTING
‎Repeat with each item in ‎Input
HEALTH
‎Get ‎Start Date ‎from ‎Health Sample
VARIABLES
‎Set variable ‎startDt ‎to ‎Input
VARIABLES
‎Get ‎Repeat Item
HEALTH
‎Get ‎Value ‎from ‎Health Sample
VARIABLES
‎Set variable ‎value ‎to ‎Input
VARIABLES
‎Get ‎Repeat Item
HEALTH
‎Get ‎Unit ‎from ‎Health Sample
VARIABLES
‎Set variable ‎unit ‎to ‎Input
TEXT
‎value ‎; ‎unit ‎; ‎startDt
VARIABLES
‎Add ‎Input ‎to ‎rows
SCRIPTING
‎End Repeat
TEXT
‎Health Export ‎Current Date ‎.csv
VARIABLES
‎Set variable ‎filename ‎to ‎Input
VARIABLES
‎Get ‎rows
TEXT
‎Combine ‎Text List ‎with ‎New Lines
DOCUMENTS
‎Save ‎File
Service
‎iCloud Drive
Ask Where to Save
Destination Path
‎[{'value': '/Shortcuts/', 'class': 'text'}, {'class': 'magic', 'value': 'filename', 'glyph': 'assets/cat/Variable.svg', 'UUID': ''}]
Overwrite If File Exists
DOCUMENTS
‎Open ‎File ‎in ‎Choose
Show Open In Menu

Showcuts

Magic Vars

Screenshot

Submitted Anonymously 2 years ago

This is an old shortcut, so some variables might be missing!

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0