Intuit.Ipp.Data.Qbo.CustomerQuery query with & in

2019-08-10 21:42发布

How do you use Intuit.Ipp.Data.Qbo.CustomerQuery to query a name like:

Tom & Jerry's

This case has 2 special characters that are causing the query to fail. One being & and the other being '. I've tried to use Uri.EscapeDataString and it doesn't work. Any advice?

2条回答
2楼-- · 2019-08-10 22:00


you would need to xml encode the string.

thanks
Jarred

查看更多
Lonely孤独者°
3楼-- · 2019-08-10 22:08

The SDK does not encode the ampersand correctly, so you will need to use DevDefined and deserialize the response with the SDK. Code sample: https://gist.github.com/IntuitDeveloperRelations/6024616

查看更多
登录 后发表回答