Quantcast
Channel: Microsoft Dynamics CRM
Viewing all articles
Browse latest Browse all 123975

Forum Post: Article entity creation from c# plugin (or workflow activity)

$
0
0

Hi,

i am struggling with 'Article' entity. I need to create new Article entity record from plugin, but i cannot update content (kb article data) using description field. See code below:

articleEntity.SubjectId = new EntityReference(Subject.EntityLogicalName, caseEntity.SubjectId.Id);

articleEntity.Title = caseEntity.Title;

articleEntity.KbArticleTemplateId = new EntityReference(KbArticleTemplate.EntityLogicalName, articleTemplate.Id);

articleEntity.Description = caseEntity.Description;

Guid articleEntityGuid = service.Create(articleEntity);

When i use this code, article entity is created, subject, title, template article are implemented, but description does not appears (in fact also in form i cannot find where description is located, but i assume that description and also content field are integrated in "kb article data" section).

Also when i was trying to update 'content' field, it cannot be done in plugin, because this field is only read only.

Do you have anyone experience with this?

Many thx.

Stan


Viewing all articles
Browse latest Browse all 123975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>