Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

How can I query AEM against a dataset to verify it is imported?

Avatar

Level 1

I have a list of file names in Excel and would like to link to the SQL back end to verify each of those file names exists in AEM.  How can I accomplish this?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
3 Replies

Avatar

Community Advisor

@SidCharming I am not sure if i understand this correctly. Assuming that you have an excel containing a list of AEM resources (assets most likely) and you need to know if each of them exists in AEM or not, you can use any of the following based on your actual use case -

 

  1. If it is just AEM assets, you can simply get an assets report from AEM as an excel and you can compare your excel data with the Assets report excel via a simple vlookup. Refer to this - https://adobe-consulting-services.github.io/acs-aem-commons/features/mcp-tools/asset-report/index.ht...
  2. If the amount of files in the excel is substantial and you have just the file names (and not the exact AEM path), you can even consider creating a simple groovy script or a Managed control process (MCP) to read the excel file names and create a JCR query to search for the file names.
  3. If the excel entries are exact jcr paths to the files, you can use the AEM ACS Commons report builder references report - https://adobe-consulting-services.github.io/acs-aem-commons/features/report-builder/index.html

Hope this helps.

Avatar

Level 1

Thank you @Harwinder-singh, The list I have is just file names and it is in quantity of 45,000 names.  I am new to AEM and feel your second option is what I'll need to do.  Where do I go to learn how to do the Groovy scripting?

Avatar

Correct answer by
Community Advisor