You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am having issue with the odataclient generate additional single quote on part of my URl when I try to generate URL similar to the following example
I constructed the query as follow
string filterStr = $"LogicalName='account'"
var oDataQuery = client.For("EntityDefinitions").Key(filterStr).Select("DisplayName");
var result = (await oDataQuery.FindEntryAsync());
I am getting WebRequestException where the resulting URL is
So basically I get an additional ' wrap around my key
I trace this error down to CommandFormatter ConvertValueToUriLiteral(object value, bool escapeDataString) method where ODataUriUtils.ConvertToUriLiteral method create the additional single quote.
Please point me to the right direction if this is a bug or how I should addressed this issue.
Thanks
The text was updated successfully, but these errors were encountered:
Hi, I am having issue with the odataclient generate additional single quote on part of my URl when I try to generate URL similar to the following example
https://testwebsite.com/api/data/v9.2/EntityDefinitions(LogicalName='account')?$select=DisplayName
I constructed the query as follow
string filterStr = $"LogicalName='account'"
var oDataQuery = client.For("EntityDefinitions").Key(filterStr).Select("DisplayName");
var result = (await oDataQuery.FindEntryAsync());
I am getting WebRequestException where the resulting URL is
https://testwebsite.com/api/data/v9.2/EntityDefinitions(%27LogicalName%3D%27%27aadusers%27%27%27)?$select=DisplayName
So basically I get an additional ' wrap around my key
I trace this error down to CommandFormatter ConvertValueToUriLiteral(object value, bool escapeDataString) method where ODataUriUtils.ConvertToUriLiteral method create the additional single quote.
Please point me to the right direction if this is a bug or how I should addressed this issue.
Thanks
The text was updated successfully, but these errors were encountered: