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 23, 2024
Created by
celineaudinsap
January 25, 2023
Contributors
celineaudinsap
thecodester

Prerequisites

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 sub account view, under Instances and Subscriptions.

    SBPA Service

    IMPORTANT: If you are using a SAP BTP Free Tier account, the Instance sap_process_automation and the Key get automatically created when you subscribe to SAP Build Process Automation in SAP BTP Cockpit. You will find the Instance under Instances and Subscriptions > Instances. Please skip to step 2.3 to retrieve the credentials of your key.

    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.

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

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

      Create
  • 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:

      • api
      • clientid
      • clientsecret
      • url

      These values are needed later in the Destination Configuration section.

      Create
  • Step 3
    1. Navigate to Destinations > Create 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 api/public/workflow/rest/v1/workflow-instances, where api is noted previously in step 2
       
      such as: https://spa-api-gateway-bpi-us-prod.cfapps.us10.hana.ondemand.com/public/workflow/rest/v1/workflow-instances
      Proxy Type Internet
      Authentication OAuth2ClientCredentials
      Use mTLS for token retrieval Off
      Client ID Paste the client id 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
      • sap.processautomation.enabled
      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?

  • Step 4

    When you will check the connection to the destination, the status will show 401: Unauthorized.

    Even though the connection returns unauthorized, the status is successful.

    Status connection
Back to top