Quick overview
This workflow listens for new handover jobs in fulfillmenttools and, for Click & Collect orders from the FFT_Shop source, fetches the related order and pickup facility details. It then sends a ready-for-pickup email via Gmail in English or German based on the customer’s language.
How it works
- Triggers when a HANDOVERJOB_CREATED event is received from fulfillmenttools.
- Validates that the handover job belongs to the FFT_Shop sales source and uses the COLLECT channel, otherwise stops.
- Looks up the matching order in fulfillmenttools by tenantOrderId and then fetches the full order details.
- Verifies the customer email address exists and is not empty, otherwise stops.
- Retrieves the pickup facility details from fulfillmenttools and determines the customer language from the order custom attribute shopLanguage.
- Sends a ready-for-pickup HTML email through Gmail in English (en_US) or German (de_DE) to the customer’s email address.
Setup
- Install and configure the fulfillmenttools community node and add fulfillmenttools API credentials for the trigger and order/facility lookup steps.
- Add a Gmail OAuth2 credential with permission to send email and select it in both Gmail send steps.
- Ensure your fulfillmenttools handover job payload includes customAttributes.salesSource, channel, and customAttributes.shopLanguage (en_US or de_DE) so the workflow can filter and select the correct email language.
- Customize the email templates (subject/body, pickup code, links, pickup-by date, and branding) to match your shop and data fields.