cancel
Showing results for 
Search instead for 
Did you mean: 

Post Method-External Approval API with Action in SAP Build Process automation not working

jaysharma2005_84
Explorer
0 Kudos

Hi Experts,

I am facing an issue with POST call using Action in Build process automation inside a Process flow or inside an automation. It is working fine when tested using Action editor.

When I am using post method(Act on Entity) of the Action Group created for External approval API(SAP delivered) for Ariba SLP integration inside a process flow or automation it gives 500 "Internal-api-error". Reviewed the parameters and compared them with Action Editor inputs which is working fine but there is no difference. Destination used is working fine in GET call for same Action group.

Please advise if there is a way to trace network call from RPA/Process flow or some place where I can check it whether it is failing in Ariba or connection is not getting established.

Regards,

Jay

Accepted Solutions (1)

Accepted Solutions (1)

jaysharma2005_84
Explorer
0 Kudos

Hi All,

Issue has been resolved, I had to update action in Action Project editor for adding "comments" inside "options" in BODY of the input .If not added it appears as below and not available for mapping in when you use action in in your project.

Observation is when tested used in Action Project ->Test option , SAP does not allow you to input it but sends empty property.

Adding screenshot for reference.

Regards,

Jay

Answers (2)

Answers (2)

Archana
Product and Topic Expert
Product and Topic Expert
0 Kudos

Great, Thanks Jay for putting the answer. Please select the correct answer and close this question.

Archana
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Jay Sharma,

If you are using Action Group then the API call will not while testing the Automation as they need connection to the destination. Have you deployed the project and tested ? Also have you tested the Action from Action Project to ensure that it works. Also when you are running this successfully from any rest client like POSTMAN, please also ensure that you have used right header parameters or authentication protocol.

Hope that helps,
Archana

jaysharma2005_84
Explorer
0 Kudos

Hi Archana,

Thank you for quick response.

I checked deploying the automation and running it, Job is failing with same error 500(Internal-api-Error).I have compared all parameters with Action Project Editor(Success) and those are same.

I tried multiple approach for this automation:-

Option 1 : Use POST action using action group in Process flow. (Deployed and tested with same error) Attached is screenshots

Option 2: Use POST action using action group in Automation itself. (Deployed and tested with same error) Attached is screenshot

Using Action Project Test Option, it is working fine and able to approve task in Ariba.

Test using POSTMAN is also successful with same parameters.

Regards,

Jay