Hello,
I want to trigger Workflow from application by using bpmworkflowruntime destination defined on BTP.
I configured xs-app.json in application folder.

And here is my mta.yaml file.



In controller in function that handles the click of the button I wrote this code.

Here is my destination.

The error is 403 so it seems that it calls right destination but authorization is missing.
I was working with this tutorial: https://blogs.sap.com/2020/08/27/starting-workflow-from-custom-fiori-application-in-cloud-foundry/
I also tried to call bpmworkflowruntime/v1/xsrf-token but there was 404 error.
From my understanding if I am logged in using xsuaa on SAPUI5 it should automatically authorize the destination usage.
Can someone confirm if all my configurations are correct what should I do to get it working?
Thank you.
Request clarification before answering.
Hi,
have you checked the calling user has suitable permissions?
See API docs: https://api.sap.com/api/SAP_CP_Workflow_CF/resource
POST workflow-instances, 403 => "User does not have sufficient privileges."
Roles permitted to execute this operation:
Regards,
Tobias
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.