Default values & formulas
Automatically populate fields when new items are created
When 2sync creates new items in Notion, you can automatically set values for properties that aren't mapped. Default values ensure database consistency and enable smarter workflows.
How do default values work?
Default values apply when:
- A new item syncs FROM an external app TO Notion
- The property isn't mapped to an external field
- 2sync needs a value for required properties
Example: Every Google Calendar event gets a 📅 icon automatically, without mapping anything.
How do I set default values?
- Open your automation
- Go to Default Values section
- Click + Add Default Value
- Select the Notion property
- Enter the default value
Supported property types
| Property Type | Default Value Options |
|---|---|
| Text | Any text string |
| Select | Any option from the select |
| Multi-select | One or more options |
| Checkbox | Checked or unchecked |
| Number | Any number |
| Date | Specific date or relative (today) |
| Status | Any status option |
| Page Icon | Any emoji |
What are common use cases for default values?
Page icons
Assign consistent icons to synced items:
- 📅 for calendar events
- ✅ for tasks from Todoist
- 📧 for emails
- 👤 for contacts
Setup:
- Property: Page Icon Emoji
- Value: Your chosen emoji
Source attribution
Track where items came from when aggregating multiple sources:
- Property: Source (Select)
- Values: "Google Calendar," "Todoist," "Gmail," etc.
Benefit: Filter views by source, run automations based on origin.
Status initialization
Set default status for incoming items:
- Property: Status
- Value: "Not Started" or "Inbox"
Benefit: New tasks enter a triage workflow automatically.
Type categorization
Categorize items automatically:
- Property: Type (Select)
- Value: "Meeting," "Task," "Email," etc.
Benefit: Different views per type without manual categorization.
Project assignment
Assign new items to a default project:
- Property: Project (Relation or Select)
- Value: "Inbox" or "Uncategorized"
Benefit: Nothing gets lost; everything has a home.
How does default duration work?
For calendar automations, set a default duration for events created from Notion without an end time.
Problem: Create a Notion page "Meeting at 2pm" without an end time. What duration should the calendar event have?
Solution:
- Setting: Default calendar event duration
- Value: 60 minutes (or any duration)
Result: "Meeting at 2pm" becomes 2:00 PM - 3:00 PM in Google Calendar.
How do filter-based defaults work?
When you use filters, filtered properties automatically get their filtered value as a default.
Example:
- Filter: Calendar Name equals "Work"
- Default: New Notion events sync to "Work" calendar
This happens automatically, no manual default setting needed.
How do I use formulas?
Map Notion formulas to sync calculated values to external apps.
Formula requirements
- Set sync direction to one-way to external app
- Map the formula property to a compatible field
- Ensure all referenced databases are connected to 2sync
Common formula uses
Combining fields:
prop("First Name") + " " + prop("Last Name")
Map to: Event Name or Title
Conditional values:
if(prop("Priority") == "High", "🔴 " + prop("Title"), prop("Title"))
Map to: Event Name (adds prefix for high priority)
Date calculations:
dateAdd(prop("Due Date"), -1, "days")
Map to: Reminder date
Formula permissions
Formulas that reference relations or rollups need access to related databases:
Problem: Formula shows empty in synced output.
Cause: Formula references a relation to a database not connected to 2sync.
Fix: Connect the related database to 2sync via (•••) > Add connections > 2sync. See Notion property types for details on formula compatibility.
How do I set conditional defaults?
2sync doesn't support conditional defaults directly, but you can achieve similar results:
Multiple automations
Create separate automations with different defaults. See Use multiple automations for guidance:
- Automation A: Filter to "Work" calendar, default icon 💼
- Automation B: Filter to "Personal" calendar, default icon 🏠
Notion formulas
Use formulas to calculate values based on other properties:
- Sync the raw data
- Use formula properties to derive conditional values
- Use those formulas in views and workflows
What is the difference between default values and field mapping?
| Aspect | Default values | Field mapping |
|---|---|---|
| Source | Static value you define | Dynamic from external app |
| When applied | Only on new item creation | On create and update |
| Can sync back | No | Yes (if two-way) |
| Use case | Constants, categorization | Data synchronization |
What are the best practices for default values?
Keep defaults simple
Use defaults for truly constant values, not complex logic. If values should vary, map the field instead.
Document your defaults
Note why you set each default. Months later, you'll need to know why every event has a specific icon.
Test with new items
After setting defaults, create a test item to verify:
- Create item in external app
- Wait for sync
- Check Notion page has expected defaults
Avoid conflicts
Don't set defaults for mapped fields. The mapped value overrides the default anyway.
Related
- Default asset configuration for setting where new Notion items are created
- Notion property types for supported property types and formula compatibility
- Use multiple automations for splitting defaults across automations
- Google Calendar fields for available calendar fields to map
- Todoist fields for available Todoist fields to map
FAQ
Can I set different defaults based on conditions?
Not directly. Use multiple automations with different filters and defaults, or use Notion formulas to calculate conditional values after syncing.
Do defaults apply when updating items?
No. Defaults only apply when creating new items. Updates don't change default values.
Why isn't my formula syncing?
Formulas that reference relations or rollups need all related databases connected to 2sync. Add the 2sync connection to referenced databases.
Can I use today's date as a default?
Yes. For date properties, you can set relative defaults like 'today' or use a fixed date.
What happens if I change a default value?
New items use the new default. Existing items keep their current values, and changes aren't retroactive.