Skip to main content
November 3, 2021
Question

getdocumentfromfolder() plugin

  • November 3, 2021
  • 1 reply
  • 1 view

Hi i am using the getDocumentFromFolder() function from a plugin. The sortBy paramater was not accepting the value "created". Please advise on what to do. Thank you

1 reply

csteward
November 3, 2021

Typically functions do not support keyword arguments, you will also want to pass a value for the recursiveSearch parameter such as:

a!localVariables(
  local!document: getdocumentsfromfolder(
    cons!LCP_QCK_FINALREPORTS_FOLDER,
    false,
    "created",
    false
  ),
  local!document
)