Home > Dataverse > [Quick Tip] Dataverse Web API | Handling special characters in Filter query

[Quick Tip] Dataverse Web API | Handling special characters in Filter query

In this quick tip, lets see how to handle special characters while querying the Dataverse Web API.

Assume that you have a Dataverse Team with name CoE&Feb&Makers as below and you would want to query the Team by ‘Team Name’ using Dataverse Web API.

Query Dataverse Web API:

  • When you hit the URL, you will get an exception that ‘The query parameter is not supported‘. This is because the team name CoE&Feb&Makers is having & symbol, which is not supported.
  • To fix this, you need to encode the team’s name. You can use online editor to encode, if you are querying the Web API from browser.
  • Now use the encoded value CoE%26Feb%26Makers in the Filter and you should get the result.

🙂

Advertisement
  1. March 3, 2023 at 4:26 PM

    Good one

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: