Hello
how i can set x-www-form-urlencoded parameters in request ?I have only these types in webservice
Like
Hello,
Unfortunately webservices in Creatio can process JSON body only, and we have a task for our core R&D team to make it possible to set the request body in X-WWW-FORM-URLENCODED type. Currently the request body should be formed separately via a script task and then passed to the webservice request body:
string Request = "From=" + System.Web.HttpUtility.UrlEncode(Get<string>("FromNumber")) + "&" + "Body=" + System.Web.HttpUtility.UrlEncode(Get<string>("Message")) + "&" +"To=" + System.Web.HttpUtility.UrlEncode(Get<string>("ToNumber")); Set<string>("twilioRequest", Request); return true;
twilioRequest is the process parameter of the text datatype that should be then used in the webservice body.
Moheman,
Since twilioRequest is a string then parameter type should be also string.
Hi Oscar,
The solution you gave did not work for us. May be we are missing something. Can you please share the request body from Test Request feature in webservice so that we can compare and check from our side?