{"ref":"content:sap-ai-services-dox-gen-ai-with-sap-cap-plugin-part-3","page":"/content/sap-ai-services-dox-gen-ai-with-sap-cap-plugin-part-3","json":"/content/sap-ai-services-dox-gen-ai-with-sap-cap-plugin-part-3.json","generated":"2026-10-26","drafted_with_ai":true,"entity":{"id":"sap-ai-services-dox-gen-ai-with-sap-cap-plugin-part-3","title":"SAP AI Services - DOX - Gen AI with SAP CAP Plugin - Part 3","url":"https://community.sap.com/t5/technology-blog-posts-by-members/sap-ai-services-dox-gen-ai-with-sap-cap-plugin-part-3/ba-p/13720211","content_type":"blog","published_on":"source:sap-community","explains":["capability:plugin-authoring",{"ref":"capability:document-extraction","applies_to":{"ecosystems":["btp","cap"]}}],"summary":"Building on [Reusable components for CAP with cds-plugin](content:reusable-components-for-cap-with-cds-plugin) by [Daniel Schlachter](actor:danschlachter), this part walks through a custom CAP plugin — a `cds-plugin.js` plus a `lib_cap_dox.js` helper — that authenticates against SAP's Document Information Extraction (DOX) service and calls its schema and job-status APIs to fill an entity from extracted document fields. It covers reading the service key from Cloud Foundry (`cf service-key`) for the OAuth token endpoint, and dynamically mapping DOX's header and line-item output onto CAP entity properties.","short":"Custom CAP plugin for Document Information Extraction","author":"sabarna17","published":"2024-06-11","provenance":{"discovered_via":[{"source":"source:sap-community","channel":"cloud-foundry-tag"}],"first_seen":"2026-09-23"},"drafted_with_ai":true,"history":[{"date":"2026-10-17","field":"explains","from":null,"to":"applies_to on capability:document-extraction (cap, btp)","reason":"Door scope proposed from the title and summary, so a door page lists the piece only where it holds (docs/concepts/content-on-doors.md)."}]},"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":"fair","evidence":"published 28 months ago"}],"compatibility":[{"label":"Version","tier":"unknown","evidence":"no version declared"},{"label":"Moved since?","tier":"good","evidence":"no recorded change after 2024-06-11"},{"label":"Findings","tier":"good","evidence":"none flagged"}],"reach":[{"value":2987,"unit":"views"},{"value":2,"unit":"comments"},{"value":1,"unit":"likes"}]},"signals":{"views":2987,"likes":1,"comments":2,"metrics_at":"2026-10-25"},"series":{"container":false,"of":3,"at":3,"parts":[{"position":1,"title":"SAP AI Services - Document Information Extraction Service - Gen AI with CAP Plugin - Part 1","url":"https://community.sap.com/t5/technology-blog-posts-by-members/sap-ai-services-document-information-extraction-service-gen-ai-with-cap/ba-p/13718571","published":"2024-06-11","state":"not-read"},{"position":2,"title":"SAP AI Services - DOX - Gen AI with SAP CAP Plugin - Part 2","url":"https://community.sap.com/t5/technology-blog-posts-by-members/sap-ai-services-dox-gen-ai-with-sap-cap-plugin-part-2/ba-p/13719136","published":"2024-06-11","state":"not-read"},{"position":3,"title":"SAP AI Services - DOX - Gen AI with SAP CAP Plugin - Part 3","url":"https://community.sap.com/t5/technology-blog-posts-by-members/sap-ai-services-dox-gen-ai-with-sap-cap-plugin-part-3/ba-p/13720211","published":"2024-06-11","state":"indexed","id":"sap-ai-services-dox-gen-ai-with-sap-cap-plugin-part-3"}]},"edges":{"authors":[]}}