Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Delete synchronization of Asset with AEM DAM and Scene 7

Avatar

Level 2

Hi,

We are facing an issue with delete synchronization of asset in DAM and Scene7. The details is below:

 

We had to delete asset from Scene7 dam through AEM but we are not able to delete the assets.

The approach we followed are:

1.       By means of Scene 7 API available as bundle in AEM: 
The issue we are facing is: When we get resource from Scene7 folder located in DAM and trying to convert it as Scene7Asset type as per above code .It is not casting to Scene7Asset and returning null value. So it is stopping to get asset handle, which is required to pass into delete method. The code is attached in the email.

2.       By means of web services: https://marketing.adobe.com/resources/help/en_US/s7/ips_api/ipsapi.pdf

We are not able to find the path of WSDL: [https://%3cIPS_hostname:/]https://<IPS_hostname:// webservice/IpsApi[-].wsdl

 

Please reply back if you have any suggestion to solve above issue.

However, I read one adobe article in which i saw that it is the limitationdesign implication of integration of AEM with Scene7 that If you delete assets in AEM, they are not reflected in Scene7.

1 Accepted Solution

Avatar

Correct answer by
Level 10

I know i am late responding to this query, but what you can do is,  pick the scene7id stored in aem for the asset,

@Reference
    private Scene7Service s7Service;

                       Scene7Asset scene7Asset  = s7Service.getAssets(new String[]{scene7ID}, null, null, config).get(0);

                            s7Service.deleteAsset(scene7ID, config); // Deletes the asset with the "-AVS" 

 

Let me know if you have any question. I have implemented this as a workflow step

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

I know i am late responding to this query, but what you can do is,  pick the scene7id stored in aem for the asset,

@Reference
    private Scene7Service s7Service;

                       Scene7Asset scene7Asset  = s7Service.getAssets(new String[]{scene7ID}, null, null, config).get(0);

                            s7Service.deleteAsset(scene7ID, config); // Deletes the asset with the "-AVS" 

 

Let me know if you have any question. I have implemented this as a workflow step