- workflow error
- Posted by Mykhailo Medynskyi on March 7th, 2008
I need to run workflow rule in callout, but when I do this I get error 800404cc
what is wrong?
salesorder curOrd =
(salesorder)_crmService.Retrieve(EntityName.saleso rder.ToString(),entityContext.InstanceId,new AllColumns());
ExecuteWFProcessRequest request = new ExecuteWFProcessRequest();
request.ProcessId = new Guid ("{ef11ab84-d5ea-dc11-a843-000c290991f8}");
request.EntityMoniker = new Moniker();
request.EntityMoniker.Id = curOrd.salesorderid.Value;
request.EntityMoniker.Name = EntityName.salesorder.ToString();
ExecuteWFProcessResponse response = (ExecuteWFProcessResponse)
_crmService.Execute(request);
- Posted by Richard Riddle on March 7th, 2008
I think the problem is when you set the id of your moniker. The value of the
salerorderid is the key. You have to get the value of the value.
request.EntityMoniker.Id = curOrd.salesorderid.Value.Value;
--
Richard Riddle
CRM Developer
Autonomix
"Mykhailo Medynskyi" wrote:
- Posted by Mykhailo Medynskyi on March 13th, 2008
I'm paste request.EntityMoniker.Id=entityContext.InstanceId; and get
Exception on response that
{"Server was unable to process request." }
"Richard Riddle" wrote: