Login About Gallery
Record Expenses
COMMENT
Created by Alex Sherwood aka @aNotioneer. More Apple Shortcuts and Notion templates at anotioneer.com. Creators - please feel free to copy and adapt this Shortcut, all I ask is that you mention where the original version came from.
SHORTCUTS
Run
Settings | Record Expenses
Input
Choose Variable
Show While Running
SCRIPTING
Get dictionary from
Shortcut Result
SCRIPTING
Get
Value
for
API Key
in
Settings
SCRIPTING
Get
Value
for
API Version
in
Settings
SCRIPTING
Get
Value
for
Database ID
in
Settings
SCRIPTING
Get
Value
for
Name Label
in
Settings
SCRIPTING
Get
Value
for
Category Name
in
Settings
SCRIPTING
Get
Value
for
Category Type
in
Settings
SCRIPTING
Get
Value
for
Number Name
in
Settings
SCRIPTING
Get
Value
for
Date Name
in
Settings
NETWORK
Get contents of
https://api.notion.com/v1/databases/
Database ID
Options Under Construction
SCRIPTING
Get
Value
for
object
in
Fetch Database Response
SCRIPTING
SCRIPTING
Get
Value
for
message
in
Fetch Database Response
SCRIPTING
Show alert
Informational Message
Title
optional
Show Cancel Button
Otherwise
End If
SCRIPTING
Get
Value
for
properties.
Category Name
.
Category Type
.options
in
Fetch Database Response
SCRIPTING
Repeat with each item in
Category Options
SCRIPTING
Get
Value
for
name
in
Repeat Item
End Repeat
SCRIPTING
Ask
Expense Name
Input Type
Text
Default Answer
Text
SCRIPTING
Choose from
Category Names
Prompt
Expense Category
Select Multiple
SCRIPTING
If
Category Type
is
select
TEXT
{ "name": "
Chosen Categories
" }
VARIABLES
Set variable
Categories JSON
to
Single Category JSON
Otherwise
SCRIPTING
Repeat with each item in
Chosen Categories
TEXT
{ "name": "
Repeat Item
" }
End Repeat
TEXT
Combine
Repeat Results
with
Custom
,
VARIABLES
Set variable
Categories JSON
to
Categories Array
End If
SCRIPTING
Ask
Expense Amount
Input Type
Number
Default Answer
0
TEXT
{ "parent": { "database_id": "
Category Name
" }, "properties": { "
Current Date
": { "title": [ { "text": { "content": "
Amount
" } } ] }, "
Category Type
": { "
Date Name
":
Expense Name
}, "
Number Name
": { "date": { "start": "
Database ID
" } }, "
Name Label
": { "number":
Categories JSON
} } }
NETWORK
Get contents of
https://api.notion.com/v1/pages/
Options Under Construction
SCRIPTING
Get
Value
for
object
in
Create Page Response
SCRIPTING
SCRIPTING
Get
Value
for
message
in
Create Page Response
SCRIPTING
Show alert
Informational Message
Title
optional
Show Cancel Button
SCRIPTING
Show alert
Informational Message
Title
optional
Show Cancel Button
Otherwise
SCRIPTING
Show alert
Informational Message
Title
optional
Show Cancel Button
End If

Showcuts

Magic Vars

Screenshot

Submitted Anonymously 2 months ago

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0