cancel
Showing results for 
Search instead for 
Did you mean: 

Trying to retrieve workflow information in API HUB using CAI

pedrohb
Active Participant
0 Kudos

Hello,

I'm trying to retrieve my pending workflow information. Here is the API service configuration:

What the response looks like:

Debug view:

WF API link: https://api.sap.com/api/ECWorkflow/resource

Is there a way to improve the response, to make it more user friendly? For example show only the subject of the workflow, workflow id or both? Please help.

Best Regards.

Accepted Solutions (0)

Answers (2)

Answers (2)

chavi_singhal
Employee
Employee
0 Kudos

Hi Pedro,

You can refer to this tutorial

https://developers.sap.com/tutorials/conversational-ai-scripting-intro.html

Best regards,

Chavi

jyguyomarch
Advisor
Advisor
0 Kudos

Hi Pedro,

Yes you will be able to parse, manipulate and format the response the way you want by using our "Scripting" capabilities within the SAP Conversational AI Bot Builder. See all the details here: https://help.sap.com/viewer/a4522a393d2b4643812b7caadfe90c18/latest/en-US/5b86debf32444658b29db44733...

BR - Jean-Yves

pedrohb
Active Participant
0 Kudos

Could you please share an example of how the code would look like? I read the documentation but still can't figure it out. I`m very new at this, sorry.