AEMaaCS - Creating a new Asset from Service | Adobe Higher Education
Skip to main content
December 7, 2022
Pergunta

AEMaaCS - Creating a new Asset from Service

  • December 7, 2022
  • 1 resposta
  • 1361 Visualizações

Hi all,

 

We have a use case where we want to upload some files to the DAM from an AEM service.
The service is using a 3rd party API to generate some images which are stored externally stored (AWS S3). The service has the URLs for these images. We'd like to get then get these images into the DAM.

 

The service would run as follows:

1. Use existing asset to call external 3rd party API (This produces an asset stored in the S3)

2. Take the results (list of S3 locations) and upload to the DAM

This would be a fully automated process, but having trouble with that second step at present


From what I've read it looks like we can no longer use the Asset Manager API in AEMaaCS and now have to use an asset microservice API as detailed here: https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/assets/admin/developer-reference-material-apis.html?lang=en#asset-upload

 

Although when looking at that page we have the message "Execute these steps in an external application and not within the Experience Manager JVM."

Just looking for advice on AEMaaCS best practices so we can create an Asset in the DAM from within a Experience Manager Service we've written.

 

Thanks

 

Este tópico foi fechado para respostas.

1 Resposta

Mani_kumar_
Community Advisor
Community Advisor
December 7, 2022

If I understand correctly you want to download and asset from the external service and upload that in AEM.

If you have S3 then you can used the ACS commons s3 investor to ingest the assets into AEm

Else place the assets in one common UNIX box and use CSV asset importer to import the assets into AEM

 

Please find the below references for the same.

 

https://adobe-consulting-services.github.io/acs-aem-commons/features/mcp-tools/asset-ingestion/s3-asset-ingestor/index.html

 

https://adobe-consulting-services.github.io/acs-aem-commons/features/mcp-tools/asset-ingestion/url-asset-ingestor/index.html

 

sjnAutor
December 7, 2022

Thanks for the links - unfortunately neither of those ACS Commons seem to be compatible with AEMaaCS.

Mani_kumar_
Community Advisor
Community Advisor
December 8, 2022

This is the alternative for the importer

https://adobe-consulting-services.github.io/acs-aem-commons/features/mcp-tools/data-importer/index.html

This will work in cloud as well.