I am trying to create a CRUD workflow using K2 and SAP. On SAP side we have exposed the functionality as OData service. I followed the video https://www.youtube.com/watch?v=sFjfS65CO1E and set up the OData Service broker as Service instance in K2. The SmartObject generated lists all the CRUD operations and the list function executes without any issues. The other operations create/update/delete fail with a message - CSRF token validation failed.
the list function which is a non-modifying request sends a request header property x-csrf-token=fetch and retrieves a CSRF token. This token should be then used as request header property for the modifying requests.
How can I set this up ?
I have not found much information on CRUD operations for K2 + SAP using OData so any help is much appreciated.