locked
Data type issues with CRM OData/REST calls (JSON) RRS feed

  • Question

  • I'm trying to clone records in CRM using javascript. I'm following the code similar to this article ---- clone records.

    I get the following error where there are 'boolean' type fields in the record. Can someone please suggest how to parse/modify the data to get rid of this error?

    Incorrect attribute value type System.Data.Services.Serializers.JsonReader+JsonObjectRecords

    When I debug the code the value for the boolean attribute is coming as true or false and i'm passing it as is (no formatting).

    JSON:Here's a screenshot from debug. the attribute 'new_allowemail' is boolean.

    I have tried replacing the boolean value with value.toString() or even new Boolean(value) and it didn't work.

    Wednesday, April 23, 2014 8:48 AM