cancel
Showing results for 
Search instead for 
Did you mean: 

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

0 Kudos
1,985

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

@VaradBhagwat The second 2 screenshots are hard to read.

1) Where are you sending the credentials?

2) We usually solve CORS by creating a proxy service, or more simply using BTP destinations

VaradBhagwat
Explorer
0 Kudos

I've set up the destinations and provided the service key etc. however, I'm still having doubt how to call the SBPA API from UI5 app and using the destinations to avoid CORS issue. Is the code snippet provided a correct method or there is another way to trigger API as per current technical design/architecture ? My overall BAS code structure modules is as follows - 1. A MTAR module project which has a a. Managed App router, b. Workflow Start UI module for approval view layout 2. A custom UI5 app which will trigger the BPA API (separate from above mentioned MTAR module project) 3. SBPA approval project (API trigger process as per template Sales Order Management MI04 as per the tutorial https://developers.sap.com/tutorials/spa-academy-salesorder.html ) 4. SAP Build Workzone tile to launch app and trigger process (UI5 app as in #2 above)

  1.  MTAR module project

VaradBhagwat_0-1738105971621.png

2. Error in console

VaradBhagwat_1-1738105971624.png

3. CORS error

VaradBhagwat_2-1738105971631.png