Auto-create Geotab zone for new Salesforce work order
Ready for 3.0What this workflow does
This workflow has 14 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Salesforce and Microsoft Outlook. It also calls my.geotab.com over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Respond to Webhook: sends the response back to the webhook caller
- Wait: waits 30 seconds
- Get Work Order details (Salesforce): get (custom object)
- Extract required fields (Edit Fields (Set)): sets 8 fields: Id, WorkOrderNumber, Job_Type__c…
- If: checks a condition and branches into true / false
- Prepare data for GeoTab (Edit Fields (Set)): sets 7 fields: Name, Latitude, Longitude…
- Email notification - error (Microsoft Outlook): uses Microsoft Outlook
- Calculate points (Code): runs custom JavaScript code
- GeoTab authentication (HTTP Request): calls my.geotab.com (POST)
- Calculate zone's active dates (Code): runs custom JavaScript code
…plus 3 more steps. See the full node list below.
Services it uses
HTTP calls to: my.geotab.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (9)
- Webhook
n8n-nodes-base.webhook - Respond to Webhook
n8n-nodes-base.respondToWebhook - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Salesforce
n8n-nodes-base.salesforce - Wait
n8n-nodes-base.wait - If
n8n-nodes-base.if - Microsoft Outlook
n8n-nodes-base.microsoftOutlook
From the author
📝 DESCRIPTION OF THE WORKFLOW This workflow connects Salesforce and Geotab to streamline fleet tracking for field service jobs (Work Orders). When a new Work Order is created in Salesforce (with a 'New' status and valid coordinates), it creates a circular…