hmLoadTopic({
hmKeywords:"",
hmTitle:"SendCommand Operations",
hmDescription:"All SendCommand operations are executed with EndPoints of type POST. In the body of the request, a template must be placed where the options for each type of operation are...",
hmPrevLink:"lk_resetcommonblock.html",
hmNextLink:"lk_custom-operations.html",
hmParentLink:"lk_linkarws-operations.html",
hmBreadCrumbs:"<a href=\"lk_linkarws-operations.html\">LinkarWS Operations<\/a>",
hmTitlePath:"LinkarWS Operations > SendCommand Operations",
hmHeader:"<h1 class=\"p_Heading1\" style=\"page-break-after: avoid;\"><span class=\"f_Heading1\">SendCommand Operations<\/span><\/h1>\n\r",
hmBody:"<p class=\"p_Normal\">All SendCommand operations are executed with EndPoints of type POST. In the body of the request, a template must be placed where the options for each type of operation are specified.<\/p>\n\r<p class=\"p_Normal\">&nbsp;<\/p>\n\r<p class=\"p_Normal\">These EndPoints only support the “mediatype” “application\/json” and “application\/xml”.<\/p>\n\r<p class=\"p_Normal\">&nbsp;<\/p>\n\r<p class=\"p_Normal\">The general structure of an operation with “mediatype” “application\/json” is as follows:<\/p>\n\r<p class=\"p_Normal\">&nbsp;<\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\">{<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\"> &nbsp;&quot;APIKEY&quot;: &quot;&quot;,<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\"> &nbsp;&quot;DATA&quot;: {<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\"> &nbsp;},<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\"> &nbsp;&quot;LANGUAGE&quot;: &quot;&quot;,<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\"> &nbsp;&quot;FREETEXT&quot;: &quot;&quot;<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\">}<\/span><\/p>\n\r<p class=\"p_Normal\">&nbsp;<\/p>\n\r<p class=\"p_Normal\">&nbsp;<\/p>\n\r<p class=\"p_Normal\">The general structure of an operation with “mediatype” “application\/xml” is as follows:<\/p>\n\r<p class=\"p_Normal\">&nbsp;<\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\">&lt;operation_name&gt;<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"width:3.0000rem;display:inline-block\">&nbsp;<\/span><span style=\"font-style: italic;\">&lt;APIKEY&gt;&lt;\/APIKEY&gt;<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"width:3.0000rem;display:inline-block\">&nbsp;<\/span><span style=\"font-style: italic;\">&lt;DATA&gt;<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"width:3.0000rem;display:inline-block\">&nbsp;<\/span><span style=\"font-style: italic;\">&lt;\/DATA&gt;<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"width:3.0000rem;display:inline-block\">&nbsp;<\/span><span style=\"font-style: italic;\">&lt;LANGUAGE&gt;&lt;\/LANGUAGE&gt;<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"width:3.0000rem;display:inline-block\">&nbsp;<\/span><span style=\"font-style: italic;\">&lt;FREETEXT&gt;&lt;\/FREETEXT&gt;<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\">&lt;\/ operation_name&gt;<\/span><\/p>\n\r<p class=\"p_Normal\">&nbsp;<\/p>\n\r<p class=\"p_Normal\">The “APIKEY” node will only appear when Linkar Web Services is configured in “ApiKey” authentication mode. And it\'s in this node where the value of the “apikey” must be specified in order to access the service. When Linkar Web Services is configured in “OAuth 2.0” authentication mode, authentication takes place using credentials that, if correct, assign an access “TOKEN” that is automatically sent with the request. So in this case, there will be no “APIKEY” node.<\/p>\n\r<p class=\"p_Normal\">&nbsp;<\/p>\n\r<p class=\"p_Normal\">The “FREETEXT” node is the text that displays in Linkar MANAGER, in the Client Sessions monitor. This can help to identify the source of the request. Examples: &quot;ERP1&quot;, &quot;Android v1.3&quot;, &quot;Client245&quot;.<\/p>\n\r<p class=\"p_Normal\">The “LANGUAGE” node is used by database routines to choose the correct language for returning responses. Error messages from the database server are in English by default, but they can be customized.<\/p>\n\r<p class=\"p_Normal\">&nbsp;<\/p>\n\r<p class=\"p_Normal\">Within the “DATA” node, the content that defines each operation must be specified. This content can be extracted from the following links:<\/p>\n\r<p class=\"p_Normal\">&nbsp;<\/p>\n\r<p class=\"p_Normal\"><a href=\"https:\/\/github.com\/kosday\/Resources\/tree\/main\/SendCommand_Templates\/JSON\" target=\"_blank\" class=\"weblink\">https:\/\/github.com\/kosday\/Resources\/tree\/main\/SendCommand_Templates\/JSON<\/a><\/p>\n\r<p class=\"p_Normal\">&nbsp;<\/p>\n\r<p class=\"p_Normal\"><a href=\"https:\/\/github.com\/kosday\/Resources\/tree\/main\/SendCommand_Templates\/XML\" target=\"_blank\" class=\"weblink\">https:\/\/github.com\/kosday\/Resources\/tree\/main\/SendCommand_Templates\/XML<\/a><\/p>\n\r<p class=\"p_Normal\">&nbsp;<\/p>\n\r<p class=\"p_Normal\">&nbsp;<\/p>\n\r<p class=\"p_Normal\">As an example, the template below shows a read operation of the record with code 1 of the LK.CUSTOMERS file.<\/p>\n\r<p class=\"p_Normal\">&nbsp;<\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic; font-weight: bold;\">Json Template<\/span><\/p>\n\r<p class=\"p_Normal\">&nbsp;<\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\">{<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\"> &nbsp;&quot;APIKEY&quot;: &quot;apikeyvalue&quot;,<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\"> &nbsp;&quot;DATA&quot;: {<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\"> &nbsp; &nbsp;&quot;FILE_NAME&quot;: &quot;LK.CUSTOMERS&quot;,<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\"> &nbsp; &nbsp;&quot;RECORDS&quot;: [<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\"> &nbsp; &nbsp; &nbsp;{<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\"> &nbsp; &nbsp; &nbsp; &nbsp;&quot;LKITEMID&quot;: &quot;1&quot;<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\"> &nbsp; &nbsp; &nbsp;}<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\"> &nbsp; &nbsp;],<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\"> &nbsp; &nbsp;&quot;DICT_CLAUSE&quot;: &quot;&quot;,<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\"> &nbsp; &nbsp;&quot;CALCULATED&quot;: &quot;&quot;,<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\"> &nbsp; &nbsp;&quot;CONVERSION&quot;: &quot;&quot;,<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\"> &nbsp; &nbsp;&quot;FORMAT_SPEC&quot;: &quot;&quot;,<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\"> &nbsp; &nbsp;&quot;ORIGINAL_RECORDS&quot;: &quot;&quot;,<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\"> &nbsp; &nbsp;&quot;CUSTOM_VARS&quot;: &quot;&quot;,<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\"> &nbsp; &nbsp;&quot;OUTPUT_FORMAT&quot;: &quot;&quot;<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\"> &nbsp;},<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\"> &nbsp;&quot;LANGUAGE&quot;: &quot;&quot;,<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\"> &nbsp;&quot;FREETEXT&quot;: &quot;&quot;<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\">}<\/span><\/p>\n\r<p class=\"p_Normal\">&nbsp;<\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic; font-weight: bold;\">XML Template<\/span><\/p>\n\r<p class=\"p_Normal\">&nbsp;<\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\">&lt;LKREADCOMMAND&gt;<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\">&lt;APIKEY&gt;apikeyvalue&lt;\/APIKEY&gt;<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\">&lt;DATA&gt;<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\">&lt;FILE_NAME&gt;LK.CUSTOMERS&lt;\/FILE_NAME&gt;<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\">&lt;RECORDS&gt;<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\">&lt;LKITEMID&gt;1&lt;\/LKITEMID&gt;<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\">&lt;\/RECORDS&gt;<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\">&lt;DICT_CLAUSE&gt;&lt;\/DICT_CLAUSE&gt;<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\">&lt;CALCULATED&gt;&lt;\/CALCULATED&gt;<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\">&lt;CONVERSION&gt;&lt;\/CONVERSION&gt;<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\">&lt;FORMAT_SPEC&gt;&lt;\/FORMAT_SPEC&gt;<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\">&lt;ORIGINAL_RECORDS&gt;&lt;\/ORIGINAL_RECORDS&gt;<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\">&lt;CUSTOM_VARS&gt;&lt;\/CUSTOM_VARS&gt;<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\">&lt;OUTPUT_FORMAT&gt;&lt;\/OUTPUT_FORMAT&gt;<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\">&lt;\/DATA&gt;<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\">&lt;LANGUAGE&gt;&lt;\/LANGUAGE&gt;<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\">&lt;FREETEXT&gt;&lt;\/FREETEXT&gt;<\/span><\/p>\n\r<p class=\"p_Normal\"><span style=\"font-style: italic;\">&lt;\/LKREADCOMMAND&gt;<\/span><\/p>\n\r<p class=\"p_Normal\">&nbsp;<\/p>\n\r<p class=\"p_Normal\">&nbsp;<\/p>\n\r<p class=\"p_Normal\">&nbsp;<\/p>\n\r<p class=\"p_Normal\">&nbsp;<\/p>\n\r<p class=\"p_Normal\">&nbsp;<\/p>\n\r<p class=\"p_Normal\">&nbsp;<\/p>\n\r<p class=\"p_Normal\">&nbsp;<\/p>\n\r"
})
