-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 30.1
-
Fix Version/s: 31.1
-
Component/s: Automation
-
Tags:
Input is set to document, Output to Documents. In the resulting XML config both are set to void.
<scriptedOperation id="javascript.SFGetChildren"> <inputType>void</inputType> <outputType>void</outputType> <category>javascript</category> <description></description> <script><![CDATA[function run(input, params) { var docs = Repository.Query(null, { 'query': "SELECT * FROM Document WHERE ecm:currentLifeCycleState != 'deleted' AND ecm:isCheckedInVersion = 0 AND ecm:mixinType != 'HiddenInNavigation' AND ecm:parentId = '" + input + "'" } ); return docs; } ]]></script> </scriptedOperation>