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
‎If ‎Fetch Database Response Object ‎is ‎error
SCRIPTING
‎Get ‎Value ‎for ‎message ‎in ‎Fetch Database Response
SCRIPTING
‎Show alert ‎Informational Message
Title
‎optional
Show Cancel Button
SCRIPTING
‎Otherwise
SCRIPTING
‎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
SCRIPTING
‎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
SCRIPTING
‎Otherwise
SCRIPTING
‎Repeat with each item in ‎Chosen Categories
TEXT
‎{ "name": " ‎Repeat Item ‎" }
SCRIPTING
‎End Repeat
TEXT
‎Combine ‎Repeat Results ‎with ‎Custom ‎,
TEXT
‎[ ‎Combined Categories JSON ‎]
VARIABLES
‎Set variable ‎Categories JSON ‎to ‎Categories Array
SCRIPTING
‎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
‎If ‎Create Page Response Object ‎is ‎error
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
SCRIPTING
‎Otherwise
SCRIPTING
‎Show alert ‎Informational Message
Title
‎optional
Show Cancel Button
SCRIPTING
‎End If

Showcuts

Magic Vars

Screenshot

Submitted Anonymously 9 months ago

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0