As soon as I add this code (including without any header set), I get an error like this, which makes it seem like passing in the HTTP Header isn't working at all:
value": "
System.AggregateException: One or more errors occurred. (Unexpected character encountered while parsing value: <. Path '', line 0, position 0.)\n ---> Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.\n at
I've read https://github.com/wadewegner/Force.com-Toolkit-for-NET/issues/186, but I'm still having trouble setting a header. I've created an httpClient but how do I "pass it in" here, is this supported?
As soon as I add this code (including without any header set), I get an error like this, which makes it seem like passing in the HTTP Header isn't working at all:
(My ultimate goal is to enable field truncation for a request, so we don't need to custom truncate every single field at the perfect length, per https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_header_allowfieldtruncation.htm.)
Here's the code. Note that I'm not sure this is the right header naming for this option, I haven't found SF documentation for setting it via HTTP:
(It looks like part of the issue I'm facing, at least, is the same as: https://github.com/wadewegner/Force.com-Toolkit-for-NET/issues/377)