cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Workflow API error 422- Unprocessable entity

StarDev
Participant
0 Likes
4,467

Hi All,

I am using workflows API to start and complete workflows from ABAP code given in the link below through restful abap.

I am able to successfully Start and Close workflows via abap code to call workflow API. The problem comes up when one user claims the workflow from My inbox and tries to complete it, Same abap code gets called trying to complete the workflow. But the API call gives an error 422 saying the entity is unprocessable. If the user unclaims it, we are able to successfully complete the workflows. Any help would be really appreciated.

https://blogs.sap.com/2019/07/09/leveraging-scp-neo-workflow-from-the-scp-abap-environment/comment-p...

View Entire Topic
StarDev
Participant
0 Likes

This got solved by two api calls. First call is done to change the approver name in the context. Second call to complete the workflow instance by passing status as COMPLETED.