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 |
ResponsibleUserID | ID of the user responsible for the article | |
ArticleLanguage | X | Language code. The value may be: 1 - English (USA) 2 - Portuguese (Brazil) 3 - Spanish 4 - Portuguese (Portugal) 5 - German 6 - French 7 - Romanian 8 - Chinese 9 - Italian 10 - Slovak 11 - English (United Kingdom) 12 - Turkish 13 - French (Canada) 14 - Russian 15 - Polish 16 - Catalan 17 - Danish 18 - Finnish 19 - Japanese |
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: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 |