Skip to main content

Currently I have two plan files. The first one retrieves the CSRF Token (In the response debug file). The second one uses the response debug file and extracts the Cookie and the CSRF Token but when I pass these two to the JSON Call in the final step to write some data to SAP. I get the CSRF Token Validation failed.
I am extracting these from the Response debug file and passing them in another JSON Call:
 

Any suggestions on how to solve this issue?

Hi ​@EmmanuelF,

 

You can enable Request Debug File in the JSON Call to check what values were sent to SAP


Hi ​@AKislyakov,

Thanks for the reply. 
I figured out the issue, I was passing the header in the POST as SET-COOKIE while it should have been COOKIE.
 

After correcting this mistake I am able to write to SAP as such.
 

 


Reply