{"ref":"content:sap-cpi-integration-with-microsoft-graph-api-oauth-2-0-html-emails-and-file-atta","page":"/content/sap-cpi-integration-with-microsoft-graph-api-oauth-2-0-html-emails-and-file-atta","json":"/content/sap-cpi-integration-with-microsoft-graph-api-oauth-2-0-html-emails-and-file-atta.json","generated":"2026-11-15","drafted_with_ai":true,"entity":{"id":"sap-cpi-integration-with-microsoft-graph-api-oauth-2-0-html-emails-and-file-atta","title":"SAP CPI Integration with Microsoft Graph API: OAuth 2.0, HTML Emails, and File Attachments","url":"https://community.sap.com/t5/technology-blog-posts-by-members/sap-cpi-integration-with-microsoft-graph-api-oauth-2-0-html-emails-and-file/ba-p/14494674","content_type":"blog","published_on":"source:sap-community","explains":["capability:integration-flows"],"summary":"Builds an integration flow on [Cloud Integration](artifact:btp-cloud-integration) that sends an HTML email with a Base64-encoded attachment through the Microsoft Graph API instead of SMTP: an OAuth 2.0 Authorization Code credential configured for Microsoft 365, a Content Modifier and Base64 Encoder preparing the mail body and attachment, a Groovy script reading the access token from the SecureStoreService, and a Request-Reply step calling the Graph `sendMail` endpoint over its HTTP receiver adapter. It lists the HTTP 400/401/403 failures to check against the request body, the token and the Graph mail permissions.","author":"pooja_tiwari3","published":"2026-09-30","provenance":{"discovered_via":[{"source":"source:sap-community","channel":"integration-suite-tag"}],"first_seen":"2026-11-04"},"drafted_with_ai":true},"readings":{"liveness":[{"label":"Checked against the source","tier":"unknown","evidence":"nobody has checked it"},{"label":"Source reachable","tier":"unknown","evidence":"not crawled"},{"label":"Age","tier":"good","evidence":"published 2 months ago"}],"compatibility":[{"label":"Version","tier":"unknown","evidence":"no version declared"},{"label":"Moved since?","tier":"good","evidence":"no recorded change after 2026-09-30"},{"label":"Findings","tier":"good","evidence":"none flagged"}],"reach":[{"value":null,"unit":"views"},{"value":null,"unit":"comments"},{"value":null,"unit":"likes"}]},"signals":null,"series":null,"edges":{"authors":[]}}