cancel
Showing results for 
Search instead for 
Did you mean: 

How to access the result of automation through API

sahil_malhotra
Advisor
Advisor
0 Kudos
1,113

Hi,

Hope you are doing well. I'm attempting to access the result of an automation via API and unsure how to proceed. Is there a current existing endpoint which will return the result of the automation? I know there is the following website: All | SAP Build Process Automation | SAP API Business Hub, but I didn't see an endpoint which fit my use case.

Thanks in advance,

Sahil Malhotra

Accepted Solutions (1)

Accepted Solutions (1)

Archana
Product and Topic Expert
Product and Topic Expert

Hello Sahil,

We do not provide APIs for automation output data, you can create a process and add automation into the process, and then use the process API to get the output of the Bot.

sahil_malhotra
Advisor
Advisor
0 Kudos

Hi Archana,

Thank you so much for your response. Do you have any documentation on process API? I understand that I can package automations into a process, but how do I access the output of a process?

Thanks,
Sahil Malhotra

Answers (3)

Answers (3)

Dan_Wroblewski
Developer Advocate
Developer Advocate

Just to add to Archana's comments, the recent tutorials for using SAP Build Apps with SAP Build Process Automation includes the triggering API, but also shows examples of how to get information about specific process instances, their status, their context and the like.

TUTORIAL: https://developers.sap.com/mission.sap-build-apps-create-trigger-process.html

You can also get the execution log, so you can see what steps were executed, and with a little cleverness, you can see if a process was approved or not.

Archana
Product and Topic Expert
Product and Topic Expert

Hello Sahil,

You can use the process context API as shown here.

To use the API, you have to create a SAP Build Process Automation service instance and service key in your cloud sub-account, then use client credentials from the service-key to call this API. You can get the workflow instance ID (that will be needed to call API) from the Monitor Process Instances application.

Hope that helps,

Archana

geetbijlani
Participant
0 Kudos
Hi Archana, I am using this context API and able to read the context in Postman and also under the test tab of SAP Build Apps data entities. However, when calling it from click of build apps, I am unable to get the complete response and precisely the context goes missing.
sahil_malhotra
Advisor
Advisor
0 Kudos

Awesome! Thank you guys so much!