You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Rest end point with parameter value containing single quote is not working

Accepted answer
15
Views
4
Comments
edited May 23, 2019 12:27PM in Visual Builder 4 comments

Summary

When Business object rest endpoint is queried with parameter value containing single quote, bad request error is throwed

Content

I have a Business object containing details of collections. I have to retrieve rows from the BO by passing collection names as parameters. I have formed the query parameter for the collections BO rest end point. One of the collection value contains single quote in its name.

https://xxxxxxxx-xxxxxxx.builder.ocp.oraclecloud.com/ic/builder/design/xxxxxx/1.0/resources/data/xxxx?limit=2000&offset=0&onlyData=true&q=collection IN ('Prive'','Enchant')

When I pass the parameter with single quote I receive bad request error. 

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!