SAP B1 → Email Document + Approval Request Round-Trip

On document add/update, render the layout to a PDF (via an external print service — Service Layer cannot run Crystal), email it via Graph API/SMTP with the PDF attached, then surface any pending B1 ApprovalRequest to the approver with approve/reject links that PATCH the approval request back in SAP B1.

Steps in this flow

  1. B1: Document Add/Update
  2. Guard: Document Key
  3. SL GET: Document + BP Email
  4. Render Layout via Print Service (external)
  5. Graph API: Send Email + PDF
  6. SL GET: Pending ApprovalRequests
  7. Approver Decision (approve/reject)
  8. SL PATCH: Approve
  9. SL PATCH: Reject

All templates