SAP B1 ← SharePoint: OCR Vendor Invoice → Purchase Invoice Draft

Inbound vendor invoices land in a SharePoint library, get OCR'd, then post as Purchase Invoice DRAFTS in SAP B1 with the original file attached back via Attachments2. Handles filename collisions and stamps the SharePoint item ID into a UDF for idempotency.

Steps in this flow

  1. SharePoint: New File in Library
  2. Guard: SharePoint Item ID
  3. Graph: Download File Content
  4. OCR: Extract Invoice Fields
  5. Validate OCR (vendor,total,date,VAT)
  6. SL POST /Attachments2 (file + item-id name)
  7. SL POST /Drafts (PurchaseInvoice)
  8. Notify AP: Draft Ready for Review

All templates