{"id":21238,"date":"2022-04-11T13:56:06","date_gmt":"2022-04-11T11:56:06","guid":{"rendered":"https:\/\/help.openbee.com\/open-bee-scan-capture\/knowledge-base\/how-to-guides\/scripts-in-capture\/jse_capture\/"},"modified":"2026-05-13T09:36:45","modified_gmt":"2026-05-13T07:36:45","slug":"jse_capture","status":"publish","type":"page","link":"https:\/\/help.openbee.com\/en\/open-bee-scan-capture\/knowledge-base\/how-to-guides\/scripts-in-capture\/jse_capture\/","title":{"rendered":"JSE_Capture"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\" id=\"JSE_Capture-Introduction\">Introduction<\/h1>\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><strong>Class JSE_Capture is no longer available in Capture 4.X.<\/strong><\/p><\/blockquote>\n\n<p>The JSE_Capture class provides access to web services from the Open Bee\u2122 Scan Capture solution.<\/p>\n\n<h1 class=\"wp-block-heading\" id=\"JSE_Capture-Fonctions\">Duties<\/h1>\n\n<h3 class=\"wp-block-heading\" id=\"JSE_Capture-getOutput(StringidDocument,StringoutputName):DocumentOutput\">getOutput(String idDocument, String outputName): <a href=\"https:\/\/help.openbee.com\/en\/open-bee-scan-capture\/knowledge-base\/how-to-guides\/scripts-in-capture\/objects\/documentoutput\/\">DocumentOutput <\/a> <\/h3>\n\n<p>This function allows you to obtain the status of an output for a document. The report is returned to you as a <a href=\"https:\/\/help.openbee.com\/en\/open-bee-scan-capture\/knowledge-base\/how-to-guides\/scripts-in-capture\/objects\/documentoutput\/\">DocumentOutput<\/a> object, or returns null if the requested output is not yet stated.<\/p>\n\n<ul class=\"wp-block-list\"><li>idDocument: The internal ID of the document in the database. For the current document, this corresponds to your variable INTERNAL_DOCUMENT_ID <em>e.g. 5e189b4c6c054852d471955d<\/em><\/li><li>outputName: This parameter allows you to choose the desired output from the following values: [DMS, FOLDER, SCRIPT]<\/li><\/ul>\n\n<pre class=\"wp-block-code\"><code>var test = JSE_Capture.getOutput(INTERNAL_DOCUMENT_ID, \"DMS\");\nreturn \" State : \" + test.stateToString;<\/code><\/pre>\n\n<p><strong>Result<\/strong><\/p>\n\n<pre class=\"wp-block-code\"><code> State : SENT<\/code><\/pre>\n\n<h3 class=\"wp-block-heading\" id=\"JSE_Capture-getDocument(StringidDocument):String\">getDocument(String idDocument): String<\/h3>\n\n<p>This feature allows you to get all the information available in the Open Bee\u2122 Scan Capture database for a document. Please note that this information is returned to you in JSON form but in a string that can be converted into an object later<\/p>\n\n<ul class=\"wp-block-list\"><li>idDocument: The internal ID of the document in the database. For the current document, this corresponds to your variable INTERNAL_DOCUMENT_ID <em>e.g. 5e189b4c6c054852d471955d<\/em><\/li><\/ul>\n\n<pre class=\"wp-block-code\"><code>var test = JSE_Capture.getDocument(INTERNAL_DOCUMENT_ID);\nreturn test;<\/code><\/pre>\n\n<p><strong>Result<\/strong><\/p>\n\n<p>See the attachment with the result:<\/p>\n\n<div class=\"wp-block-file\"><a id=\"wp-block-file--media-7c6539d7-0890-4e22-a8bc-1ce807bc3a61\" href=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2022\/05\/document.txt\">document<\/a><a href=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2022\/05\/document.txt\" class=\"wp-block-file__button\" download=\"\" aria-describedby=\"wp-block-file--media-7c6539d7-0890-4e22-a8bc-1ce807bc3a61\">Download<\/a><\/div>\n\n<p>Some indexes in the document have been removed intentionally to reduce the file size because they are repetitive.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Class JSE_Capture is no longer available in Capture 4.X. The JSE_Capture class provides access to web services from the Open Bee\u2122 Scan Capture solution. Duties getOutput(String idDocument, String outputName): DocumentOutput This function allows you to obtain the status of an output for a document. The report is returned to you as a DocumentOutput object, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":21211,"menu_order":2,"comment_status":"closed","ping_status":"closed","template":"templates\/ob-help-products.php","meta":{"footnotes":""},"class_list":["post-21238","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/21238","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/comments?post=21238"}],"version-history":[{"count":2,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/21238\/revisions"}],"predecessor-version":[{"id":38759,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/21238\/revisions\/38759"}],"up":[{"embeddable":true,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/21211"}],"wp:attachment":[{"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/media?parent=21238"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}