cancel
Showing results for 
Search instead for 
Did you mean: 

How to trigger Build Process Automation (BPA) workflow through Business Application Studio?

0 Kudos
641

Hi Team,

Greetings!

I have a requirement to trigger Build Process Automation from Custom UI5 application developed in BAS. I have gone through multiple tutorials but all are suggesting the triggering of BPA from Build Apps. 

Please guide me on this.

Thanks & Regards,

Ayushi Shrivastava

View Entire Topic
Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Kudos

I will see if I can find a better tutorial, but here is one that shows you how to do it the "old  way" (meaning making an API call) from SAP Build Apps, and it would work pretty much the same way for you.

  1. Create destination, as described here: https://developers.sap.com/tutorials/spa-create-service-instance-destination.html (this also may be created automatically for you when you install Process Automation)
  2. Make API call as described here: https://developers.sap.com/tutorials/build-apps-workflow-trigger.html#23115af3-8c2e-487a-b50a-ecdc7c... (step 5)
    • Call the POST API (2nd one on the page) as described in this API reference: https://api.sap.com/api/SPA_Workflow_Runtime/path/post_v1_workflow_instances
    • You need to send as header Content-Type as application/json, and in the payload you need to send as it shows in process automation for your process. To find payload, go to the SAP Build environment where you deployed the process, under Triggers find the trigger you created for your process, and select View (all the way to the right). Now you will see the payload you need to send. Dan_Wroblewski_0-1721115863892.png

I will try to find a tutorial showing it from JavaScript, for example, from BAS. But I think you'll get the idea from the above. 

0 Kudos
Hi Daniel, thank you for sharing this , have started working on it. Please do share if you find any tutorials for BAS BPA integration. Just one question can we do this through ABAP RAP? In place of developing a capm app can we do it through abap rap application?
Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Kudos
In the end you are just calling an API so you could do it from anywhere you can make HTTP calls (helps to use destinations but not required).