Skip to main content
Level 4
October 12, 2022
Solved

Is It possible to call a webservice after an asset is uploaded with all metadata?

Hi community,

 

I'd like to know if it is possible to call a webservice after an asset is uploaded to a folder with all metadata as payload.

 

Thanks in advance for your help.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
aanchal-sikka
aanchal-sikkaAccepted solution
Community Advisor
September 7, 2023

@olsalas711 

 

There are multiple options:

1. Custom workflow is triggered by dam-authors manually, once the asset is ready.

2. If an asset is published once its ready, then a custom Transport handler can publish the asset info to webservice, while publishing the asset in parallel to AEM publish. https://www.dev-eth0.de/2017/01/08/aem_transport_handler/

3. Create an additional metadata, to define the state of an asset (ready/not-ready). Once all metadata is in, update the value of this metadata to ready. This event can then be captured and info can be sent out to webservice.

Aanchal Sikka

3 replies

krati_garg
Adobe Employee
Adobe Employee
October 14, 2022

Consider, writing a Custom Workflow with a Process step, which calls the required webservice with Asset as payload. Metadata can be extracted in custom Process before calling the WebService.

Workflow can be triggered with a Workflow Launcher, set for the folder path and EventType as Node Created and NodeType as dam:Asset.
Launcher can also be written to trigger a workflow, based on any metadata property.
Refer below link for extracting Asset metadata:
https://redquark.org/aem/day-13-aem-workflows-2/

Translate
aanchal-sikka
Community Advisor
aanchal-sikkaCommunity AdvisorAccepted solution
Community Advisor
September 7, 2023

@olsalas711 

 

There are multiple options:

1. Custom workflow is triggered by dam-authors manually, once the asset is ready.

2. If an asset is published once its ready, then a custom Transport handler can publish the asset info to webservice, while publishing the asset in parallel to AEM publish. https://www.dev-eth0.de/2017/01/08/aem_transport_handler/

3. Create an additional metadata, to define the state of an asset (ready/not-ready). Once all metadata is in, update the value of this metadata to ready. This event can then be captured and info can be sent out to webservice.

Translate
Aanchal Sikka
kautuk_sahni
Adobe Employee
Adobe Employee
September 12, 2023

@olsalas711 Do you find the suggestions from users useful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. 

Translate
Kautuk Sahni