Technology Blog Posts by SAP
cancel
Showing results for 
Search instead for 
Did you mean: 
Dan_Wroblewski
Developer Advocate
Developer Advocate
2,052

I've created 3 new short videos to show you how to work with DMS from within your SAP Build Apps project. I've also released a demo app (both skeleton and complete versions) that lets a user navigate through DMS, create folders, upload documents, and delete documents.  

 

Video #1: #Set Up SAP Build Apps to Work With DMS

Set up the destination to DMS, add it o your project, and create a data variable with the schema for most DMS API responses.

 

Videos #2: Call DMS from SAP Build App

Use the HTTP Destination Request flow function to list objects in the root or any folder, and navigate the DMS tree.

 

Video #3: Upload a File from Build Apps to DMS

Use the new flow function to upload binary files to DMS, as well as to delete files.

 

DMS Playlist

Learning DMS? It might help to go through the SAP Document Management Service playlist , including the 3 TechBytes on DMS Integration Option, Application Option and Repository Option.

Dan_Wroblewski_0-1736919128877.png

All of these videos are based off the amazing work by Ming Kho (@mingkho), who not only developed the new HTTP Destination Request flow function that enables binary uploads, but patiently and clearly helped me understand how to use it.  

 

New HTTP Destination Request Flow Function

The new flow function lets you define multipart HTTP calls, especially so you can upload binary files, AND use a destination to define the connection details .

httpflowfunction-transparent.png

The flow function lets you have greater control over your HTTP calls while using a destination, and in a form i is easier to set. You can set:

  • Destination
  • HTTP method
  • Request body type – json, x-www-form-urlencoded, multipart/form-data, binary
  • Request body
  • Path (this was quite helpful to be able to provide a path here)
  • Headers

httppropertiespost.png

Though in my sample app I only really needed this flow function for uploading files, I used it for all my calls. Even for the other calls it helped having the Path property. 

 

Download Skeleton/Complete App

I have provided an app that lets the user navigate the DMS tree, create folders, upload documents, and delete documents.

app.png

Besides DMS, some other things you can learn from the app are:

  • Creating and triggering events
  • Conditional formatting of styles
  • Conditional formatting of icons
  • Creating variables with schema based on API response

There are 2 version of the app:

For the complete app to work, you may need to set the destination in the HTTP Destination Request flow functions (there are 4 of them throughout the app).

 

DMS APS

The documentation for the DMS APIs are located here:

 

 

8 Comments