locked
serialization error when calling SDK.SAMPLES.ExecuteWorkflowRequest? RRS feed

  • Question

  • Hello, I'm getting a serialization error when calling SDK.SAMPLES.ExecuteWorkflowRequest. The only changes I made to the SDK.Sample code were renaming the namespace to reflect my local implementation and parameterizing the entity id and workflow id. I'm passing the entityId parameter from the case form as Xrm.Page.data.entity.getId() so I would assume this would integrate without issue in the sample code. Here's my ExecuteWorkflowRequest code:

    https://www.dropbox.com/s/x8f06x78qjdgc81/ExecuteWorkflowRequest.js

    Here's the error being returned from ExecuteWorkflowRequest:

    "a:DeserializationFailedThe formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://schemas.microsoft.com/xrm/2011/Contracts/Services:request. The InnerException message was 'There was an error deserializing the object of type Microsoft.Xrm.Sdk.OrganizationRequest. The value 'entityId' cannot be parsed as the type 'Guid'.'.  Please see InnerException for more details."

    Any idea why the guid I'm passing from my case form via the standard Xrm.Page.data.entity.getId() would be encountering a serialization error when passed to ExecuteWorkflowRequest? 
    Friday, April 4, 2014 5:47 PM

All replies