Skip to Content

Create Destination to Trigger Process from any Service

Create a destination to trigger a business process by creating a service instance and service key of SAP Build Process Automation.
You will learn
  • How to create a destination in the SAP BTP cockpit to start a business process from SAP Build Apps
  • How to create a service instance and service key for SAP Build Process Automation
chaitanya-priya-puvvadaChaitanya Priya PuvvadaFebruary 10, 2023
Created by
celineaudinsap
January 25, 2023
Contributors
celineaudinsap
thecodester

Prerequisites

  • Account on SAP BTP to try out Free Tier service plans
  • Subscribe to SAP Build Process Automation using booster in SAP BTP Free Tier
  • Proper roles to create service instance, service key and destinations in SAP BTP Cockpit

In this tutorial, you will create a service instance and service key for SAP Build Process Automation. You would consume the credentials of the service key of SAP Build Process Automation to create a destination that would trigger a business process from SAP Build Apps.

  • Step 1

    Once you have successfully subscribed to SAP Build Process Automation in SAP BTP Cockpit, you can find the Subscription in your subaccount view, under Instances and Subscriptions.

    SBPA Service
    1. Let’s create an Instance for SAP Build Process Automation. Choose Create.

    2. Select the Service as SAP Build Process Automation and plan as standard instance. Choose Next.

      Create
    3. Enter the values for other fields as shown below and give an instance name as spa-adoption-us. Choose Create.

      FieldValue
      Service SAP Build Process Automation
      Plan standard - Instance
      Runtime Environment Cloud Foundry
      Space dev
      Instance Name any name (spa-adoption-us)
      Create
    4. Once the instance is created successfully, you can find it in Instances section.

      Create
    Log in to complete tutorial
  • Step 2
    1. Once you have successfully created the instance, select > Create Service Key.

      Create
    2. Enter the name for Service Key as spa-key and choose Create.

      Create
    3. The service key is created and you can view the credentials.

      Create
    4. After the key is provisioned, open it and take note of the following fields:

      • clientid
      • clientsecret
      • url

      These values are needed later in the Destination Configuration section.

      Create
    Log in to complete tutorial
  • Step 3
    1. Navigate to Destinations > New Destination. Enter the destination name as spa_process_destination.

      Create
    2. Enter the details as below.

      FieldValue
      Name any name (spa_process_destination)
      Type HTTP
      Description any description
      URL https://spa-api-gateway-bpi-eu-prod.cfapps.eu10.hana.ondemand.com/public/workflow/rest/v1/workflow-instances
      Proxy Type Internet
      Authentication OAuth2ClientCredentials
      Use mTLS for token retrieval Off
      Client ID Paste the clientid noted previously in step 2
      Client Secret Paste the client secret noted previously in step 2
      Token Service URL Type Dedicated
      Token Service URLurl/oauth/token, where url is noted previously in step 2
       
      The final URL should be something like this:
      https://<your tenant>.authentication.<domain>.hana.ondemand.com/oauth/token
      Token Service UserBlank
      Token Service PasswordBlank

      Additionally, enable the following Properties when you would like to integrate with SAP Build Apps.

      • AppgyverEnabled
      • HTML5.DynamicDestination
      • WebIDEEnabled
      Create

      You have successfully created a destination and you can trigger your business process from any service like SAP Build Apps.

    How do you get the credentials to create a destination in SAP BTP Cockpit to trigger the API of business process in SAP Build Process Automation ?

    Log in to complete tutorial
Back to top