This project is provided as-is and is not intended as an official recommendation from SAP. It serves as a proof of concept to demonstrate the integration of SAP Build Code and SAP Document Information Extraction Service.
This repository is part of a blog post that provides a detailed explanation of the scenario and solution. You can read the full blog post here.
In the following files, replace <Your-App-ID>
with the app configuration ID you defined while creating the app configuration in SAP Mobile Services Cockpit:
AndroidManifest.xml
sap_mobile_services.json
From SAP Mobile Services → Your App → Security, copy the following values into the sap_mobile_services.json
file:
clientID
redirectURL
oauth2.tokenEndpoint
oauth2.authorizationEndpoint
From SAP Mobile Services → Your App → APIs, copy the ServiceUrl
value into the sap_mobile_services.json
file.
In the SAPServiceManager.kt
file, make the following changes:
- Change
CONNECTION_ID_DOX_DESTINATION
if you used a different name when creating the destination for SAP Document Information Extraction Service on SAP Mobile Services. - Fetch the Schema ID using this API and paste it as the value for
val schemaID
in theuploadToDoxService
function.