knowledgebase article

  • Creating a knowledge base article using C# plugin

    I am writing this post with complete code to help someone in the community who might be having a similar requirement. Please see the code below: Entity ent = new Entity(“kbarticle”); ent.Attributes.Add(“title”, <title>); ent.Attributes.Add(“kbarticletemplateid”, new EntityReference(“kbarticletemplate”,new Guid(< Template Id >))); ent.Attributes.Add(“subjectid”, new EntityReference(“subject”, new Guid(<Subject Id >))); string articlexml = “<articledata><section id=’0′><content><![CDATA[“ + <<This is…