Hello Experts,
im getting the Error "System.Runtime.Serialization.SerializationException:" in my Custom Workflow Step.
Did anyone know a solution?
This is my code:
if (maschinenringstring != null) { QueryExpression maschinenringquery = new QueryExpression("account"); maschinenringquery.ColumnSet = new ColumnSet(true); maschinenringquery.Criteria.AddCondition("name", ConditionOperator.Like, maschinenringstring); maschinenringquery.Criteria.AddCondition("businesstypecode", ConditionOperator.Equal, 4); // query ausführen EntityCollection retrievemaschinenring = service.RetrieveMultiple(maschinenringquery); if (retrievemaschinenring.Entities.Count == 1) { Entity MaschinenringRef = retrievemaschinenring.Entities[0]; Maschinenring.Set(executionContext, new EntityReference("account", MaschinenringRef.Id)); tracingService.Trace("Maschinenring gefunden und zugeordnet"); } else { tracingService.Trace("Keinen Maschinenring gefunden"); } }
Kind Regards,
Léon
*This post is locked for comments