Actions for Obsidian - Contacts

Overview

This example syncs contacts from a Apple Contacts group named “Shortcuts demo” with Obsidian.

The result is a single note for each contact, with up-to-date contact details in the front matter. If the workflow runs again, it’ll find existing notes and update them; if it finds contacts without a note, it’ll create a new one.

The entries in Contacts will gain a clickable link to the Obsidian note.

Download

Double-click the downloaded file to install the workflow in Shortcuts.

Sync Contacts with Notes.shortcut 

Workflow Screenshot

First, in the part that creates the body of the new note, add your new properties:

It’ll look like this:

1
2
3
4
5
6
---
contact_id: Contact ID
phone: [Combined Text]
email: [Combined Text]
birthday: [Birthday]
---

The [Birthday] part is a property of the contact, so first insert the contact variable there, and then tap the contact variable, which shows a list of all its properties so you can pick the birthday.

In the part that updates the note, duplicate the “Search and replace” actions, and update the properties as needed. The search term in the screenshot means “find the bit that says phone: and the rest of its line”, so sticking to the birthday example, you’d use /birthday: .*/ here.

Source: ▶️ Sync Contacts with Notes