Skip to main content
chitras0004
May 4, 2026
Question

Extract Meta Data of all Documents in Environment

  • May 4, 2026
  • 5 replies
  • 0 views

Hi All,

I am looking for best way to extract meta data of all documents that exist on an environment. This I need for migration purpose.

My requirement is to store document details(document id, doc name, parent folder, kc name etc)  from all over the environment. This would require traversing through each KCs and find folders and documents recursively. 

Has anyone faced such requirement and is there a provision for this to be done OOTB or any best way which won't hamper the environment running status.

Thanks in advance!

5 replies

shubhama926776
May 4, 2026

There is no OOTB functionality to fetch all documents across the environment, so you need to manually maintain a list of all Knowledge Center root folder Ids. Use getdocumentsFromFolder() to get all documents per KC, then loop through each document using the document() function to extract metadata. Repeat this for each KC to get complete environment-wide document metadata.

chitras0004
May 4, 2026

Thanks for your respone [mention:9861aef97eb2483a8b76175d9eda1e37:e9ed411860ed4f2ba0265705b8793d05] .

Been following the same process.

subhankarb6682
May 4, 2026

Can you please elaborate your requirement please ? You mentioned "migration purpose". Do you want to validate pre vs post migration stats ?

chitras0004
May 4, 2026

Yes [mention:9cc21e4c8d204e11952fede19267a6f2:e9ed411860ed4f2ba0265705b8793d05] , majorly to look back for any Appian application data mapped to documents

chitras0004
May 12, 2026

My Knowledge Centers are created at root without any parent community or parent KC, each request has KC created at root dynamically. Around 10,000 + and growing. I want to extract all KC from here, one way is I scan whole environment objects and extract only KC types but not where should I stop the scan or recursive loop. 

Any idea about this?