newArticle
This method creates an article in an existing knowledge base, allowing attachments to be added and attributes to be entered. To use it, it is necessary to follow the standard documented below:
Java class | |
---|---|
Request | web/wwwroot/ws/java/knowledgebase/NewArticleRequestType.java |
Return | web/wwwroot/ws/java/knowledgebase/NewArticleResponseType.java |
Request:
ID # | Required | Description |
---|---|---|
ArticleID | X | ID # of the new article |
KnowledgebaseID | X¹ | ID # of the knowledge base in which the article will be created |
CategoryID | X² | ID # of the category that will be associated with the article |
ArticleDefaultLanguage | Default language code, according to the "Database encoding" column of the Localization section, in the System Requirements document. When empty, the default knowledge base language will be used. | |
ResponsibleUserID | ID of the user responsible for the article | |
ArticleLanguage | X | Language code, according to the "Database encoding" column of the Localization section, in the System Requirements document. |
ArticleName | X | Article name |
ArticleContent | X | Article content |
FileName | File name (with extension) | |
FileContent | Binary content of the file | |
AttachmentName | Name of the attachment | |
Summary | Attachment description | |
AttributeID | Attribute ID # | |
AttributeValue | Attribute value |
info
- X¹ - Required when the
CategoryID
field is empty; - X² - Required when the
KnowledgebaseID
field is empty.
Request structure:
<urn:newArticle>
<urn:ArticleData>
<urn:ArticleID>?</urn:ArticleID>
<urn:KnowledgebaseID>?</urn:KnowledgebaseID>
<urn:CategoryID>?</urn:CategoryID>
<urn:ArticleDefaultLanguage>?</urn:ArticleDefaultLanguage>
<urn:ResponsibleUserID>?</urn:ResponsibleUserID>
<urn:ContentList>
<!--1 or more repetitions:-->
<urn:Content>
<urn:ArticleLanguage>?</urn:ArticleLanguage>
<urn:ArticleName>?</urn:ArticleName>
<urn:ArticleContent>?</urn:ArticleContent>
<urn:AttachmentList>
<!--Zero or more repetitions:-->
<urn:Attachment>
<urn:FileName>?</urn:FileName>
<urn:FileContent>?</urn:FileContent>
<urn:AttachmentName>?</urn:AttachmentName>
<urn:Summary>?</urn:Summary>
</urn:Attachment>
</urn:AttachmentList>
</urn:Content>
</urn:ContentList>
<urn:AttributeList>
<!--Zero or more repetitions:-->
<urn:Attribute>
<urn:AttributeID>?</urn:AttributeID>
<!--1 or more repetitions:-->
<urn:AttributeValueList>
<urn:AttributeValue>?</urn:AttributeValue>
</urn:AttributeValueList>
</urn:Attribute>
</urn:AttributeList>
</urn:ArticleData>
</urn:newArticle>
Return:
ID # | Description |
---|---|
Status | Method execution status. Its value may be: SUCCESS: Method executed successfully FAILURE: An error occurred during the method execution |
Code | Method return code |
Detail | Method return detail. SUCCESS: The method executed successfully description will be returned FAILURE: The description of the error that was found will be returned |