Legacy Dev Forum Posts

 View Only

Sign Up

Escape Character in Data Action

  • 1.  Escape Character in Data Action

    Posted 06-05-2025 18:44

    arustamov | 2022-11-29 22:28:07 UTC | #1

    Hi all,

    I have an integration with restdb.io database and created a custom data action using (Web Services Data Actions).

    I am simply trying to use a get command to pull some customer info from the database, but running into syntax errors.

    Note, this is working just fine in postman or other ccaas platforms when using the same requesturl

    What i am thinking is in genesys when using the same api it adds "/" "/" for OrderNo field when it shouldnt. https://ceriumdemo-9ef6.restdb.io/rest/orders?q={\"OrderNo\": 12121}""

    Could be an escape character issue? Any thoughts on how to go around it? or Genesys doesnt allow JSON on the url?


    Olivier_Varga1 | 2022-11-30 16:16:09 UTC | #2

    Try with $esc.url(). Quote (unsafe char) is not part of the std characters defined in URI (RFC 3986).


    arustamov | 2022-12-02 01:45:02 UTC | #3

    Thanks for response,

    Would the request url look something like this with escurl?

    ) Tried that but getting an error

    • REST call for action execute failed. Message: Request to backend service failed. Response from web service: {"message":"Unexpected token O in JSON at position 1"} [9144921b-e1ae-4e2e-8d61-899176722f87]

    John_Carnell | 2022-12-19 15:10:54 UTC | #4


    Jason_Mathison | 2022-12-21 21:30:35 UTC | #5

    Hi arustamov,

    Based on the error that you are getting I would first check the results of building your request body for invalid JSON.

    --Jason


    This post was migrated from the old Developer Forum.

    ref: 17429