About

CPI Groovy Examples

Groovy scripting is an integral and important feature of SAP Cloud Platform Integration(CPI). The goals of this repository are:

  • Providing templates when you are implementing a new script
  • Easily finding Groovy functions related to the CPI topic at hand
  • Minimizing search engine time for common tasks
  • Providing educational content for beginners
  • Script examples are provided with context, explanation, and input/output examples.


    Go to GitHub Repository for contributions

    Basic Script Example for Beginners

    Open Example

    Excel XLS to XML Conversion

    Open Example

    Getting HTTP Error Body

    Open Example

    Getting SOAP Error Body

    Open Example

    MPL Custom Header Property

    Open Example

    MPL Payload Log

    Open Example

    MPL Logging Based on Flow log level

    Open Example

    Reading Credentials

    Open Example

    Getting a specific file from SFTP

    Open Example

    Convert XML to CSV (Manual)

    Open Example