Dear niels_26,we have the following sample code in place in our implementations for oData service integration.function codeTask() { var headers = ~{ch://OCAC_3aYYb1c2deL3D4O/headers}; var headersSetCookies = headers["set-cookie"] var sessionId; headersSetCookies.forEach(function(headerValue) { if (headerValue.indexOf("SAP_SESSIONID") === 0) sessionId = headerValue; } ); return { "xcsrftoken": headers['x-csrf-token'], "eTag": headers.etag, "sessionIdCookie": sessionId }} You could do some debugging to comment all code lines which are running into errors and add as much variable you want to see and check the values to the return statement (as you would do with js console.log() statement) Hope this is helping you.BR
Hi JRKBM,need any further help there?Should not be that hard to implement this requirement, so if you need any further assistance just get back to the community.BR Manuel
Hi Photoperiod,you can give it a try via an predecessor code task.In this code task you can past you JSON Body and then return it as a variable.Use this variable afterwards in the webservice call as piped text.BR Manuel
Maybe this post will help:https://www.qualtrics.com/community/discussion/comment/37309#Comment_37309
Dear shruthi,hope you have fixed your Issue already, for all others which have the same issue here might be a solution for it:Use Web Service Block (New Task: Web Service)Use Code Block (New Task: Code)Insert following coding:function codeTask() { let headers = ~{ch://OKAC_12i3abcJnKMx/headers}; return { "headerVariableOutput": headers['headerField'] }}E.g. "headerVariableOutput" is the variable you can use for further requests in the action workflow. 'headerField' is your received response header which can be e.g. x-csrf-token or any other ApiToken or header field. "~{ch://OKAC_12i3abcJnKMx/headers}" can be added per piped-text function to insert the dynamic header from the 1. web service request/response.Hope this is helpful for anyone. BR.
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.