Hi,
I have a requirement where I need to get the total no of documents created last month in the environment.
I have added all the document folders in a constant and tried to fetch the documents count but I'm getting an error as "The passed parameter(s) are of the wrong type. Received the type List of Folder."
a!localVariables( local!document: folder( cons!DMF_DOCUMENT_FOLDERS_LIST, "documentChildren" ), sum( a!forEach( items: local!document, expression: todate(document(fv!item, "dateCreated")) > today()-30, ) ))
Can anyone please help me.
Discussion posts and replies are publicly visible
Can you share the screenshot for the values which you have in your local variable actually this is working I tried using the same code it is working. Have you tested it?
Hi Ujjwal,
PFB screenshot with the values in the constant.
The code is working with individual folder. But I want for list of all the document folders in the environment.
Ohhh I took it like you are storing folder in the constant.
Sorry, I didn't get you. Could you please explain
I mean not an array only one single folder.