SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
โคข Open full site

Create an API Trigger for the Process

Create an API trigger for the business process.

Overview

🎓 beginner 10 min. SAP Build Process AutomationBeginnerSAP Business Technology PlatformFree Tier

You will learn

  • โœ”How to create an API trigger to start an instance of a business process from any service, like SAP Build Apps

Prerequisites

Prerequisites

Steps

Intro

A business process is started by defining a trigger, an event that indicates to your SAP Build Process Automation tenant to start a process instance.

Process triggers can be a form, such as a request form, an API call, where an external system starts the process or an Event.

You can start an instance of your process using an API call, with the inputs for the call configured from the process builder. These inputs can then be used as input fields in your process.

You may also start the instance with an event trigger which on-boards and listens to back-end events emitted from an external source system and reacts to such events by triggering artifacts such as processes and automations.

Step 1 Create a data type
โ€”

A data type is an artifact describing a data structure that can be used as an input and/or an output parameter in automations or processes. You have two options to create the fields in the data type. You can either import an excel file or define the fields manually.

Once you have acquired the Template Project from the Store, your process looks as below:

template
template

In this option, you will be importing an excel file to create the data type. Based on the values present in the excel, the type of field is determined automatically and the fields are created accordingly. For example orderAmount is maintained as 19000, hence the type of the field orderAmount is determined as Number.

  1. Download SalesorderDatatype.xlsx excel file for Sales Order datatype.

    Create data type
    Create data type

  2. Navigate to your project. Click on the Project Content icon on the top left corner > + > Create > Data Type .

    Create data type
    Create data type

  3. Name the data type Sales Order.

    SalesOrder
    SalesOrder

  4. Click on Import Excel File.

    Excelfile
    Excelfile

  5. Click on Browse to select the excel file.

    Excelfile
    Excelfile

  6. Select Import an Excel File.

    excelFile
    excelFile

    Your final data type looks as below.

    DataType
    DataType

Step 2 Create an API trigger for the process
+
Step 3 Create inputs for the process
+
Step 4 Modify the process
+
Step 5 Release and deploy the process with an API trigger
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 5
1. Create a data type 2. Create an API trigger for the process 3. Create inputs for the process 4. Modify the process 5. Release and deploy the process with an API trigger

Learn more →