Let's Reconnect, thank you for making 2022 our best year yet.

Look Back
How to Escape special charters (like space) in query parameters in REST adapter — Cloud Customer Connect
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

How to Escape special charters (like space) in query parameters in REST adapter

Accepted answer
32
Views
1
Comments
edited Aug 18, 2022 9:14AM in Integration 1 comment

Summary:

How to escape special charters (like space) in query parameters in REST adapter.

OIC is encoding the value for Space -> + instead of %20

Content (required):

Actual endpoint -> /UserCurriculumStatuses?$filter=criteria/userID eq '318900' and criteria/curriculumID eq 'AD-Core'

OIC is encoding - /UserCurriculumStatuses?$filter=criteria%2FuserID+eq+%27318900%27+and+criteria%2FcurriculumID+eq+%27AD-Core%27


Expecting endpoint -

  1. /UserCurriculumStatuses?$filter=criteria/userID eq '318900' and criteria/curriculumID eq 'AD-Core'
  2. /UserCurriculumStatuses?$filter=criteria%2FuserID%20eq%20%27318900%27%20and%20criteria%2FcurriculumID%20eq%20%27AD-Core%27

Version (include the version you are using, if applicable):

Version: 22.3.2

Code Snippet (add any code snippets that support your topic, if applicable):

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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