Skip to content
NEWMarketplace and your team: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / CRM & Sales Pipeline

CRM & Sales Pipeline

Create and approve Xero invoices from Pipedrive Closed Won deals with Slack

When something happens in a connected app, it updates your CRM using Pipedrive, Slack, Xero.

What it does

## Deal-to-invoice automation (CRM → Xero) ### How it works This workflow listens for Pipedrive deal updates and continues only when a deal enters the Closed Won stage. It retrieves the related person, finds or creates the matching Xero contact, builds invoice line items from the deal products, and creates a draft invoice in Xero. The draft is sent to Slack for approval; approved invoices are authorised and emailed when a contact email exists, while rejected or non-email cases are reported in Slack. ### Setup steps - Connect Pipedrive credentials for the trigger and CRM lookup nodes. - Connect Xero credentials or configure OAuth headers for the Xero contact and invoice API requests. - Connect Slack credentials and choose the channel or approvers for the approval and notification messages. - Set the Workflow Config values, including Xero organization ID, Closed Won stage ID, sales account code, and tax type. - Verify the Pipedrive deal/person fields and product fields used to build contact data and invoice line items. ### Customization Adjust the Closed Won stage filter, invoice account code, tax type, Slack approver/channel, and line-item mapping logic to match the sales process and accounting setup.

The steps

  1. If Closed Won Stage Entered
  2. Search Xero Contact
  3. If Contact Exists
  4. Create New Xero Contact
  5. Set Existing Contact ID
  6. Set New Contact ID
  7. Build Invoice Items
  8. Send for Slack Approval
  9. If Approval Received
  10. Post Xero Invoice Email
  11. Notify Slack of Sent Invoice
  12. Notify Slack of Rejection
  13. Configure Workflow Settings
  14. Retrieve Pipedrive Person

21 steps in total.

Similar automations