{"id":21299,"date":"2022-04-11T13:56:08","date_gmt":"2022-04-11T11:56:08","guid":{"rendered":"https:\/\/help.openbee.com\/open-bee-scan-capture\/knowledge-base\/how-to-guides\/scripts-in-capture\/case-studies\/tricks\/tips-retrieving-a-value-from-the-folder-or-from-the-third-party-record\/"},"modified":"2024-05-07T10:32:14","modified_gmt":"2024-05-07T08:32:14","slug":"tips-retrieving-a-value-from-the-folder-or-from-the-third-party-record","status":"publish","type":"page","link":"https:\/\/help.openbee.com\/en\/open-bee-scan-capture\/knowledge-base\/how-to-guides\/scripts-in-capture\/case-studies\/tricks\/tips-retrieving-a-value-from-the-folder-or-from-the-third-party-record\/","title":{"rendered":"Tips: Retrieving a value from the folder or from the third-party record"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>var getAdditionalInformationFromBuyer = function(additionalInformationID){\n\t\n\tif(FOLDER == null || FOLDER.additionalInformations == null)\n\t\treturn \"\";\n\t\t\n\tfor(var i=0;i&lt; FOLDER.additionalInformations.length; i++){\n\t\tif(FOLDER.additionalInformations&#91;i].id == additionalInformationID)\n\t\t\treturn FOLDER.additionalInformations&#91;i].value;\n\t}\n\t\n\treturn \"\";\n};\nvar getInformationFromThirdPart = function(informationID){\n\t\n\tif(THIRDPART == null || THIRDPART.values == null)\n\t\treturn \"\";\n\t\t\n\tfor(var i=0;i&lt; THIRDPART.values.length; i++){\n\t\tif(THIRDPART.values&#91;i].id == informationID)\n\t\t\treturn THIRDPART.values&#91;i].value;\n\t}\n\t\n\treturn \"\";\n};<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":21272,"menu_order":6,"comment_status":"closed","ping_status":"closed","template":"templates\/ob-help-products.php","meta":{"footnotes":""},"class_list":["post-21299","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/21299","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=21299"}],"version-history":[{"count":1,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/21299\/revisions"}],"predecessor-version":[{"id":21301,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/21299\/revisions\/21301"}],"up":[{"embeddable":true,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/21272"}],"wp:attachment":[{"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/media?parent=21299"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}