cancel
Showing results for 
Search instead for 
Did you mean: 

API hub Workflow API for Cloud Foundry try out failed with error unauthorized

Andy1
Product and Topic Expert
Product and Topic Expert
0 Kudos

Dear colleagues,

SAP BTP Trial account, using Boster to set up workflow management, then in BAS create workflow mta project and deployed into BTP, can manually start the deployed workflow instance in BTP workflow management, in the mybox can approve the workflow, workflow executed successfully.

Then try to call this instance using API hub Workflow API for Cloud Foundry, configured the environment in API Hub, after then try with post request https://api.workflow-sap.cfapps.ap21.hana.ondemand.com/workflow-service/rest/v1/workflow-instances, error with unauthorized, do you have any idea what's the root cause here?

The client ID and client secret for above screenshot is get from below place(Process Integration Instance).

Error after try out post.

Thank you.

View Entire Topic
jannes_schofeld
Product and Topic Expert
Product and Topic Expert

Hi tikeer.guo,

why do you use the credentials from the Integration Suite service instance. You would need to take them from the SAP Workflow service instance. If there is no instance yet for Workflow service, you need to create one.

Best regards,

Jannes

Andy1
Product and Topic Expert
Product and Topic Expert
0 Kudos

Thank you, the client id and client secret should be for workflow service. It works now.