Recued
Menu
← Back to recipes

Return windows from deliveries

by recued-core v1 12 views

Use “Return windows from deliveries” in Recued. When an email says a parcel was delivered, it adds a commitment that stays open for the days you choose (30 by default), so you can decide whether to send it back, and closes by itself once that window has passed. It starts on the delivery, not on a timer, and never contacts a shop or carrier.

How it works 23 steps

Inspect the data fetches, transforms, gates, and output this recipe runs.

Process (23 steps)
■ parcel defaults
Apply defaults
■ closes_at date_add
Add setting return days days to
■ closes_on date_format
Format as a date
■ closes_ms date_parse
Parse closes on as a date
■ delivered_on date_format
Format as a date
■ window_passed is_past
Check if is in the past
■ opens all
Check if all conditions are true
■ has_merchant compare
Check if parcel merchant has data
■ has_order compare
Check if parcel order id has data
■ order_part ternary
Apply ternary
■ label ternary
Apply ternary
■ statement truncate
Truncate Return window for {{step.label}}, delivered {{step.delivered_on}} to a max length
■ key replace
Replace text in mail-fact-return-window:{{step.parcel.thing_id}}
■ keys default
Apply default
■ match_key default
Apply default
◆ listed core.work-entity.list
List work entity
■ made_here filter
Filter by condition
■ mine filter
Filter by condition
■ found count
Count items in mine
■ is_new compare
Check if found equals 0
◆ window core.work-entity.commitment.create
Create work entity commitment
skip: step.is_new equal false
■ outcome ternary
Apply ternary
■ card to_summary
Format results as a summary card
▼
Output
summary card
Settings 1 configurable

Configurable at install. Defaults shown — change them anytime in Recued.

return days setting = 30

Uses (2 operations)

Tasks & notes List work entity core.work-entity.list
Tasks & notes Create work entity commitment core.work-entity.commitment.create

Trust & control

What installing this recipe would let it do. Recued grants these permissions at install — review them there before approving.

What it's allowed to do

Read Tasks & notes core.work-entity.list read-only
Write Tasks & notes core.work-entity.commitment.create external change

Data it touches

SurfacesTasks & notes

About

Tags

parcelsshippingreturnsmailmail-factcommitmentdeterministicpack:parcels

Details

23 steps 1 configurable settings recipe_id: track-return-window-from-delivery