Решено... Всё оказалось просто... Я новичок, так что не судите строго.
Заменил эту часть кода:
Код:
if (self.GetAttributeValue<string>("textvalue") != null)
{
Entity answer = crmService.Retrieve(self.GetAttributeValue<EntityReference>("textvalue").Name, self.GetAttributeValue<EntityReference>("textvalue").Id, new ColumnSet("textvalue"));
if (answer.Contains("textvalue"))
{
uniq += answer.GetAttributeValue<string>("textvalue") + " ";
}
}
На:
Код:
if (self.Contains("textvalue"))
uniq += self.GetAttributeValue<string>("textvalue") + " (";