The SAP API Business Hub is a public portal that collects integration scenarios ready for use with an SAP Cloud Platform instance.
The portal is publicly available and can be accessed at https://api.sap.com/. Alternatively, the SAP API Business Hub also reachable from the Discover section of the API Portal.
Finding Artifacts
For example, into your SAP Cloud Platform Integration service, you can import best practice examples from the SAP API Business Hub. From your integration tenant, select the Discover section, shown in the next figure, and browse for the content you want to import into your system. In this case, we searched for the “Cloud Integration – Exemplars,” which contains a collection of simple iFlow best practices.
The package content has information related to the different artifacts, including:
- Overview: a quick description of the package content
- Artifacts: the development objects included
- Documents: the documentation of the artifacts and the installation guides
- Tags: that are used by the search engine to retrieve the results
- Ratings: that collect all the community ratings relative to this package
Downloading Artifacts
Search for and select CSV to XML Converter artifacts. Each artifact has an action button on its right side that allows you to see technical information about the iFlow and to download the actual development object as a zip file, as shown here:
Importing Artifacts
After you download the artifact, you can import the artifact via our integration package in the SAP Cloud Platform Integration service. From the design page, create a new package called “Best Practices” and proceed with the creation of a new iFlow. During the creation, instead of selecting Create, select Import. Find and select the zip file that you just downloaded from the SAP API Business Hub, as shown here:
The iFlow is now ready for use, but you still need to configure a few parameters to integrate the iFlow with your environment, as shown below. In this specific case, the iFlow requires the configuration of the email SMTP server used to send the converted CSV data.
Conclusion
The artifact is now ready for deployment. The iFlow can be triggered with a timer trigger that runs once, when the iFlow is successfully deployed. As shown below, the output of the iFlow with XML content is the body of the email.
Comments