Currently, I am utilizing REST and ajax to retrieve data from SharePoint using the URL below:
https:xxxxxxxx/_vti_bin/ListData.svc/RMSD_Tasks?$orderby=IssueValue asc,StatusValue desc&$filter="+dropValue+" eq '"+secondFilterVal+"'&groupby=IssueValue/StatusValue
Most of the time, everything functions perfectly fine. However, there is an issue that arises occasionally. At times, the value of secondFilterVal contains "Manager's Bulletins" with an apostrophe. Whenever this value is present, I receive a bad request message upon making the call. Is there a solution for this problem? Unfortunately, changing the text "Manager's Bulletins" is not an option. One thought I had was to use "$filter=substringof.....", but it has been working seamlessly with other cases. Any suggestions on how to handle this situation would be greatly appreciated. Thank you!