on 2022 Nov 23 10:02 AM
Hello Everyone,
I'm trying to get the substitution rule by consuming the following SAP Business HUB API: https://api.sap.com/api/SAP_CP_Workflow_TCM_CF/resource
I tried the following way:
I tried to consume it from ui5 application
Steps followed:
PFA, Controller.js
xs-app.json
I'm getting unauthorized error, when I'm trying to hit this Api endpoint:
(I already assigned the workflowParticipant role to me)
Please help in fixing the issue, your feedback is appreciated
thanks
Hello Archana,
Many thanks for the reply.
By changing the destination to "bpmworkflowruntime"(created by booster) in xs-app.json file. I'm able to get my current Substitution List
Destination:
Response:
xs-app.json:
{
"source": "^/workflow/(.*)$",
"target": "$1",
"authenticationType": "xsuaa",
"destination": "bpmworkflowruntime"
},
Thanks,
Pravin Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Pravin,
Can you please select the right answer and close the question. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Pravin,
Substitution works on the current-logged-in user and not for client credential. You have to use Authorization Grant to work with Substitution so that you are able to pass the logged-in credentials to the APIs.
The API documentation still says:
"as it only supports OAuth2 Authorization Code flow. Refer to the documentation available on the SAP Help Portal"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
69 | |
13 | |
11 | |
10 | |
9 | |
9 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.