Skip to main content
Known Participant
Nov 3, 2021 8:23 AM UTC
Question

getdocumentfromfolder() plugin

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
Brainy
Nov 3, 2021 2:47 PM UTC

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
)