- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-15-2015 08:22 AM
Greetings!
How should I be encoding Ampersand (&) in my parameters when using the REST API?
I'm using Perl to make a call ... and it is failing due to the Ampersand (&). In the code sample below, I want query Department=Development & Architecture.
$client->GET("/api/now/table/cmn_department?sysparm_limit=10&sysparm_query=name=Development & Architecture", {'Authorization' => "Basic $encoded_auth", 'Accept' => 'application/json'});
Solved! Go to Solution.
- Labels:
-
Integrations

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-15-2015 08:33 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-15-2015 08:33 AM
you can use "%26" or "&" in place of ampersand (&)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-15-2015 10:18 AM
Actually - this one works!!!!
"/api/now/table/cmn_department?sysparm_limit=10&sysparm_query=name=Development %26 Architecture",